This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Preserving XHTML markup
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 4 Feb 2002 20:04:56 -0000
- Subject: RE: [xsl] Preserving XHTML markup
- Reply-to: xsl-list at lists dot mulberrytech dot com
> 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@ntlworld.com
work: Michael.Kay@softwareag.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list