Lists Home |
Date Index |
- To: "David Carlisle" <firstname.lastname@example.org>
- Subject: RE: [xml-dev] Is Anyone Interested In XPath 2.0 Use Cases or Requirements?
- From: "Dare Obasanjo" <email@example.com>
- Date: Sun, 7 Jul 2002 12:19:00 -0700
- Cc: <firstname.lastname@example.org>
- Thread-index: AcIl4wiiTkZ+ew5SSb2g9dK4J29fDQABxg9i
- Thread-topic: [xml-dev] Is Anyone Interested In XPath 2.0 Use Cases or Requirements?
a.) As Uche pointed out, the question also involves whether node identity or the text values of nodes are used. Your technique works for identity based equivalence tests but not value based tests. For instance, neither Xalan, MSXML nor System.Xml.Xsl.XslTransform can tell that /Root/Numbers and Root/Numbers are equivalent node sets [value-wise] using your technique and the following source XML
b.) Calling count() four times instead of having an explicit operator is bad form both performance wise and readability wise.
From: David Carlisle [mailto:email@example.com]
Sent: Sun 7/7/2002 11:20 AM
To: Dare Obasanjo
Subject: Re: [xml-dev] Is Anyone Interested In XPath 2.0 Use Cases or Requirements?
> For instance I can't say a node-set containing (A, B, C) is equivalent
> to a nodeset containing (B, C, A)
if $a and $b are each bound to a node set then
if count($a)=count($a|$b) and count($a)=count($b) then they are equal
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.