This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Creating a cdata section using xsl
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Creating a cdata section using xsl
- From: Arnaud Vandyck <arnaud at ressource-toi dot org>
- Date: Tue, 27 Feb 2001 16:49:57 +0100 (CET)
- Reply-To: xsl-list at lists dot mulberrytech dot com
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