1 <?xml version="1.0" encoding="UTF-8"?>
   2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
   3                 xmlns:str="http://exslt.org/strings"
   4                 xmlns:xalan="http://xml.apache.org/xalan"
   5                 version="1.0">
   6 <xsl:template match="a">
   7    <xsl:apply-templates />
   8 </xsl:template>
   9 <xsl:template match="//a/c">
  10    <xsl:value-of select="." />
  11  -
  12       <xsl:value-of select="str:tokenize(string(.), ' ')" />
  13    <xsl:value-of select="str:tokenize(string(.), '')" />
  14    <xsl:for-each select="str:tokenize(string(.), ' ')">
  15       <xsl:value-of select="." />
  16    </xsl:for-each>
  17    <xsl:apply-templates select="*" />
  18 </xsl:template>
  19 <xsl:template match="//a/b">
  20    <xsl:value-of select="." />
  21  -
  22       <xsl:value-of select="xalan:tokenize(string(.), ' ')" />
  23    <xsl:value-of select="xalan:tokenize(string(.), '')" />
  24    <xsl:for-each select="xalan:tokenize(string(.), ' ')">
  25       <xsl:value-of select="." />
  26    </xsl:for-each>
  27    <xsl:apply-templates select="*" />
  28 </xsl:template>
  29 
  30 </xsl:stylesheet>