[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: Daniel Veillard <veillard@r...>
  • To: Elliotte Rusty Harold <elharo@m...>
  • Date: Mon, 29 Oct 2001 10:18:59 -0500

schema id
On Mon, Oct 29, 2001 at 09:00:33AM -0400, Elliotte Rusty Harold wrote:
> At 11:16 AM -0700 10/25/01, Tim Bray wrote:
> 
> 
> >Yes, and this is one of our really big outstanding serious
> >architectural problems.  It's really important for the 
> >workings of the web that an address such as 
> >
> >http://example.com/foo#Chapter12
> >
> >have well-defined semantics.  If foo turns out to be XML, 
> >this is hopelessly underdefined.  At various times James Clark
> >and I have both suggested that we just brutally hijack the 
> >attribute name "id" and assert that it is of DTD type ID.
> >
> >Other ideas have included using xml:id or having a reserved
> >namespace http://w3.org/xmlid or some such; any attribute 
> >associated with it is of type ID.
> >
> >This one isn't going to go away.  -Tim
> 
> 
> Is there any chance we could push XPointer back to working draft one more time to fix this there? It seems to me this doesn't require a change to XML 1.0, but does require one to XPointer. 

  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 !).
  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
    - the parser is not validating
    - you don't want to trust a remote DTD but just the XML instance
 for example.

 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.

 Seems that having people submit this as a NOTE would be a good first
step to get this considered seriously, if someone wants to start the
effort, I would be happy to help !

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard@r...  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/

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.