error message The URI does not identify an external Java class

Posted by iHeartGreek on Stack Overflow See other posts from Stack Overflow or by iHeartGreek
Published on 2010-06-14T19:01:14Z Indexed on 2010/06/14 19:02 UTC
Read the original article Hit count: 264

Filed under:
|
|
|
|

Hi!

I am new to XSL, and thus new to using scripts within the XSL.

I have taken example code (also using C#) and adapted it for my own use.. but it does not work.

The error message is: The URI urn:cs-scripts does not identify an external Java class

The relevant code I have is:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
xmlns:strTok="urn:cs-scripts">

...
...
...
</xsl:template>


<xsl:variable name="temp">
    <xsl:value-of select="tok:getList('AAA BBB CCC', ' ')"/>
</xsl:variable>

<msxsl:script language="C#" implements-prefix="tok">
    <![CDATA[
    public string[] getList(string str, char[] delim)
  {
     return str.Split(delim, StringSplitOptions.None);
  }

  public string getString(string[] list, int i)
  {
     return list[i];
  }
  ]]>
</msxsl:script>


</xsl:stylesheet>

© Stack Overflow or respective owner

Related posts about c#

Related posts about error