W3C home > Mailing lists > Public > public-qt-comments@w3.org > October 2005

RE: [Bug 1394] New: Improvement to fn:tokenize function

From: Michael Kay <mhk@mhk.me.uk>
Date: Sat, 15 Oct 2005 09:56:08 +0100
To: "'Biswas, Dip'" <dbiswas@visa.com>, <public-qt-comments@w3.org>
Message-ID: <E1EQhpy-0008Mf-RQ@maggie.w3.org>
This list is for comments on the W3C specification, not for getting help
with programming problems.
For XSLT coding advice, please use the xsl-list at www.mulberrytech.com, or
your product vendor's support line. 
First though: do make sure that you are using an XSLT 2.0 processor, because
most processors out there only support 1.0, which doesn't have a tokenize
Michael Kay
personal response


From: public-qt-comments-request@w3.org
[mailto:public-qt-comments-request@w3.org] On Behalf Of Biswas, Dip
Sent: 15 October 2005 00:46
To: public-qt-comments@w3.org
Subject: Re: [Bug 1394] New: Improvement to fn:tokenize function



I am trying to use the string tokenize function in code but I get an error
everytime I run it.


This is how I have used it:


<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:func
="http://www.w3.org/2005/xpath-functions" >


<xsl:template match="/">

<xsl:for-each select="tokenize($tempstr,'&#xA;')">
<xsl:value-of select="." /><xsl:text> &lt;/BR&gt; </xsl:text>


</xsl:template match>


Error Message:


XPathParserException: The function '{0}' was not found.

expression = 'tokenize($tempstr,'

')' Remaining tokens are:  ('tokenize' '(' '$' 'tempstr' ',' ''

'' ')') (C:\test\IBOL\IBOLReports\XSL\xml2CSV.xsl, line 124, column 58)


Can anyone help?




Dip Biswas


Intl. 6(720) 3067

Off: (650) 432 3067

Received on Saturday, 15 October 2005 08:56:22 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:09 UTC