Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] defauilt namespace issue (continued)

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: 'XOM API for Processing XML with Java' <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] defauilt namespace issue (continued)
  • Date: Sun, 09 Aug 2009 21:26:05 +0100


The XPath specification says that the result of the query //garbage, if
there are no <garbage> elements in your document, is an empty set, not an
error.

Which is reasonable: there might have been <garbage> elements, and you might
be trying to find out whether there are any or not.

(When you move to schema-aware XPath 2.0, it starts to make sense to check
the XPath expression against the schema and return an error or warning if no
valid document could match the XPath. That can be very useful for
debugging).

Regards,

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





Archive powered by MHonArc 2.6.24.

Top of Page