Extension Functions

Subject: Extension Functions
From: Allen Haws <joeshmoe@xxxxxxxxxx>
Date: Mon, 12 Jun 2000 09:17:35 -0700

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:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread