View Single Post
  #2 (permalink)  
Old June 30th, 2009, 09:31 AM
mhkay's Avatar
mhkay mhkay is offline
Wrox Author
Points: 12,735, Level: 48
Points: 12,735, Level: 48 Points: 12,735, Level: 48 Points: 12,735, Level: 48
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 3,923
Thanks: 0
Thanked 82 Times in 80 Posts
Default

I think you're better off here using tokenize():

Code:
<xsl:for-each select="tokenize($blockValue, ',')">
  <KEYWD BLOCK="3">
     <xsl:value-of select="."/>
  </KEYWD>
</xsl:for-each>
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
Reply With Quote