xsl-list
[Top] [All Lists]

xsl: selecting and copying nodes

2003-10-07 03:37:50
I have this xml:
<ve pos="6"></ve>
<ve pos="6.1"></ve>
<ve pos="6.1.1"></ve>
<ve pos="6.1.2"></ve>
<ve pos="6.2"></ve>
<ve pos="6.2.1"></ve>
<ve pos="7"></ve>
................
............
....
....

and i wanted to create a new xml with only the nodes which start with pos 6. I would like to copy all the nodes under each <ve> and the conent inbetween any <text> tags e.g. under a <ve> u may get:

<ve>
<ed><text>this is the title</text></ed>
<ed><text>this is a name</text></ed>
</ve>
i wasnt sure how to select the nodes which only contain these positions???

_________________________________________________________________
Use MSN Messenger to send music and pics to your friends http://www.msn.co.uk/messenger


XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>