[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Extension Functions

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

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
for
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
extension
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
namespace...
        xmlns:db="http://mymachine.unicon.net/~ahaws/ExtensionTest"

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"
xmlns:db="http://mymachine.unicon.net/~ahaws/ExtensionTest">
    <xsl:param name="fakeID"/>
    <xsl:variable name="oldID" select="@id"/>
    <some-item>
        <xsl:attribute name="ordering">
            <xsl:number level="any"/>
        </xsl:attribute>

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

            <comment>N/A</comment>
            <question>
                <xsl:value-of select="question/text"/>
            </question>
        </si>

    </some-item>
</xsl:template>


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:
http://mymachine.unicon.net/~ahaws/ExtensionTest


Is there any help for me??

Thanks in advance,

Allen Haws
Unicon, Inc.
joeshmoe@xxxxxxxxxx


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.