|
Subject: Re: [xsl] Creating a cdata section using xsl From: David Carlisle <davidc@xxxxxxxxx> Date: Thu, 1 Mar 2001 09:19:31 GMT |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] position() oddity?, Peter Flynn | Thread | Re: [xsl] Path for a DTD : proposit, David Carlisle |
| Re: [xsl] position() oddity?, Peter Flynn | Date | Re: [xsl] Path for a DTD : proposit, David Carlisle |
| Month |