[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: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 16 Feb 2007 12:38:56 +0000
Re:  Flattening characters to plain latin
>>>>> "Abel" == Abel Braaksma <abel.online@xxxxxxxxx> writes:

    Abel> Michael Kay wrote:
    >> 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.

    Abel> Wow! Some solutions to complex problems are just too pretty
    Abel> to ignore!  Reading the requirement of the OP, I would've
    Abel> never thought there was such an easy, solid and sound
    Abel> solution to it. May I nominate it for the Best XSLT 2 Coding
    Abel> Example Award?

No. Not unless you correct the error in it first.
-- 
Colin Adams
Preston Lancashire

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-2013 All Rights Reserved.