Skip to Content.
Sympa Menu

xom-interest - RE: [XOM-interest] New XPath issue: what to do with non-nodes?

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Michael Kay" <mike AT saxonica.com>
  • To: "'Wolfgang Hoschek'" <whoschek AT lbl.gov>, "'Elliotte Harold'" <elharo AT metalab.unc.edu>
  • Cc: 'John Cowan' <cowan AT ccil.org>, 'xom-interest' <xom-interest AT lists.ibiblio.org>
  • Subject: RE: [XOM-interest] New XPath issue: what to do with non-nodes?
  • Date: Thu, 13 Jan 2005 23:41:50 -0000

> Just for illustration: Nux has an interface "ResultSequence". Its
> intent corresponds to such an XPathResult class.
> Currently it only has methods "Nodes toNodes()" (corresponding to
> nodeListValue()), and "Node next()" to get the next node of the
> sequence.

I think it's a really bad idea to combine a collection and an iterator over
that collection in a single object. It means that when you have a method
that takes two collections as arguments and compares them, the method fails
abysmally when you compare a collection to itself.

(Sadly, the people developing the XQJ API seem to be making this mistake).

Michael Kay
http://www.saxonica.com/





Archive powered by MHonArc 2.6.24.

Top of Page