| Subject: Re: [xsl] Another tokenize() question From: David Carlisle <davidc@xxxxxxxxx> Date: Wed, 11 Aug 2004 11:35:55 +0100 | 
>Now I know I'm being a pain, but when I use that I get:
Hmph so I. 
Saxon  expected ()) but I didn't (perhaps Mike will answer:-)
but simplest is to avoid { and } and use something else, bracketing
by unicode chars 1001 and 1002 (No idea if they are assigned, xml
doesn't care:-) seems to work.
running this on itself shows two "words" and a non word " , "
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                 version="2.0">
<xsl:output method="text"/>
<xsl:template match="/">
:
<xsl:analyze-string
regex="(\w|ϩ[^ϩϪ]*Ϫ)+" 
select="'abcdϩeϪfg , foo'">
<xsl:matching-substring>
MS: <xsl:value-of select="."/>
</xsl:matching-substring>
<xsl:non-matching-substring>
NS:<xsl:value-of select="."/>
</xsl:non-matching-substring>
</xsl:analyze-string>
:
</xsl:template>
</xsl:stylesheet>
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
| Current Thread | 
|---|
| 
 | 
| <- Previous | Index | Next -> | 
|---|---|---|
| Re: [xsl] Another tokenize() questi, James Cummings | Thread | [xsl] extract xpath locator, Nicolas Mazziotta | 
| Re: [xsl] Another tokenize() questi, James Cummings | Date | RE: [xsl] Another tokenize() questi, Michael Kay | 
| Month |