Re. Extension Functions

Subject: Re. Extension Functions
From: Donald_Leslie@xxxxxxxxx
Date: Mon, 12 Jun 2000 16:29:43 -0400

Please take a look at That
document provides the basics for writing and using extension functions and
extension components. Several of the examples include extension functions,
and you can get these by downloading the latest Xalan distribution from
http://xml/apache/org/dist/xalan-j. The extension examples are in
samples/extensions. Hope this is helpful.  -- Don Leslie

                    Allen Haws                                                                                        
                    <joeshmoe@xxxxxxxxxx>        To:     XSL-List@xxxxxxxxxxxxxxxx                                    
                    Sent by:                     cc:     (bcc: Scott Boag/CAM/Lotus)                                  
                    owner-xsl-list@mulber        Subject:     Extension Functions                                     
                    06/12/2000 12:17 PM                                                                               
                    Please respond to                                                                                 


First of all, Thanks for all the good information that you all post on
the List. This is my first posting, but I seem to have hit a wall.  I'm
trying to
write my own extension function.  I'm using Xalan, but the documentation
extension functions is next to nil; everything I've found on the list
and books has to do
with XT or Saxon. Am I barking up the wrong tree?  Does Xalan support
functions?  If so is there any tricks to get them to work.

My machine is a webserver and I'm using my address/URL for the

ExtensionTest is the name of my class. (I've added my public_html
directory to my CLASSPATH)
The static method that I call is getID and it returns a String datatype
and I make the call as follows...

<xsl:template match="question"
    <xsl:param name="fakeID"/>
    <xsl:variable name="oldID" select="@id"/>
        <xsl:attribute name="ordering">
            <xsl:number level="any"/>

-->     <xsl:variable name="newID" select="db:getID($fakeID, $oldID)"/>
            <xsl:attribute name="id">
                <xsl:value-of select="$newID"/>

                <xsl:value-of select="question/text"/>


I hope I'm not in left field with this.
When I process my .xml and .xsl I get the error
        Call to extension function failed:

Is there any help for me??

Thanks in advance,

Allen Haws
Unicon, Inc.

 XSL-List info and archive:

 XSL-List info and archive:

Current Thread