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

RE: Re: determining ID-ness in XML

  • From: Leigh Dodds <ldodds@i...>
  • To: Jeff Rafter <jeffrafter@d...>, xml-dev@l...
  • Date: Mon, 05 Nov 2001 13:17:47 +0000

xml id type


> -----Original Message-----
> From: Jeff Rafter [mailto:jeffrafter@d...]
> Sent: 05 November 2001 01:09
> To: xml-dev@l...
> Subject: Re:  Re: determining ID-ness in XML
>
[...]
> In general, if we accept the argument that IDs *are* orthogonal to both
> Validation and Well-Formedness then removing them to an xml:id attribute
> would be the best solution. I am struggling to juxtapose this notion with
> the use of the xml:idatts approach. It seems that declaring which
> attributes are ID attributes brings us back to step one...

Can you elaborate? Why does xml:idatts take us back to step one?

xml:id = this element has an identifier, this is what it is.
xml:idatts = this element (and its children) has an identifier. It's in an
attribute called X.

Don't both of these solve the problem?

The second has an extra level of indirection which gives the flexibility to
potentially have >1 identifying attribute (as you note), and allows that
attribute
to have different types.

This flexibility seems to be a Good Thing, but raises another issue:
whether the identifier is an ID [1].

- we can't have >1 ID per element type in a DTD
- we can't have integers as IDs in a DTD (not a Name)

Of course we can say that the attributes identified by xml:idatts must
be of type ID, and accept the restrictions. We could also say that the
identifier contained in an xml:id attribute does/doesn't have to be
an ID. Where exactly does 80/20 lie here?

It strikes me that we've circled the problem, laid out some good
options and identified some of the issues [2]. But we've not started
to weigh up the different options in light of these.

I'm sure there's all sorts of things still to yet to creep out of the
woodwork:
For example, what about cross-referencing? xml:idref? xml:idrefatts? If
we're
recreating identifiers separate from DTDs, then surely cross-referencing
is also an issue...?

L.

[1]. http://weblogs.userland.com/eclectic/xml-identifiers.html#ID-Type
[2]. http://weblogs.userland.com/eclectic/xml-identifiers.html#issues


--
Leigh Dodds, Research Group, Ingenta | "Pluralitas non est ponenda
http://weblogs.userland.com/eclectic |    sine necessitate"
http://www.xml.com/pub/xmldeviant    |     -- William of Ockham


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.