EXSLT - str:tokenize - Use Case 1

Category: example
XML Definition: str.tokenize.xml
Function or Template: function

Use Case

Source (view)

<a>
   <c>Is this EXSLT? No. no</c>
</a>

Stylesheet (view)

<xsl:template match="a">
   <xsl:apply-templates />
</xsl:template>
<xsl:template match="*">
   <xsl:value-of select="." />
 -
      <xsl:value-of select="str:tokenize(string(.), ' ')" />
   <xsl:value-of select="str:tokenize(string(.), '')" />
   <xsl:for-each select="str:tokenize(string(.), ' ')">
      <xsl:value-of select="." />
   </xsl:for-each>
   <xsl:apply-templates select="*" />
</xsl:template>

Change History

Previous Version: ..NaN.html

VersionModifiedByDetails
2001-06-26Chris Bayes

http://www.exslt.org/str/functions/tokenize/str.tokenize.use-case.1.html last modified 2001-06-26