logo       

RE: namespace, user-defined and extension function: msg#00138

Subject: RE: namespace, user-defined and extension function
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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe