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

RE: Flattening characters to plain latin

Subject: RE: Flattening characters to plain latin
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 15 Feb 2007 15:01:10 -0000
RE:  Flattening characters to plain latin
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@xxxxxxxxxxxxx]
> Sent: 15 February 2007 14:27
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  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 g would become c, q would become
> n, v would become o and so on.
>
> Or do I have a massive list of unicode pairs to enter?

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.