xsl-list
[Top] [All Lists]

Re: [xsl] Flattening characters to plain latin

2007-02-16 05:39:15
"Abel" == Abel Braaksma <abel(_dot_)online(_at_)xs4all(_dot_)nl> 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

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