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

RE: [xsl] Preserving character references?


Subject: RE: [xsl] Preserving character references?
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Fri, 12 Jan 2001 12:01:13 -0000

> Is there a way I can preserve character references and their 
> format (decimal
> or hexadecimal) in a XML document when performing a XSLT 
> transformation?

No, there isn't. XSLT preserves the information content of the XML source
but not its lexical representation.

If you really need to preserve such references (why?) the usual advice is to
preprocess the input (e.g. change &#x1234; to ^#x1234;) using Perl (say),
and reverse the process on the output.

Mike Kay 

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



Current Thread
Keywords