[xsl] Extending Java Classes in XSLT2

Subject: [xsl] Extending Java Classes in XSLT2
From: "Kurt Cagle" <cagle@xxxxxxxxx>
Date: Thu, 10 Oct 2002 09:24:25 -0700
I have a stupid question to ask, but after spending too many hours last
night unsuccessfully trying to do this, I'm getting desperate. I'm using
Michael Kay's Saxon 7.2 parser and XSLT 2.0 -- overall, very sweet, by the
way -- and I'm trying to get a Java class that I wrote (JPanesque.class) to
load through the extension mechanism in XSLT 2. The problem that I'm having
is more Java related than XSL -- I know the use of the namespaces
designation to load in Java classes, but those relate only to those classes
that are specifically in the Java API itself. If the JPanesque.class is in
the same directory as the XSLT, how would I get it to load into the

I've tried

<xsl:stylesheet version="2.0"
    xmlns:jp ='java:JPanesque'>
    <xsl:variable name="panel" select="jp:new()"/>

But that generates an error indicating that the new() class is not supported
(and thus presumably that the class could not be found).

-- Kurt Cagle

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

Current Thread