Ozzi Lee
2010-12-09 20:18:01 UTC
For example, "foo/bar" only selects the first bar element inside a foo
element. "foo//bar" selects every bar element, inside a foo element or
not. I've included an example of the first problem below.
This is an obnoxious issue for me, as I need to match foo/bar and baz/
bar separately.
Input:
<?xml version="1.0"?>
<root xmlns:py="http://genshi.edgewall.org/">
<py:match path="foo/bar">
<zzzzz/>
</py:match>
<foo>
<bar/>
<bar/>
</foo>
<bar/>
</root>
Output:
<root>
<foo>
<zzzzz/>
<bar/>
</foo>
<zzzzz/>
</root>
element. "foo//bar" selects every bar element, inside a foo element or
not. I've included an example of the first problem below.
This is an obnoxious issue for me, as I need to match foo/bar and baz/
bar separately.
Input:
<?xml version="1.0"?>
<root xmlns:py="http://genshi.edgewall.org/">
<py:match path="foo/bar">
<zzzzz/>
</py:match>
<foo>
<bar/>
<bar/>
</foo>
<bar/>
</root>
Output:
<root>
<foo>
<zzzzz/>
<bar/>
</foo>
<zzzzz/>
</root>
--
You received this message because you are subscribed to the Google Groups "Genshi" group.
To post to this group, send email to ***@googlegroups.com.
To unsubscribe from this group, send email to genshi+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/genshi?hl=en.
You received this message because you are subscribed to the Google Groups "Genshi" group.
To post to this group, send email to ***@googlegroups.com.
To unsubscribe from this group, send email to genshi+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/genshi?hl=en.