xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[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: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 1 Mar 2001 09:19:31 GMT

me> &lt;html&gt;

> 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
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor