ASP Error: 70
Description: Permission denied
Source: Microsoft VBScript runtime error

[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Make safe XML

Subject: RE: Make safe XML
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Thu, 3 Jul 2003 21:13:12 +0100
xml safe characters
> I have a database that I'd like to persist to XML.

(How I hate that term. "Persist" is not a transitive verb. This isn't
just linguistic pedantry. In the old days we used to read and write
data. Then Malcolm Atkinson and co developed the idea that persistence
should be a property of the data, rather than something that happened
because of imperative actions by the programmer. The word caught on, but
people didn't get the idea behind it, and now they use the word as a
synonym for "write". Data persists, users don't persist it.) 


  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?
> 

The only thing you need to do is to ensure that the data uses the XML
subset of Unicode, which means for example not using characters in the
C0 control block except for TAB/CR/NL. Everything else you can leave to
the serializer to handle for you. Escaping and unescaping of special
characters happen in the conversion from serial XML to tree structures,
and is therefore of no concern to an XSLT stylesheet.

Michael Kay

Michael Kay


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.