[xsl] JD and Java Extension

Subject: [xsl] JD and Java Extension
From: "Spencer Bruce" <spencer@xxxxxxxxxxxx>
Date: Mon, 17 Feb 2003 09:35:22 +0200
Hi All

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

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
        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

Spencer Bruce

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread