Subject: Re: [xsl] Preserving character references? From: David Carlisle <davidc@xxxxxxxxx> Date: Fri, 12 Jan 2001 09:29:53 GMT |
> 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Preserving character referenc, Michael Lee | Thread | Re: [xsl] Preserving character refe, Wendell Piez |
Re: [xsl] Compound Keys Problem., Jeni Tennison | Date | Re: [xsl] Compound Keys Problem., Dimitre Novatchev |
Month |