This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Using Extension functions
- To: XSL-List at mulberrytech dot com
- Subject: Using Extension functions
- From: Allen Haws <joeshmoe at unicon dot net>
- Date: Mon, 09 Oct 2000 12:10:30 -0700
- Reply-To: xsl-list at mulberrytech dot com
Listers,
I've created an extension function (javaclass) and am calling it from
within the xsl.
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:java="http://xml.apache.org/xslt/java"
version = "1.0">
<xsl:template match="extensiontest">
The return value of the funcion call is : <xsl:value-of
select="java:net.unicon.xml.XSLExtFunctions.test()"/>
</xsl:template>
</xsl:stylesheet>
The call works fine if I jar the class and put it in my extension
directory of my jdk but it doesn't find the class if I leave it in its
classpath directory. I am having to jar the class up with the package
directory structure and putting in the extension directory instead of
leaving in my classpath.
Can anyone tell my why my xsl processor doesn't read my classpath? All
Xalan documentation that I have says that it should.
I'm processing with Xalan using jdk1.2.2.
Thanks
--
*******************************************
Allen Haws
Unicon Inc.
Email: joeshmoe@unicon.net
Phone: 480.926.2368 ext 343
Direct: 480.558.2445
*******************************************
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list