Use the -TJ option to get diagnostics. The most common reasons are that the
class isn't on the classpath, the class isn't public, the method isn't
static, the method isn't public.
Michael Kay
http://www.saxonica.com/
-----Original Message-----
From: Eder de Oliveira [mailto:eder(_at_)stela(_dot_)ufsc(_dot_)br]
Sent: 08 March 2005 13:13
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] calling java function with saxon processor
My namespace:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:lattes="java:br.cnpq.stela.xml.importacao.LatXMLXSLTObjectCtrl"
exclude-result-prefixes="lattes">
Where br.cnpq.stela.xml.importacao is my package and
LatXMLXSLTObjectCtrl is
my class
Error:
Error on line 8 of
file:///C:/Lattes/Curriculo/LMPL/XSL/en_artigo_trabalho_rh.xsl:
Cannot find a matching 0-argument function named
{java:br.cnpq.stela.xml.importacao.LatXMLXSLTObjectCtrl}getNROIDCNPQ()
; SystemID:
file:///C:/Lattes/Curriculo/LMPL/XSL/en_artigo_trabalho_rh.xsl;
Line#: 8; Column#: -1
net.sf.saxon.trans.DynamicError: Cannot find a matching
0-argument function
named
{java:br.cnpq.stela.xml.importacao.LatXMLXSLTObjectCtrl}getNROIDCNPQ()
What I made of wrong ?
thanks
Eder
----- Original Message -----
From: "Michael Kay" <mike(_at_)saxonica(_dot_)com>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Tuesday, March 08, 2005 9:53 AM
Subject: RE: [xsl] calling java function with saxon processor
No, you shouldn't specify the filename where the class is
located. The
namespace should specify the fully qualified name of the
Java class (for
example Java:com.example.package.LatXMLXSLTObjectCtrl) and
then you should
ensure that this Java class can be loaded from the Java
classpath, by
setting your CLASSPATH variable appropriately.
Michael Kay
http://www.saxonica.com/
-----Original Message-----
From: Eder de Oliveira [mailto:eder(_at_)stela(_dot_)ufsc(_dot_)br]
Sent: 08 March 2005 12:27
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] calling java function with saxon processor
Hi.!
My java class this in the directory
C:/GrupoStela/Lattes2/Modulos/XML/ImportacaoXML/Trabalho/bin/b
r/cnpq/stela/xml/importacao/LatXMLXSLTObjectCtrl
As I can make this code:
<?xml version='1.0'?>
<xsl:stylesheet>
<xmlns:xsl=http://www.w3.org/1999/XSL/Transform
xmlns:java="C:/GrupoStela/Lattes2/Modulos/XML/ImportacaoXML/Tr
abalho/bin/br/cnpq/stela/xml/importacao/LatXMLXSLTObjectCtrl"
exclude-result-prefixes="java"
version='1.0'>
And I call thus:
<xsl:variable name="NRO_ID_CNPQ" select="java:getNROIDCNPQ()"/>
This correct one?
thanks a lot
Eder
----- Original Message -----
From: "Michael Kay" <mike(_at_)saxonica(_dot_)com>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Monday, March 07, 2005 11:04 AM
Subject: RE: [xsl] calling java function with saxon processor
Please see:
http://www.saxonica.com/documentation/extensibility/functions.html
Michael Kay
http://www.saxonica.com/
-----Original Message-----
From: Eder de Oliveira [mailto:eder(_at_)stela(_dot_)ufsc(_dot_)br]
Sent: 07 March 2005 13:04
To: XSL - list
Subject: [xsl] calling java function with saxon processor
Hi..!
How I can calling java function using SAXON 8.3 processor?
The exemple:
<?xml version='1.0'?>
<xsl:stylesheet>
<xmlns:xsl=http://www.w3.org/1999/XSL/Transform
xmlns:java="C://Java_Projects/Helloworld"
exclude-result-prefixes="java"
version='1.0'>
Where had
xmlns:java="C://Java_Projects/Helloworld"
Would can be
xmlns:java="http://xyz.com"
Thanks a lot
Eder
--~------------------------------------------------------------------
XSL-List info and archive:
http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive:
http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive:
http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--