Subject: [xsl] deep copy and exclude some nodes From: "Joeri Belis" <joeri.belis@xxxxxxxxxxxx> Date: Tue, 14 Jan 2003 10:04:06 +0100 |
hi, <line> <field1>1</field1> <field2>2</field2> <field3>3</field3> </line> i am processing the <line> node in this simplified example. and i need to copy this node 2 times. The first is a copy of everything and the second should exclude <field2> giving this result <line> <field1>1</field1> <field2>2</field2> <field3>3</field3> </line> <line> <field1>1</field1> <field3>3</field3> </line> I used <xsl:copy> <xsl:copy-of select="@*"/> <xsl:copy-of select="*[name() != 'field2']"/> <xsl:copy> But what when i need to remove more fields. I tried <xsl:copy-of select="*[name() != 'field1' and name() != 'field2']"/> but is not working. I think this is the wrong approach. Joeri XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Selecting out groups for a me, John Hamman {Hamman | Thread | Re: [xsl] deep copy and exclude som, Jeni Tennison |
[xsl] Selecting out groups for a me, John Hamman {Hamman | Date | AW: [xsl] Selecting out groups for , Zink, Juergen |
Month |