This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Preserving character references?


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]