On Mon, 2005-12-05 at 22:05 +0000, [EMAIL PROTECTED] wrote: > 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.
I think (somewhat klunky) way to do this is to use the translate function: //products /product[ contains( translate( name, 'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' ), 'SPOON' ) ] At least, this works with the Jaxen XPath engine [1]. Yours, Tom [1] http://jaxen.org/ _______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
