How to implement tokenize in XSLT
-
I am trying to use the tokenize function and I have tried many different namespaces but was unsuccessful. With the Xalan namespace, a call to function-available('xalan:tokenize') returns false. With EXSLT, I get the error: Variable 'ctxN' has not been declared. What does that mean? This is what I have for my stylesheet element:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:str="http://exslt.org/strings" exclude-result-prefixes="str"> <xsl:include href="str.tokenize.msxsl.xsl"/>
And then, when I switch to str.tokenize.template.xsl, I get the error: Cannot find the script or external object that implements prefix 'http://exslt.org/strings' What am I doing wrong? I am using Microsoft Visual Studio 2008 .NET. Any ideas? Thanks!