Hi John,

All I can think of with the information you've given is to check that your
class is on the classpath.

Could you send your stylesheet and Java class, and also show how you
invoked the transformation and what the full error message was?

Kevin Cormier
Software Developer, XSLT Development
IBM Toronto Lab, D1-435
E-mail:  [EMAIL PROTECTED]


                                                                           
             "Wade, John F.                                                
             (MSFC-NAS902099)[                                             
             TBE]"                                                      To 
             <[EMAIL PROTECTED]         <xalan-j-users@xml.apache.org>      
             .gov>                                                      cc 
                                                                           
             04/27/2007 02:52                                      Subject 
             PM                        Xalan extension functions           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




As long as we're on the topic of XALAN extension functions, I too am
looking for some help.  I've got an existing XALAN-J based system (I didn't
create it) that I'm trying to add on to.  I want to create a simple
extension function in JAVA.  The XALAN-J documentation says stuff written
in JAVA doesn't require BSF.

So - I went to work on one of the XSLs: added a simple namespace and
defined a component as in the example at
http://xml.apache.org/xalan-j/extensions.html#ex-java  I wrote and compiled
an extension function; currently just of the "Hello, world" sort.  So far,
so good.

Problem arises when I try and use the extension function in something like
<xsl:value-of select="mytest:hello()"/>  XALAN throws a "can't find the
class" exception no matter where I put the .class file.

Those folks out there with some experience implementing JAVA extensions -
I'd be grateful for some help figuring this out.  I'm sure it's something
very simple, but I don't know where to look next.

*********************************
John F. Wade, PE
MSFC iPV Integration Lead



Reply via email to