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

Re: XPointer crisis


xpointer parser

Christian Nentwich wrote:
> > > > 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
>
> But the point of this argument was that xml:id was not necessary..

Ah.  I've been arguing that barenames in XPointer aren't necessary;
xml:id would be useful and might be necessary for some *other* reason,
I just don't think it should be required as a prerequisite for
XPointer support.

> how can the parser know which attributes are ID-bearing without a DTD,
> XSD, or xml:id attribute?

It shouldn't have to know which attributes are ID-bearing.
If it does happen to know -- by way of xml:id, a DTD, XSD, or
whatever -- then it *may* use that knowledge to optimize
'//*[@attname=attval]' -- but such knowledge isn't necessary.

On the other hand, it *must* know which attributes are ID-bearing
to process 'id(foo)' at all.  So I believe that XPointer
*should not* include any constructs which are equivalent
to the XPath 'id()' function.


> Or was your intention to suggest that the application should build the
> hashtable? In that case, I would be disappointed if the parser didn't do
> it for me, because it's a very common operation and I'm lazy.

No, I think that index-building should be handled at the
parser/toolkit layer, not the application layer.  But it
should also be possible to implement XPointer on top of a
toolkit that *doesn't* have this capability.  That's all.


--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.