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

Re: Re: replace() and translate() second try

Subject: Re: Re: replace() and translate() second try
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Tue, 07 Jun 2011 22:02:00 +0100
Re:  Re: replace() and translate() second try
On 04/06/2011 18:35, Kenneth Reid Beesley wrote:
Thanks to Michael Kay and David Carlisle for their responses.

In an example like
	translate(string, "wxyz", "ABCD")

where w, x, y and z are supplementary characters, I find (using saxonhe9-3)
that it works if the supplementary characters are indicated with the hex-escape
&#xHHHHHHHH; notation, but _not_ if the supplementary characters are simply typed in
using a Unicode-savvy text editor that handles supplementary characters.

For the record, this conversation continued off-list and we established that the problem was solved by using the Apache Xerces XML parser in place of the default parser in the JDK. Yet again - please don't use the JDK parser: it's full of bugs, and I don't think Oracle are any more likely to fix them than Sun were.


Michael Kay
Saxonica

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.