OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   XPath: what's the answre to True >= False

[ Lists Home | Date Index | Thread Index ]
  • To: xml-dev <xml-dev@lists.xml.org>
  • Subject: XPath: what's the answre to True >= False
  • From: Berend de Boer <berend@xsol.com>
  • Date: Fri, 06 Dec 2002 13:33:16 +1300
  • User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2) Gecko/20021126

Hello All,

When trying to create another XPath implementation I stumbled upon the 
somewhat complex conversion in paragraph 3.5: Booleans. To compare a 
boolean and a node-set, both are converted to Booleans. For all 
operators, including >= and <=. Can anyone tell me what:

    True >= False
    False >= True

and

    False <= True
    True <= False

is?

IMO, paragraph 3.5 could have been simpler if all comparisons with >= 
and <= first would have been converted to number. Would make the 
paragraph shorter as well.

-- 

Thank you very much for any anwsers,

Berend. (-:






 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS