[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Transform XML into CDATA


Subject: Re: [xsl] Transform XML into CDATA
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 14 Feb 2006 16:04:22 GMT

>  disable-output-escaping="yes"/>

you don't want d-o-e here.

> 			<xsl:element name="a">

You don't want an element a you want the text <a href=... so that is
<xsl:text>&lt;a href="</xsl:text>
<xsl:value-of select="item[1]"/>
<xsl:text>" target="_blank">&lt;U>Open image in new window&lt;/U></xsl:text>

The whole point of CDATA sections is that they contain character data,
not elements.

David


________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________


Current Thread