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: John Cowan <cowan AT ccil.org>
  • To: Elliotte Harold <elharo AT metalab.unc.edu>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] New XPath issue: what to do with non-nodes?
  • Date: Thu, 13 Jan 2005 11:12:55 -0500

Elliotte Harold scripsit:

> count(//*) | //*

Thus spake XPath section 3.4:

# An _or_ expression is evaluated by evaluating each operand and
# converting its value to a boolean as if by a call to the _boolean_
# function. The result is true if either value is true and false
# otherwise. The right operand is not evaluated if the left operand
# evaluates to true.

So the value of this should be Boolean.TRUE.

--
John Cowan www.ccil.org/~cowan www.reutershealth.com cowan AT ccil.org
In might the Feanorians / that swore the unforgotten oath
brought war into Arvernien / with burning and with broken troth.
and Elwing from her fastness dim / then cast her in the waters wide,
but like a mew was swiftly borne, / uplifted o'er the roaring tide.
--the Earendillinwe




Archive powered by MHonArc 2.6.24.

Top of Page