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 not getting the following output:
file:///d:/temp/test2.xslt Line #27, Column #26: template match='/'
STARTDOCUMENT
STARTELEMENT: HTML
<HTML xmlns:xalan="http://xml.apache.org/xalan">
STARTELEMENT: H1
CHARACTERS: Names in alphatebical order
ENDELEMENT: H1
file:///d:/temp/test2.xslt; Line #30; Column #42; javax.xml.transform.Transforme
rException: java.lang.ClassNotFoundException: MyCounter
<H1>Names in alphatebical order</H1>
STARTELEMENT: p
CHARACTERS: [
ENDELEMENT: p
<p>[</p>
ENDELEMENT: HTML
(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,] ).
Same question: what am I doing wrong?
