Skip to Content.
Sympa Menu

xom-interest - RE: [XOM-interest] RE: XPath support in XOM

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: "'Elliotte Harold'" <elharo AT metalab.unc.edu>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: RE: [XOM-interest] RE: XPath support in XOM
  • Date: Mon, 10 Jan 2005 20:30:25 -0000

> For instance, would you want an
> expression like count(div//node()) to return different values
> depending
> solely on how many Text objects made up the exact same
> content?

If the user controls how many text node objects there are, and if XOM gives
different results depending how many there are, then I'm happy for XPath to
do likewise. I think this is better than ./text()[contains(., "o")]
returning 4 text nodes of which only one contains an "o".

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





Archive powered by MHonArc 2.6.24.

Top of Page