Functions replace and tokenize not found.
I want to take a string and replace every time two commas next to each other with this: ',0,'. Then I need to tokenize this string. This may soud very easy but I am having some difficulty. This is my code:
<xsl:variable name="path" select="tokenize(replace( @path, ',,', ' 0 '), ',')" />
Here is the error message that I get:
XPathParserException: The function '{0}' was not found. expression = 'tokenize(replace( @path, ',,', ' 0 '), ',')' Remaining tokens are ('tokenize' '(' 'replace' '(' '@' 'path' ',' '',,'' ',' '' 0 '' ')' ',' '',''')') (w2dxf.xsl, line 994, column 84)
I have tried with and without the tokenize function and I get the message that the function was not found.
I am using Xalan C 2.6, which only supports XSLT 1.0 XPath 1.0. After looking on the W3 website, I think that using something that is not up-to-date may be the problem. Does anyone have any solutions of getting around this problem?
Thanks to anyone that can give any help! have a great day!
|