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

Re: values in sequence after tokenize

Subject: Re: values in sequence after tokenize
From: "andrew welch" <andrew.j.welch@xxxxxxxxx>
Date: Tue, 11 Jul 2006 15:33:08 +0100
Re:  values in sequence after tokenize
On 7/11/06, Michael Kay <mike@xxxxxxxxxxxx> wrote:
The regex given to tokenize determines the separator between tokens, not the
content of the tokens.
I'm not quite sure what result you expect here (or in general). You can
probably tackle it using xsl:analyze-string, which is more powerful than

Using xsl:analyze-string, how would I add a count to the matching items:

<xsl:analyze-string select="$string" regex=".{{1,6}}\^">
   <line count="{ ?? }"><xsl:value-of select="."/></line>
   <non><xsl:value-of select="."/></non>

...so that the output would be:

<line count="1">....
<line count="2">....

Is this possible or does it require two passes?


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.