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: "'John Cowan'" <jcowan AT reutershealth.com>, "'Elliotte Harold'" <elharo AT metalab.unc.edu>
  • Cc: xom-interest AT lists.ibiblio.org, Nils_Kilden-Pedersen AT Countrywide.Com
  • Subject: RE: [XOM-interest] New XPath issue: what to do with non-nodes?
  • Date: Thu, 13 Jan 2005 09:05:17 -0000

>
> Elliotte Harold scripsit:
>
> > What XPath 1.0 expressions might you use
> > in a Java program that do not return node-sets?
>
> I can't think of any.

I think you're assuming a scenario where users like to code in Java and only
use XPath as a last resort. There's another scenario where users hate coding
in Java (all those fiddly iterators) and like to use XPath as much as
possible. There's also a scenario where the Java application with embedded
XPath is machine-generated.

sum(*[@code=23]/@value)
lang('de')
count(../following-sibling::foo) = 0

Michael Kay
http://www.saxonica.com





Archive powered by MHonArc 2.6.24.

Top of Page