[xsl] xsl: selecting and copying nodes

Subject: [xsl] xsl: selecting and copying nodes
From: "james walker" <jameswalkerandy@xxxxxxxxxxx>
Date: Tue, 07 Oct 2003 11:37:50 +0100
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:

<ed><text>this is the title</text></ed>
<ed><text>this is a name</text></ed>
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

Current Thread