Skip to Content.
Sympa Menu

xom-interest - RE: [XOM-interest] Alpha 2

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>, "'xom-interest'" <xom-interest AT lists.ibiblio.org>
  • Cc:
  • Subject: RE: [XOM-interest] Alpha 2
  • Date: Wed, 2 Mar 2005 19:08:13 -0000

> 3. I've added a new XPathTypeException subclass of
> XPathException. This
> is thrown when an XPath expression returns something other than a
> node-set. It provides a getReturnValue method that returns the raw
> object created by the XPath engine.

That's a weird design. To count how many empty paragraphs there are, I
evaluate the expression count(//para[not(node())]), catch the exception, and
extract the number?

Can you explain the thinking?

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






Archive powered by MHonArc 2.6.24.

Top of Page