W3C home > Mailing lists > Public > www-xpath-comments@w3.org > January to March 2002

(no subject)

From: Elliotte Rusty Harold <elharo@metalab.unc.edu>
Date: Wed, 2 Jan 2002 12:39:08 -0500 (EST)
Message-Id: <p0433010db858f47826bc@[192.168.254.4]>
To: xsl-list@lists.mulberrytech.com, <www-xpath-comments@w3.org>
At 9:54 AM +0100 12/21/01, Miloslav Nic wrote:


>========================================
>1.
>The rules for comparing a node-set to a boolean have changed. In XPath
>1.0,
>an expression such as $nodeset=true() was evaluated by converting the
>node-set to a boolean and comparing the result: so this expression would
>return true
>if $nodeset was non-empty. In XPath 2.0, this expression is handled in
>the same way as other comparisons between a sequence and a singleton: it
>is true if
>$nodeset contains at least one node whose typed value is true.
>----------------------------------------
>

This bothers me. What if the node set contains multiple nodes, some 
of which are true, some of which are false, and some of which are 
indeterminate?
-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo@metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|          The XML Bible, 2nd Edition (Hungry Minds, 2001)           |
|              http://www.ibiblio.org/xml/books/bible2/              |
|   http://www.amazon.com/exec/obidos/ISBN=0764547607/cafeaulaitA/   |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java news:  http://www.cafeaulait.org/      |
|  Read Cafe con Leche for XML news: http://www.ibiblio.org/xml/     |
+----------------------------------+---------------------------------+
Received on Wednesday, 2 January 2002 13:16:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:05:54 GMT