Subject: Re: [xsl] JD and Java Extension|
From: Johannes Döbler <jd@xxxxxxxxxxxxxx>
Date: Mon, 17 Feb 2003 10:03:46 +0100
<xsl:stylesheet xmlns:math="java:java.lang.Math" ...> ... <xsl:value-of select="math:sin(3.14)"/> ... </xsl:stylesheet>
First of all, sorry if this has been sent more than once.
I am using the JD xsl Parser to parse my xsl documents. The primary reason that we are using JD is so that we can chain transformations efficiently and with little fuss.
However we also have a set of Java Extensions that we wrote to add functionality to our stylesheets. When we were parsing through xalan then "xalan://JavaExtension" worked fine. However, we can not get any of our extensions to work through the jd parser.
When we try to define the name space for our extensions, an error message is displayed:
jd.xml.xslt.XsltException: no extension function 'xalan://JavaExtension:setContent' defined at jd.xml.xslt.XsltContext.getExtensionFunction(Unknown Source) at jd.xml.xslt.extension.ExtensionFunctionCall.toXObject(Unknown Source) at jd.xml.xpath.expr.Expression.toStringValue(Unknown Source) at jd.xml.xslt.template.ValueOf.instantiate(Unknown Source) at jd.xml.xslt.template.TemplateRule.applyTemplate(Unknown Source) at jd.xml.xslt.Stylesheet.transform(Unknown Source) at jd.xml.xslt.AbstractStylesheet.transform(Unknown Source)
We have tried putting our own classes in different folders, changing namespaces such as removing the "xalan" part etc but to no avail.
Can anyone tell us how to correctly call Home-made Java Extensions from the JD parser?
Thanks a lot
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list