[Home]  [List]  [News]  [Docs]  [FAQ]  [Downloads]  [Resources]  [About]
Search :
/Home /List

list4xt : Mailing list for the XT users community.

[list4xt] Extension functions question

Subject: [list4xt] Extension functions question

User: Website

From: 4xtnews internet (xtnews@hotmail.com)
Date: 24/04/2001 - 20:33


Hi,

I just started working with XML/XSL so please bear with me. And I would
appreciate all the help I can get:

Here is the situation:
In ABC.java file I have the following methods:

public ABC() {
code here....
}

public String changeFormat(String a, String b, String c) {
code here..........
}

From my xsl file I define a namespace as:
xmlns:d="http://www.jclark.com/xt/java/com.x.XSLTExtensions.ABC"
The code in my xsl file is as follows:
<xsl:template match='/'>
<xsl:value-of select="d:new()" />
<xsl:value-of select="d:changeFormat('aa', 'bb', 'cc')" />
</xsl:template>

The constructor gets called without any problem. However, when I add a call
to the method changeFormat, I get the error at the DOS prompt:
changeFormat: no method with 3 arguments.

What am I doing wrong?

Thanks for your help,
Anne.

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

--
Mailing list for the XT users community.     (http://mfbbank.com)
(mailto:list4xt-request@4xt.org?Subject=unsubscribe to unsubscribe)



Archive générée par hypermail 2b28 le 01/06/2001 - 09:01 CEST

webmaster@4xt.org