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

RE: Unicode character blocks in strings

Subject: RE: Unicode character blocks in strings
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 26 May 2009 14:16:56 +0100
RE:  Unicode character blocks in strings

<xsl:analyze-string regex="\p{{IsCJKUnifiedIdeographs}}">
  <out><xsl:value-of select="."/></out>
  <out><xsl:value-of select="."/></out>


Michael Kay

> -----Original Message-----
> From: tom tom [mailto:tomxsllist@xxxxxxxxxxx]
> Sent: 26 May 2009 14:08
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Unicode character blocks in strings
> I have a string containing a mix of Chinese and Latin
> characters, eg 0"8yM"<WPMH1N1Aw8PH7.
> I wish to return a nodeset containing the following kind of structure:
>   0"8yM"<WPM
>   H1N1
>   Aw8PH7
> Where H1N1 falls into the BasicLatin unicode character block
> and the other two strings can be categorized as CJKUnifiedIdeographs.
> Can anyone suggest the cleanest way to do this using XSLT 2?
> Tom
> _________________________________________________________________
> View your Twitter and Flickr updates from one place (C Learn more!
> http://clk.atdmt.com/UKM/go/137984870/direct/01/

Current Thread


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.
First Name
Last Name
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.