[xslt] str:tokenize behavior
- From: "Vakoc, Mark" <Mark_Vakoc jdedwards com>
- To: "'xslt gnome org'" <xslt gnome org>
- Subject: [xslt] str:tokenize behavior
- Date: Wed, 23 Apr 2003 14:47:59 -0600
Hey Daniel, it's back...
The attached stylesheet seems to exhibit incorrect behavior when using
str:tokenize() in the select of <xsl:for-each>. Does xsltForEach need to
check that the node-set obtained from evaluating is a RTF and if so call the
applyOneTemplate on the children of the 'container' element?
----------------------------------------------------------------------------
---------------------------
C:\test>type tokenize.xsl
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:str="http://exslt.org/strings"
extension-element-prefixes="str">
<xsl:template match="/">
<xsl:for-each select="str:tokenize('This is strange behavior', ' ')" >
<tok><xsl:value-of select="."/></tok>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
C:\test>gssxslt tokenize.xsl tokenize.xsl
<?xml version="1.0"?>
<tok>Thisisstrangebehavior</tok>
C:\test>gssxslt --version
Using libxml 20506, libxslt 10029 and libexslt 719
xsltproc was compiled against libxml 20506, libxslt 10029 and libexslt 719
libxslt 10029 was compiled against libxml 20506
libexslt 719 was compiled against libxml 20506
C:\test>
----------------------------------------------------------------------------
---------------------------------
I would expect output along the lines of
<?xml version="1.0"?>
<tok>This</tok><tok>is</tok><tok>strange</tok><tok>behavior</tok>
Thanks.
<<tokenize.xsl>>
tokenize.xsl
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]