Picking this conversation back up...  I'm trying the abbreviated syntax
as several recommended.  Still getting an error.

ManipulateText.java code is this-

import java.util.*;
public class ManipulateText 
{
public char Unescape(char mydata) 
  {
    return mydata;
  }
}


Test stylesheet starts with this-

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
        xmlns="http://www.w3.org/1999/xhtml";
        xmlns:doc="http://nwalsh.com/xsl/documentation/1.0";
        xmlns:xalan="http://xml.apache.org/xalan";
        xmlns:MT="xalan://ManipulateText.ManipulateText"
        extension-element-prefixes="MT"
        exclude-result-prefixes="doc"
        version="1.0">

And later contains this-
<xsl:value-of select="MT:Unescape('text')"/>

And I'm now getting this error-
(Location of error unknown)XSLT Error
(javax.xml.transform.TransformerException):
java.lang.NoSuchMethodException: For extension function, could not find
method java.lang.String.Unescape([ExpressionContext,] ).

I tried the the two different flavors of "new" that were suggested, but
didn't get anywhere.

Suggestions?

Reply via email to