Hi,
 
I'm a bit confused about the tokenize method in Xalan Java 2.2.D9: org.apache.xalan.lib.Extensions.tokenize(tokenize-string), should it work? This worked fine with Xalan 2.1.0 (but of course it hadn't DTM).
If it is not supposed to work now, will it ever work with the DTM? If I've understood correct, the tokenize method uses DTMNodeProxy's createTextNode method that just throws an exception.
Can I create a similar tokenize method of my own, how?
 
I've used the Xalan
example xsl I used:
<?xml version='1.0'?>
<xsl:stylesheet
  version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:xalan="http://xml.apache.org/xalan"
  exclude-result-prefixes="xalan">
 
  <xsl:output method="html" />
 
  <xsl:template match="/">
<html>
<body>
<xsl:variable name="tok" select="xalan:tokenize('test1 test2')"/>
<xsl:for-each select="$tok">
  <xsl:value-of select="." /><br/>
</xsl:for-each>
</body>
</html>
  </xsl:template>
</xsl:stylesheet>
Regards,
Pasi Hietamaki
 

Reply via email to