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

RE: Uniqueness operator for XPath?

  • From: Adam Van Den Hoven <Adam.Hoven@b...>
  • To: "'xml-dev@l...'" <xml-dev@l...>
  • Date: Thu, 08 Feb 2001 12:47:17 -0800

xpath unique
Clark, 

> Thoughts?  I suppose you may think that this should be
> in the realm of schema, but I'm not so sure.  It is
> rather fundamental.

First of all, what you are talking about is not a uniqueness operator. If
you want your ! (bad choice since ! is typically NOT but something could be
used) to be a uniqueness operator then your path

/html/!head/!title

would mean "Give me the unique title of the unique header of the html
document element". It suggests that if head or title are not unique then
return nothing. 

Also unique with respect to what? Unique among its siblings, or over the
whole document. What is unique? The element name, the element and all its
contents, or the element and its attributes.

Also the way in which /html/head[1]/title[1] is retrieved may in fact be
optimized so that the whole nodelist is not retrieved. 

Adam

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.