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: David Carlisle <davidc at nag dot co dot uk>
- Date: Thu, 1 Mar 2001 09:19:31 GMT
- References: <Pine.LNX.4.21.0102271647580.27164-100000@vbstefi60.fapse.ulg.ac.be>
- Reply-To: xsl-list at lists dot mulberrytech dot com
me> <html>
> Why don't you use the <xsl:element> tag?
>
> <xsl:template match="person">
> <xsl:element name="html">
> <xsl:apply-templates/>
> </xsl:element>
> </xsl:template>
Because that wouldn't do what was asked for.
That is totally equivalent to
Why don't you use the <xsl:element> tag?
<xsl:template match="person">
<html>
<xsl:apply-templates/>
</html>
</xsl:template>
which creates an html element node in the output.
But the original poster didn't want an html element
he wanted the characters < h t m l > as text.
Hence the subject line of this thread.
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list