Subject: Re: Creating a cdata section using xsl
From: Arnaud Vandyck <arnaud@xxxxxxxxxxxxxxxxx>
Date: Tue, 27 Feb 2001 16:49:57 +0100 (CET)
|
On Tue, 27 Feb 2001, David Carlisle wrote:
>
> For example, given the source document:
>
> <person>
> <name>John Doe</name>
> </person>
>
> <xsl:template match="/">
> <doc>
> <display>
> <xsl:apply-templates/>
> </display>
> </doc>
> </xsl:template>
>
> <xsl:template match="person">
> <html>
> <xsl:apply-templates/>
> </html>
> </xsl:template>
>
> <xsl:template match="name">
> <body>
> <xsl:apply-templates/>
> </body>
> </xsl:template>
Why don't you use the <xsl:element> tag?
<xsl:template match="person">
<xsl:element name="html">
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
-- Arnaud
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
David Carlisle - Tue, 27 Feb 2001 08:17:52 -0500 (EST)
- Arnaud Vandyck - Tue, 27 Feb 2001 08:40:12 -0500 (EST) <=
Ben Robb - Tue, 27 Feb 2001 11:44:24 -0500 (EST)
|
|