xsl-list
[Top] [All Lists]

Re: [xsl] replace(), translate() and Unicode supplementary characters

2011-06-03 03:09:55
On 03/06/2011 05:00, Kenneth Reid Beesley wrote:
Questions:  Are translate() and replace() supposed to work with Unicode 
supplementary characters?

yes

If so, what am I doing wrong?


hard to say as there is rather a large chance that the input you showed has been through several aggressive mail filters.

Chances are it's an encoding error and one way to avoid those is to code your stylesheet in ascii.

translate(
.,
'& #x10428& #x10429;& #x1042A& #x1042B;',
'& #x0069;& #x0065;& #x0251;& #x0254;'
)

without the spaces after the &
should work for the translation you cited.

David



________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. ________________________________________________________________________

--~------------------------------------------------------------------
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>