You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Scott DeLoach <sc...@lucent.com> on 2000/04/17 21:28:10 UTC
Javascript help
Hi:
I'm experimenting with the Xalan Extensions to get a better
understanding of how to incorporate Javascript in my XSL file. To
that end, I've copied the XML & XSL examples found at the bottom of
the http://xml.apache.org/xalan/extensions.html web page that
demonstrates the ability to use a counter using Javascript.
Using these two files along with the following JAR files in my class
path: xalan.jar, xerces.jar, bsf.jar, bsfengines.jar and js.jar (from
mozilla/rhino), I tried to transform the XML file via the XSL file
only to get errors indicating that the javascript could not be
loaded. Here is the actual input/output I'm getting:
> C: java org.apache.xalan.xslt.process -in nlist.xml -xsl nlist.xsl
> ========= Parsing file:C:/Learn XML/Work/nlist.xsl ==========
> Parse of file:C:/Learn XML/Work/nlist.xsl took 3510 milliseconds
> ========= Parsing nlist.xml ==========
> Parse of nlist.xml took 280 milliseconds
> =============================
> Transforming...
> Call to extension function failed: unable to load language: javascript
> Call to extension element failed: unable to load language: javascript
> Call to extension function failed: unable to load language: javascript
> Call to extension element failed: unable to load language: javascript
> Call to extension function failed: unable to load language: javascript
> Call to extension element failed: unable to load language: javascript
> Call to extension function failed: unable to load language: javascript
> Call to extension element failed: unable to load language: javascript
> Call to extension function failed: unable to load language: javascript
> Call to extension element failed: unable to load language: javascript
> Call to extension function failed: unable to load language: javascript
> Call to extension element failed: unable to load language: javascript
> Call to extension function failed: unable to load language: javascript
> Call to extension element failed: unable to load language: javascript
> Call to extension function failed: unable to load language: javascript
> Call to extension element failed: unable to load language: javascript
> Call to extension function failed: unable to load language: javascript
> Call to extension element failed: unable to load language: javascript
> Call to extension function failed: unable to load language: javascript
> Call to extension element failed: unable to load language: javascript
> <HTML>
> <H1>Names in alphatebical order</H1>
> <p>[]. Bertoni, David</p>
> <p>[]. Boag, Scott</p>
> <p>[]. Curcuru, Shane</p>
> <p>[]. Dick, Paul</p>
> <p>[]. Donohue, Jack</p>
> <p>[]. Farmer, Emily</p>
> <p>[]. Leslie, Donald</p>
> <p>[]. Marston, David</p>
> <p>[]. Midy, Myriam</p>
> <p>[]. Weir, Robert</p>
> </HTML>
> transform took 9610 milliseconds
> XSLProcessor: done
Any ideas/suggestions as to what I might be doing wrong here would be
appreciated.
Thanks,
Scott DeLoach
Lucent Technologies
scdeloach@lucent.com