web commit by JoshTriplett: XPath conditionals?
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Wed, 8 Aug 2007 14:21:36 +0000 (14:21 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Wed, 8 Aug 2007 14:21:36 +0000 (14:21 +0000)
doc/todo/pagespec_relative_to_a_target.mdwn

index 638cd40f79745dbc81b1a5a830962eb7afe80d86..b04b51fd126ff3d3a8a32a2450cd869ec0c892ca 100644 (file)
@@ -86,4 +86,10 @@ diff -urNX ignorepats ikiwiki/IkiWiki/Plugin/relative.pm ikidev/IkiWiki/Plugin/r
 +} #}}}
 +
 +1
-</pre>
\ No newline at end of file
+</pre>
+
+> This looks really interesting.  It reminds me of XPath and its conditionals.
+> Those might actually work well adapted to pagespecs.  For instance, to write
+> "match any page with a child blah", you could just write *[blah] , or if you
+> don't want to use relative-by-default in the conditionals, *[./blah].
+> -- [[JoshTriplett]]