[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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? > For example, if I have the following text in the source XML document: No. Your document is parsed by an XML parser before it is passed to the XSL system and the XML parser will have normalised all such references. Whether the input had character data, or a numeric or hex character reference the XSL engine will see the same input (similarly you can't tell if attribute values were quoted with " or ' etc) > When I changed it to "ISO-8859-1", > Unicorn changed the character references into decimal form: your processor may allow some control (external to XSL) over the way the XML output method linearises these characters, but you'd only be able to control whether characters were (always) output in hex or decimal, or via a general internal entity in some DTD, the information about how that character was entered in the source file just isn't there. David _____________________________________________________________________ This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Control Centre. For further information visit http://www.star.net.uk/stats.asp XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|