Re: xpath and relational expressions ?

Martin Honnen <[email protected]> Mon, 05 Feb 2007 19:45:23 +0100
Newsgroups gmane.comp.mozilla.devel.xml
Organization Liberty Development
Message-ID <[email protected]>
rvj wrote:
> can anyone explain why Mozilla xpath does not appear to handle less and/or
> greater than relations?
> 
>       xpath="//jobs[F"+dates+">'"+newkey+" '] ";

XPath 1.0 supports < and > (and <= and >=) only for the number type, the 
operands are converted to numbers.


> PS this works fine with IE

Not if you use XPath (e.g. xmlDocument.setProperty('SelectionLanguage', 
'XPath')).


-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/