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

Re: Re: determining ID-ness in XML

  • From: Jonathan Borden <jborden@m...>
  • To: Elliotte Rusty Harold <elharo@m...>, xml-dev@l...
  • Date: Thu, 01 Nov 2001 09:21:23 -0500

xml reserved attributes
Having an xml:id attribute is a terrific idea which is the best solution to
an otherwise nasty problem.

Since "xml:id" is already reserved, there is no chance of conflicting with
currently available software. I don't see much reason to need to update DTDs
because if you already _have_ a DTD then you can define ID attributes. The
problem exists for well formed but DTD-less XML documents for which one
needs to use the raw XPointer #foo.

Jonathan


> >So, adding a new xmlid attribute has downsides either way:- you either
need
> >to update your DTDs or you need to update your xml processors.  This is
true
> >even for those people and applications that have no interest in being
able
> >to address ID-less elements.
> >
>
> Any time you add a new attribute, you have to update your DTDs. This is
true of xml:id, xml:base, xml:space, and xml:lang. Nothing in this
discussion changes that. Nothing is special about xml:id.
>
> However, we are not saying that every application has to use xml:id.
Certainly not every application uses xml:space or xml:lang today, much less
xml:base. If the XHTML folks don't want xml:id in their XHTML documents,
they don't have to use it. They don't change their DTDs. In fact, they
really don't need to change them because conformant XHTML documents already
have a DTD, and do have ID type attributes.
>
> Remember, the reason we're having this discussion is because not all XML
documents have DTDs. It is precisely those without DTDs where xml:id is
needed, and these applications can start using xml:id  immediately because
they don't have a DTD to change! or even if they do, they don't require
validity.
>
> --
>
> +-----------------------+------------------------+-------------------+
> | Elliotte Rusty Harold | elharo@m... | Writer/Programmer |
> +-----------------------+------------------------+-------------------+
> |          The XML Bible, 2nd Edition (Hungry Minds, 2001)           |
> |              http://www.ibiblio.org/xml/books/bible2/              |
> |   http://www.amazon.com/exec/obidos/ISBN=0764547607/cafeaulaitA/   |
> +----------------------------------+---------------------------------+
> |  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      |
> |  Read Cafe con Leche for XML News: http://www.ibiblio.org/xml/     |
> +----------------------------------+---------------------------------+
>
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
>
> The list archives are at http://lists.xml.org/archives/xml-dev/
>
> To subscribe or unsubscribe from this elist use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>


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.