Re: [xsl] jar in stylesheets

Subject: Re: [xsl] jar in stylesheets
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Fri, 30 Sep 2011 09:32:53 +0100
Your class name suggests this might be a Saxon question? (If so, it would be better asked on the Saxon list...)

To do this you would have to either implement a custom Java ClassLoader (which isn't actually as frightening as it sounds), or a custom Saxon JavaExtensionLibrary (which could be done by subclassing the standard one).

Michael Kay
Saxonica

On 30/09/2011 08:20, Szabo, Patrick (LNG-VIE) wrote:
Hi,

Im using a function from a jar file in my stylesheet.
Currently i put the jar into the CLASSPATH and put this into my
stylesheet:

xmlns:tabconv="java:de.lexis.toast.xslt.SaxonTableConvertExtension"

and call the function like this (e.g.):

<xsl:variable name="newTable" select="tabconv:convertTable(.)"/>

My question is can i somehow give the stylesheets the absolute path to
the jar instead of having to add the jar to the CLASSPATH ?!

Kind regards

. . . . . . . . . . . . . . . . . . . . . . . . . .
Ing. Patrick Szabo
  XSLT Developer
LexisNexis
Marxergasse 25, 1030 Wien

mailto:patrick.szabo@xxxxxxxxxxxxx
Tel.: 00431 534521573
Fax: +43 (1) 534 52 - 146

Current Thread