can i create a xalan java extension function where the function name has dashes (-) in it ?

C

Chris Bedford

Hello,

I'm using Xalan and I have a bunch of xslt documents that were
constructed to run with another processor that has alot of custom
extension functions. The names of these functions sometimes have
dashes in them:

e.g., a function might be called: do-something

ane might be used like this:

<xsl:value-of select="do-something(.)"/>

My problem is that as far as I can tell with the xalan extension
mechanism
one's java class functions must be identical to the name of the xslt
function you are providing the extension for... Thus I don't see how
could specify that the do-something xslt function is to be implemented
by a java class like this:

public class Something {
public String doSomething(String input) { return input +
"whatever"; }
}

Java naming conventions prevent me from doing this ->

public class Something {
public String do-something(String input) { return input +
"whatever"; }
}

I'm wondering if there is some kind of aliasing trick in the xalan
extensions mechanism to make this work.

Thanks !
- Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,049
Latest member
Allen00Reed

Latest Threads

Top