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

Re: [xsl] Make safe XML


Subject: Re: [xsl] Make safe XML
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 3 Jul 2003 15:37:27 +0100


> a)  use XSLT to encode special characters

I'm not sure what you mean by this.
If your input characters are not already encoded in an XML-compatible
way, then you will get a fatal error parsing your input document
and you won't be able to run XSLT on it. If they are already encoded in
an XML compatible way, what to you want XSLT to do?

> b)  just throw all data into CDATA nodes?
CDATA nodes _only_ affect the interpretation of < and &
all other characters are interoretted the same way inside and outside
CDATA sections, so this is unlikely to help.

David


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. 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
________________________________________________________________________

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
Keywords