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

Re: Re: determining ID-ness in XML

  • From: Daniel Veillard <veillard@r...>
  • To: Joe English <jenglish@f...>
  • Date: Tue, 30 Oct 2001 03:23:57 -0500

Re:  Re: determining ID-ness in XML
On Mon, Oct 29, 2001 at 06:29:24PM -0800, Joe English wrote:
> The only other workable alternative I can think of is to
> modify the XPointer spec -- which AFAICS is the principal
> bit of technology that really needs to identify IDs without
> prior knowledge of the vocabulary -- so that
> 
>     http://somewhere/something#foo
> 
> is interpreted as
> 
>     document("http://somewhere/something")
> 	/ descendants-or-self::*[attval::*[local-name() = 'id'] = 'foo'][1]
> 
> An inelegant solution to be sure.  (Though this is basically
> what I always do anyway when I need to identify IDs, since
> in practice it's more reliable than anything else.)

  This was looked at. And existing DTDs with id attributes not of type
ID seems to exist. This totally break them, and make pointing unreliable
because a lot of tools expects #foo to point to the ID of name foo, and
you could actually end up pointing to a different part of the document
against the author(s) intent. Compatibility with the XPath id() function
was considered really important too.

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
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.