xsl-list
[Top] [All Lists]

RE: [xsl] Flattening characters to plain latin

2007-02-15 08:01:29

In XPath 2.0 I think you can achieve this using

codepoints-to-string(string-to-codepoints(normalize-unicode($in, 'NFKD'))[.
lt 127])

This splits composite characters into the base character plus modifiers,
then strips off the modifiers.

Michael Kay
http://www.saxonica.com/


-----Original Message-----
From: Peter Hickman [mailto:peter(_at_)semantico(_dot_)com] 
Sent: 15 February 2007 14:27
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Flattening characters to plain latin

Sorry if this has been answered a dozen times but I am 
looking for some xslt to take a string of latin script 
unicode characters and flatten them to their plain 
equivalents. For example the ç would become c, ñ would become 
n, ö would become o and so on.

Or do I have a massive list of unicode pairs to enter?

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



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