RE: [xsl] Preserving XHTML markup

Subject: RE: [xsl] Preserving XHTML markup
From: Adam Sherman <adam@xxxxxxxxx>
Date: Mon, 04 Feb 2002 15:21:16 -0500
On 02/04/2002 08:04:56 PM +0000, Michael Kay wrote:

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()"/>.

Great! Works fine. Going now to read "XSLT Programmer's Reference" cover to cover with my tail between my legs.


I promise to avoiddumb questions next time!!!

Thanks,

A.

--
Adam Sherman
President & Chief Technologist
Tritus Consultant Group Inc.
+1 (613) 255-5164

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


Current Thread