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

RE: Ext Func in XPath

Subject: RE: Ext Func in XPath
From: Shruti Ahuja <shruti@xxxxxxxxxxxxxxxxx>
Date: Mon, 23 Jul 2001 14:54:16 +0530
shruti ahuja
i am using Xalan-J 2.0

-----Original Message-----
From: Michael Kay [mailto:mhkay@xxxxxxxxxxxx]
Sent: Monday, July 23, 2001 2:40 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  Ext Func in XPath


You need to tell us which product you're using. The rules for binding
extension functions to Java methods are not defined in the XSLT 1.0
specification, they depend on the vendor. Many vendors implement something
close to the bindings described in the XSLT 1.1 working draft, but probably
none of them conform exactly: and looking at your example, I'm not sure even
the XSLT 1.1 spec discriminates between these two cases.

Mike Kay
Software AG

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of
> Shruti Ahuja
> Sent: 23 July 2001 07:41
> To: Xsl-List@xxxxxxxxxxxxxxxxxxxxxx (E-mail)
> Subject:  Ext Func in XPath
>
>
>
> Hello
>
> i have made an extension function in Xpath by the name
> contains_words .This
> function has 2 overloaded versions
> public static boolean contains_words(String searchstr,String tosearch)
> {
> //code
> }
> and
> public static boolean contains_words(ExpressionContext
> mycontext, String
> searchstr,String tosearch)
> {
> //code
> }
>
>
> i am calling this function in my xpath expression as
> txt:conatins_words("this is a book","book")
> where txt is a namespace which maps to this extension class.
> The problem is that this call always results in the second
> contains_words
> being invoked .i want the first one to be invoked.
> can someone suggest the reason for it to behave this way.
>
>
> thanx
> Shruti
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


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

 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.