[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: unicode numeric character references in xml output
On 5/30/08 12:28 PM, "a k laue" <quiotl@xxxxxxxxx> wrote: > Hello, > > I'm transforming XML to XML, and I need to pass > through the unicode numeric character references (hex) > from the source to the output. That is, I need > "’" in the input to appear as "’" in the > output. I'm using XSLT 2.0 and the Saxon 9B processor. Then you need to look at this page in the Saxon docs: http://www.saxonica.com/documentation/extensions/output-extras/character-rep resentation.html Mike has added the ability to specify that you want hex values for numeric character references. You can't directly control how characters are serialized with XSLT since it shouldn't matter how characters are represented (I assume you're trying to satisfy either some tool that does care or implement some policy that mandates the use of hex values for numeric character references). Cheers, Eliot -- Eliot Kimber Senior Solutions Architect "Bringing Strategy, Content, and Technology Together" Main: 610.631.6770 www.reallysi.com www.rsuitecms.com
|
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
|