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

Re: Hexadecimal character reference

Subject: Re: Hexadecimal character reference
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Mon, 06 Jun 2011 09:09:53 +0200
Re:  Hexadecimal character reference
Ganesh,

Technically, decimal character references and hexadecimal character references are transparent and the same to any XML processor. Is there any problem in your chain, i.e. some XML processor, that doesn't know how to read decimal character references? If so, it's better to cure the source of the problem than to try to find some awkward workaround.

In answer to your below question: I believe you can attach a different type of XML writer to Saxon programmatically, or, if you want to do it with XSLT alone, an ugly workaround can be to process all text-nodes (and possibly attribute nodes) again in a mini pipeline. All you need to do is filter for high characters and output them in your own format (say %_A0;), which can be done with basic XSLT and XPath functions. Then you only need to use one character mapping for "%_" and you're done. This will work in any compliant XSLT 2.0 processor.

Kind regards,
Abel Braaksma


On 6-6-2011 7:09, Ganesh Babu N wrote:
Dear Martin,

I am using Xalan 2.7.1 for XSLT 1.0 and Saxon 8.9b for XSLT 2.0 on
Windows. Is there any extension function in either of the processor to
achieve the above result?

Is there any processor which provides the above result with extension functions?

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-2011 All Rights Reserved.