RE: [xsl] Troubles using Inodata Isogen Saxon Extension "renderedTextLength Function" with Saxon7.9.1 or Saxon 8.0

Subject: RE: [xsl] Troubles using Inodata Isogen Saxon Extension "renderedTextLength Function" with Saxon7.9.1 or Saxon 8.0
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Fri, 11 Jun 2004 22:57:04 +0100
> 
> In the stylesheet i defined the namespace as you did in your sample! I
> started the formating in XML Spy (java -jar
> "C:\Programme\Saxon\Saxon7.9\saxon7.jar" -o %2 %1 %3)
> 
> But then an error occurs which tells me that the function 
> renderedTextLength
> is unknown...
> 
> What is the problem here?

When you invoke a Java application using -jar, the only things on your
classpath are things in that JAR archive, plus any dependencies registered
in the JAR archive. So if you want to invoke your own extension functions,
you need to use the other approach:

java net.sf.saxon.Transform -o %2 %1 %3

You might also find the -TJ option useful for diagnosing such problems.

Michael Kay



Current Thread