|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








