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: 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">
> &lt;html&gt;
>   <xsl:apply-templates/>
> &lt;/html&gt;
> </xsl:template>
> 
> <xsl:template match="name">
> &lt;body&gt;
>   <xsl:apply-templates/>
> &lt;/body&gt;
> </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
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