[jdom-interest] List's in JDOM - a small essay

bob mcwhirter bob at werken.com
Fri Mar 9 19:42:30 PST 2001


Yah, I can currently implement previous:: with no problem,
except for the fact it's a "reverse axis", and thus I don't
actually maintain the correct order.  (It currently results 
elements in document-order, as opposed to reverse-document-order,
as specified.)  I simply walk from [root] to the current
context.  Reversing them should be simple enough, so I'm
not clamoring for a doubly-linked-list.

	-bob


On Fri, 9 Mar 2001, Galluzzo, Eric wrote:

> > Using a singly linked list saves quite a lot of memory and 
> > actually from
> > prelim testing makes the add() operation twice as fast (due to fewer
> > pointer manipulations).  Personally, think a singly linked list is a
> > good idea because of these benefits and the fact I've never needed to
> > iterate a list backward.  If you've found need to iterate a list
> > backward, please follow up to this post and explain why.
> 
> In Bob's absence ( :) ), it would certainly be useful for implementing the
> "previous" axis in XPath, e.g.:
> 
> <xsl:apply-templates select="previous::*"/>
> 
>     - Eric
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
> 




More information about the jdom-interest mailing list