- 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 function. 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 Hello, 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,'
')"> <xsl:value-of select="." /><xsl:text> </BR> </xsl:text> </xsl:for-each> </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? DB Regards, Dip Biswas Intl. 6(720) 3067 Off: (650) 432 3067
Received on Saturday, 15 October 2005 08:56:22 UTC