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

Re: Re: determining ID-ness in XML

  • From: Rick Jelliffe <ricko@a...>
  • To: xml-dev@l...
  • Date: Mon, 05 Nov 2001 22:10:47 +1100

ups xml key
From: "Henry S. Thompson" <ht@c...>

> It's precisely because IDness is orthogonal to type-validity that
> xml:id is the _wrong_ solution -- it doesn't allow me to combine
> IDness with e.g. being an NMToken or CDATA or in integer or . . .

Well then what about

     xml:id
     xml:key

where id is an ID and key can be any string?  
 
Then we can use our schema language to further constrain the datatype of 
the xml:key (or xml:id) for each element as required.  Or we can
constrain the datatype of the key according to the element which refers
to it (we can do that, can't we?)

No-one has ever demonstrated (that I have seen) that ID is not
a really useful mechanism for many kinds of XML documents.
In many cases it is trivial to munge a text key into a useful ID,
and this separation of data values from IDs prevents potential
problems with duplicate keys which could not occur in tables
but could occur with trees (if the keys are also data values).

Cheers
Rick Jelliffe




 


Back To School Sale!

Save 30% off all Stylus Studio 2008 Products when you purchase from our Online Shop.

Offer ends August 31, 2008.

Coupon Code
TRTY-C4JV-OFF

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-2007 All Rights Reserved.