Sorry Grant,

It looks like that register function method has been removed. Thus the reason, I
guess, that it's not on the site anymore.   

Also, the Xpath function that you mentioned "upper-case" doesn't seem to be
implemented in the XFactorstudio version, or at least I didn't see it as part of
the XPathFunctions class.  It looks like you might be able to alter that class
and add it though.  It might be worth trying.

-Chris

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Allen, Christopher S.
Sent: Monday, December 05, 2005 5:28 PM
To: Open Source Flash Mailing List
Subject: Re: [osflash] xfactor studio xpath ignore case function ?

Hey Grant,

I know that there was a way to create custom functions to extend the native
Xpath functions.

This was taken from an older version of his site at:
http://www.xfactorstudio.com/Actionscript/AS2/XPathNew/
 
" Custom Functions
You can extend the native XPath functions using the registerFunction static
method of the XPathFunctions Object. Look in the source code of
XPathFunctions.as to see how this is done."

I hope that helps somewhat.

-Chris

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of [EMAIL PROTECTED]
Sent: Monday, December 05, 2005 5:06 PM
To: [email protected]
Subject: [osflash] xfactor studio xpath ignore case function ?


I'm using the following xpath query to find all products who's name contains the
word "spoon"

XPath.selectNodes(myXML,"//products/product[contains(name,'Spoon')")

is there a way to also ignore the case, or convert the document to upper case
before searching ?

I see that xpath is supposed to have a string function upper-case but I can't
figure out how to incorporate it into my contains call.

Grant

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to