[Home] [By Thread] [By Date] [Recent Entries]
Rob Newman wrote:
Hi All, You seem to be trying to capture it all at once. But you are not taking into consideration the basic greediness of any regular expression (this is explained, for instance, on www.regular-expressions.info). Instead of trying to match it all at once, there's (in your case) a much simpler way to match this: <xsl:for-each select="tokenize($elValue, '\n')">
<xsl:for-each select="tokenize($elValue, '\s+')">
do your stuff
</xsl:for-each>
</xsl:for-each>You may want to put the second for-each in a variable, which makes for easy reference by index: <xsl:for-each select="tokenize($elValue, '\n')"> <xsl:variable select="tokenize($elValue, '\s+')" name="values" /> do your stuff with $values </xsl:for-each> HTH, Cheers, -- Abel
|

Cart



