[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] Creating a cdata section using xsl
Subject: Re: [xsl] 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 13:14:11 GMT
- Arnaud Vandyck - Tue, 27 Feb 2001 16:49:57 +0100 (CET) <=
Ben Robb - Tue, 27 Feb 2001 15:31:58 -0000
|
|