[xsl] Make safe XML

Subject: [xsl] Make safe XML
From: "Karl J. Stubsjoen" <karl@xxxxxxxxxxxxx>
Date: Thu, 3 Jul 2003 07:23:11 -0700
Hello,

I have a database that I'd like to persist to XML.  I'm going to use XSLT to
insure that the data in each of the fields is suited for XML.  Since I have
complete control over this data, should I:

a)  use XSLT to encode special characters
b)  just throw all data into CDATA nodes?

If the first option (a), might anyone know of an XSLT template for encoding
special characters?  I will be using ADO and the MSXML4 parser, is there yet
another option available that I'm not thinking of?

Thanks,
Karl


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


Current Thread