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

Re: IDs without DTD/Schema , Is there a way ?

  • From: Elliotte Rusty Harold <elharo@m...>
  • To: veillard@r...
  • Date: Mon, 29 Oct 2001 11:37:05 -0400

schema type id
At 10:18 AM -0500 10/29/01, Daniel Veillard wrote:


>  Well if foo have an ID attribute on an element of value "Chapter12"
>then of course foo#Chapter12 will have the expected semandtic with the existing
>version of XPointer (and I think all the previous ones too !).

Yes, but the problem is that foo can't have an ID attribute if the document does not have a DTD.

>  The problem at stake if I understand correctly is to actually 
>always be able to find the fact that this attribute is an ID, even
>if case of:
>    - absence of DTD

No, if the document does not have a DTD, then no attribute can have type ID; i.e. there are no ID type attributes without a DTD.

>    - the parser is not validating

Yes.

>    - you don't want to trust a remote DTD but just the XML instance
> for example.
>

If you don't trust the DTD, then you've got bigger problems; but yes, the proposal would address this problem as well. 

> I have myself advocated getting xml:id been integrated in the XML spec
>because that's the only clean way to get reliable linking even in the absence
>of Dtd or Schemas validation without trying to use structure/XPath based
>naming schemes.
>

I don't think we need to change XML 1.0 to make this happen. Tim Bray's xml:id or ID namespace would allow us to define a second space of unique element identifiers encoded in attributes that are separate from the normal ID type attributes of the document. These attributes might even have type CDATA in documents without DTDs, just like all other attributes in such documents. Nonetheless, they could have all the characteristics we need for reliable, name-based linking. 
-- 

+-----------------------+------------------------+-------------------+
| 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/     |
+----------------------------------+---------------------------------+

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.