This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Preserving character references?
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Preserving character references?
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Fri, 12 Jan 2001 12:01:13 -0000
- Cc: Kenny Ho <kenny at kanhan dot com>, Stan Lam <stanlam at kanhan dot com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
> 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 ሴ 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