To be honest, I don't see Jaxen ever adding support for id()
when the underlying model doesn't support id().  It should be
trivial to support the id() function when the model already
provides a method for grabbing a node-by-ID. 

If the model/parser doesn't support it, then Jaxen has to:

        1) Read the DTD, figure out all of the ID attributes
        2) Walk the entire document, registering elements by ID

That's a lot of work for something that might not be used by 
your xpaths.  Maybe I'll add it later, but frobbing DTDs and
schema's just doesn't sound like fun to me, and getNodeById()
is something that could be fairly trivially implemented by
the XML parser/model-builder side of things, since it's
already reading DTDs and touching the entire document when
reading it.

        -bob



On Fri, 22 Feb 2002, [iso-8859-1] Christian Bjørnbak wrote:

> I haven't tried it, but according to Status page on jaxen.org its a known
> problem that it's implemented....
> 
> Christian
> 
> -----Original Message-----
> From: Christian Nentwich [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 22 February, 2002 12:05
> To: Christian Bjørnbak
> Cc: jaxen-interest
> Subject: Re: [Jaxen] ETA on id() function
> 
> 
> 
> > Now I have the following question:
> > Is there an ETA on the id() function in Jaxen?
> 
> There isn't one? I use id() all the time and it seems to work :) (Are
> your documents using DTDs?)
> 
> Christian
> 
> 
> 
> _______________________________________________
> Jaxen-interest mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jaxen-interest
> 


_______________________________________________
Jaxen-interest mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jaxen-interest

Reply via email to