This is a "how to" question.  I've read through example material for defining a 
javascript function in an XSL, but not gotten anything to work yet.
 
I think I have bsf.jar and js.jar in the right spot.
 
At the top of my XSL, I have:
<xsl:stylesheet 
xmlns:xsl=http://www.w3.org/1999/XSL/Transform 
xmlns=http://www.w3.org/1999/xhtml 
xmlns:exslt=http://exslt.org/common 
xmlns:xalan=http://xml.apache.org/xalan
xmlns:lxslt=http://xml.apache.org/xslt
xmlns:ftest="MyExtension"
exclude-result-prefixes="ftest"
version="1.0">

and have added down in the body:
<lxslt:component prefix="ftest" functions="test">
<lxslt:script lang="javascript">
function test() {
return true;
}
</lxslt:script>
</lxslt:component>

The transformer errors out, but the way the environment has been implemented 
(beyond my control), I'm afraid I don't get to see the error message.
 
Suggestion?
 
*********************************
John F. Wade, PE
TBE
EO20 - MSFC iPV Integration Lead

Reply via email to