Subject: Re: [xsl] XPath 1.0 Question: Can two sibling nodes each select their parent node to yield two nodes? From: David Carlisle <davidc@xxxxxxxxx> Date: Wed, 22 Sep 2010 23:32:51 +0100 |
Hi Folks,
This is an XPath 1.0 question.
Consider this document:
<?xml version="1.0" encoding="UTF-8"?> <books> <category> <genre>Autobiography</genre> <book> <name>My Life and Times</name> <author>Paul McCartney</author> </book> <book> <name>The Beatles</name> <author>Paul McCartney</author> </book> </category> <category> <genre>Music</genre> <book> <name>Eight Days a Week</name> <author>Paul McCartney</author> </book> </category> </books>
I would like to select the value of<genre> of each<book> with<author> equal to 'Paul McCartney'. Thus, I want the XPath to yield:
Autobiography Autobiography Music
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XPath 1.0 Question: Can t, Andrew Welch | Thread | Re: [xsl] XPath 1.0 Question: Can t, Wendell Piez |
Re: [xsl] XPath 1.0 Question: Can t, Andrew Welch | Date | Re: [xsl] XPath 1.0 Question: Can t, Wendell Piez |
Month |