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

Re: So maybe ID isn't a problem after all.


Re:  So maybe ID isn't a problem after all.
On Sunday 11 November 2001 03:36 pm, Daniel Veillard wrote:
> > Why special case it though? The main thing ID's buy you is a guarantee
> > that a validating parser is going to ensure the values are unique. How
> > about ignoring all the DTD and XML special treatment and simply say that
> >
> >    foo.xml?@id='bar'
> >
> > will point to all id attributes with the value 'bar', or something
> > suchlike, *in the context of your application*?
>
>   Because of the IETF framework. The fragment identfier is the way web
> aware application are supposed to found the expression of the sub resource
> pointed to. From my point of view the Web framework is not something I
> would go against. Also since 97 everybody expected to have foo#bar - when
> the resource foo is delivered as an XML resource - to point to the element
> carrying the ID "bar". Again breaking this expectation would be pretty
> major.

OK. How about changing it to

   foo.xml#id='bar' 

or

  foo.xml#myid='bar'

I know this is somewhat heretical, but in XLink, the only thing I've heard 
for doing anything with id is for 'simplicity' and for grandfathering HTML 
mechanisms. I don't buy either.

> It's a special rule versus breaking the Web framework or/and an expected
> processing people have taken for granted for years now.

IMHO, this is bogus rationale. The 'breaking web framework' is using fragment 
identifiers.... which is still pretty much open territory, though XPointer 
has the nod there. I think XPointer is overkill for this too... 

As for the expected processing... I contend that overall the numbers of 
people using ID's vs. those using anchors for linking is small.

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.