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

Re: Re: determining ID-ness in XML

  • From: Rob Lugt <roblugt@e...>
  • To: Richard Tobin <richard@c...>, xml-dev@l...
  • Date: Wed, 31 Oct 2001 12:54:10 +0000

xml implicit id
Richard Tobin wrote:
>
> It's certainly not valid *now*; but we could choose either to make it
> valid or not.  That is, we could either say that there is an implicit
> declaration for xml:id on every element [*], or say that for validity a
> declaration is required.
>
> Having an implicit declaration would not break any existing document,
> since xml:id is currently reserved.

But having an implicit declaration would create two classes of Validity.
Existing (non xmlid-conformant parsers) would declare the document invalid
whereas updated applications would declare it valid.  The idea of an
implicit declaration is also inconsistent with other recommendations such as
XML Namespaces, which explicitly does not change validation rules and
therefore requires "xmlns" to be declared.

Much to Tim Bray's dismay, I think that a variation of James Clark's idea
using PIs may be best:- Use an attribute name attribute, but make it a
pseudo-attribute inside a processing instruction.

e.g.  <?xml-typeinfo idnames="abc:id, ID, id"?>

Regards
~Rob



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.