Brenda Bell wrote:
Brenda Bell wrote:

I'm trying to run the XSL JavaScript counter example at the bottom of http://xml.apache.org/xalan-j/extensions.html.


More information. I did a fresh download and redid my class path to include xalan.jar, xercesImpl.jar, xml-apis.jar, xsltc.jar, bsf.jar and js.jar -- all in that order.


I'm now getting the following output:

(Location of error unknown)XSLT Error (javax.xml.transform.TransformerException)
: java.lang.NoSuchMethodException: For extension function, could not find method
java.lang.String.read([ExpressionContext,] ).

Problem solved. The namespace declaration in the example is shown as xmlns:xalan="http://xml.apache.org/xalan";.


If I change the namespace URI to "http://xml.apache.org/xslt";, it works. I think this is a bug in the documentation.



Reply via email to