|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Escaping the root node when using xsl:copy-of
Hi,
> Is there any way i can escape the root node (just the element
> tag) being copied while all the children are copied as is.
<xsl:template match="/*">
<xsl:copy-of select="node()"/>
</xsl:template>
> Currently am using <xsl:copy-of
> select="node()[not(self::DURATION)]"/> which copies
> everything except the DURATION child. Problem it also copies
> the root node which is the node where i start copying.
I'm not sure if this is what you mean,
<xsl:copy-of select="*[not(self::DURATION)]/node() | node()[not(self::*)]"/>
Cheers,
Jarno - Delerium: Truly (Club)
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








