RE: [xsl] Preserving XHTML markup

Subject: RE: [xsl] Preserving XHTML markup
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Mon, 4 Feb 2002 20:04:56 -0000
> Just noticed that using copy-of keeps the parent markup:
> 
> <para>Hello, <b>World</b>!</para>
> 
> Using <p><xsl:copy-of select="."/></p>, becomes
> 
> <p><para>Hello, <b>World</b>!</para></p>
> 
> How do get rid of the "para" tags?
> 
Use <xsl:copy-of select="child::node()"/>.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 

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


Current Thread