[Home] [By Thread] [By Date] [Recent Entries]

  • To: xml-dev <xml-dev@l...>
  • Subject: XPath: what's the answre to True >= False
  • From: Berend de Boer <berend@x...>
  • 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. (-:



Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member