[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Is Anyone Interested In XPath 2.0 Use Cases or Requiremen

  • To: "David Carlisle" <davidc@n...>
  • Subject: RE: Is Anyone Interested In XPath 2.0 Use Cases or Requirements?
  • From: "Dare Obasanjo" <dareo@m...>
  • Date: Sun, 7 Jul 2002 12:19:00 -0700
  • Cc: <xml-dev@l...>
  • Thread-index: AcIl4wiiTkZ+ew5SSb2g9dK4J29fDQABxg9i
  • Thread-topic: Is Anyone Interested In XPath 2.0 Use Cases or Requirements?

xpath use cases
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[1] and Root/Numbers[2] are equivalent node sets [value-wise] using your technique and the following source XML 
 
<Root>
 <Numbers>
  <Integer>4</Integer>
  <Integer>2</Integer>
  <Integer>3</Integer>
 </Numbers>
 <Numbers>
  <Integer>2</Integer>
  <Integer>3</Integer>
  <Integer>4</Integer>
 </Numbers>
</Root>
 
b.) Calling count() four times instead of having an explicit operator is bad form both performance wise and readability wise. 
 

	-----Original Message----- 
	From: David Carlisle [mailto:davidc@n...] 
	Sent: Sun 7/7/2002 11:20 AM 
	To: Dare Obasanjo 
	Cc: xml-dev@l... 
	Subject: Re:  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
	as sets.
	
	David
	
	_____________________________________________________________________
	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.
	


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.