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

XPath unique ids

Subject: XPath unique ids
From: "Dave Gomboc" <dave@xxxxxxxxxxxxxx>
Date: Thu, 12 Apr 2001 10:51:26 -0600
xpath unique
> http://www.w3.org/TR/xpath#unique-id
>
> Bizarrely XPath does not state that the system should always take the
> first, it states that if there are two, then the second should not be
> taken, which seems to leave it formally undefined what to do if three
or
> more elements are specified with the same id. (Although it's clear
that
> the intention is that the first be used)
>
> David

If an XML processor reports that three elements in a document have the
same unique ID, then it has also reported that two elements in a
document have the same unique ID.  Examining all pairs of such elements
(yes, this is not strictly necessary and would be inefficient ;-) shows
that the only element that must not be treated as not having a unique ID
is the first one.  Ergo, the first one must be treated as having a
unique ID.  (Yeah, I know, it's hokey. <grin>)

Dave



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

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
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.