If it works from the command line and not from a Java application, I think
the only plausible explanation is that the classpath is different in the two
cases.
There's a -TJ option on the command line to trace the process of binding
extension functions for diagnostics, and this can also be switched on when
running from a Java application by setting the
FeatureKeys.TRACE_EXTERNAL_FUNCTIONS feature on the TransformerFactory.
Michael Kay
http://www.saxonica.com/
> -----Original Message-----
> From: saxon-help-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
> [mailto:saxon-help-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx]
> On Behalf Of
> ulrich thye
> Sent: 20 April 2005 14:23
> To: saxon-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
> Subject: [saxon] namespace, user-defined and extension function
>
>
> Hi,
>
> I am new to XLST 2.0, saxon and java
>
> (saxon8.4, java 1.4.2)
>
> I create a stylesheed with a lot of user-defined
> Function with a ns-prefix mpl, and also
> a java extension with ns-prefix maple:
>
>
> xmlns:mpl="http://www.thye.org/xsd/dummyNS"
> xmlns:maple="java:MapleEngine"
>
>
> <xsl:function name="mpl:maple">
> ...
> ...
> <xsl:when test="funtion-available('maple:execmpl') and
> function-available('maple:new')>
> <xsl:value-of select="maple:execmpl(maple:new(),$args)"/>
> </xsl:when>
> ...
> ...
> </xsl:function>
>
> <xsl:function name="mpl:getval">
> ...
> <xsl:value-of select="mpl:maple(...)"/>
> ..
> </xsl:function>
>
> If I run the stylesheeds via comand-line it works well.
>
> If I run the stylesheeds via java:
>
> transformer.transform(new StreamSource(sourceID),
> new StreamResult(new File(targetID)));
>
>
>
> I get the error:
>
> "The URI http://www.thye.org/xsd/2005/maplefunk01 does not
> identify an external Java class"
>
> any Hints ?
>
>
> Regards
>
> Ulrich
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: New Crystal Reports XI.
> Version 11 adds new functionality designed to reduce time involved in
> creating, integrating, and deploying reporting solutions.
> Free runtime info,
> new features, or free trial, at:
> http://www.businessobjects.com/devxi/728
> _______________________________________________
> saxon-help mailing list
> saxon-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/saxon-help
>
-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
|