xsl-list
[Top] [All Lists]

Re: [xsl] Re: replace() and translate() second try

2011-06-07 16:02:14
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



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>