[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Preserving character references?

Subject: Re: Preserving character references?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 12 Jan 2001 09:29:53 GMT
hex character reference
> 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.