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

Re: XPointer crisis


joe english christian

Christian Nentwich  wrote:

> [Joe English wrote]:
> > '//*[@id=foo]' (or some other syntax with equivalent semantics)
> > can accomplish everything that 'id(foo)' can.  More, actually:
> > it also works with documents that don't have (or have but don't
> > reference) a DTD, W3C XML Schema, or other infoset-augmenting
> > resource.  As an added bonus, the recipient doesn't have to
> > retrieve (and process!) the DTD/XSD/what-have-you.
>
> As a negative, the ID values won't be in a hashtable after parsing,

Why wouldn't they be?  An XML parser could still build an
index from known ID-bearing attributes, and use the index
when possible.  There's no reason why an application
*can't* take advantage of infoset-augmenting resources; I
just don't think XPointer should make it necessary.

> > Re: the 'xml:id' and 'xml:idattr' proposals: these sound reasonable,
> > but it seems to me like an awful lot of work to specify, implement,
> > and deploy just for the sake of barename fragment identifiers.
>
> Apart from that they are definitely *not* just for the sake of XPointer
> or barename fragment identifiers. The absence of an xml:id attribute is
> my daily nuisance when I can't get a DTD for some of my data.

Same here.  That's why ID/IDREFs have joined <!DOCTYPE ...>
and <!ENTITY ...> declarations in the list of XML features
that I rarely use anymore.  I've found <xsl:key name="id"
match="*" use="@id"/> and "key('id',...)" (or the equivalent)
to be much more reliable in practice than "id(...)".


--Joe English

  jenglish@f...

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.