Subject: Re: [xsl] Xpath 1.0 Question : Excluding Attributes? From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Thu, 29 Mar 2007 01:54:11 +0200 |
Could someone tell me what the Xpath expression is that includes
all element nodes
and only specific attribute children?
<xsl:template match="node()"> <xsl:copy> <xsl:apply-templates select="node() | @*" /> </xsl:copy> </xsl:template>
<!-- throw away all attributes --> <xsl:template match="@*" />
<!-- except these --> <xsl:template match="@specific1 | @specific2"> <xsl:copy /> </xsl:template>
<!-- and these with specific parents --> <xsl:template match="someparent/@specific1"> <xsl:copy /> </xsl:template>
Cheers, -- Abel Braaksma http://www.nuntia.nl
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Xpath 1.0 Question : Excludin, Simon Shutter | Thread | RE: [xsl] Xpath 1.0 Question : Excl, Simon Shutter |
[xsl] Xpath 1.0 Question : Excludin, Simon Shutter | Date | Re: [xsl] Unique Nodes, Mukul Gandhi |
Month |