This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Displaying text nodes and child nodes
- From: David Carlisle <davidc at nag dot co dot uk>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Fri, 24 May 2002 11:42:05 +0100
- Subject: Re: [xsl] Displaying text nodes and child nodes
- References: <001901c2030d$59deb160$ccf2a8c0@DTVISEU.PGT>
- Reply-to: xsl-list at lists dot mulberrytech dot com
> I try to use a cdata to make the stylesheet ignore those tags but it pass to
> the browser as smile text and they are shown as <tag>.
Yes that's exactly what CDATA is for, to tell the parser that < does not
start a tag but is just _c_haracter _data_.
Don't use CDATA sections in your source, and then just use xsl:copy-of (not
xsl:copy or xsl:value-of) to copy the tree to the output.
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list