W3C home > Mailing lists > Public > www-ql@w3.org > April to June 2003

Use of Disjunction in XPath

From: Filippo Furfaro <furfaro@si.deis.unical.it>
Date: Mon, 9 Jun 2003 12:49:38 +0200
To: <www-ql@w3.org>
Message-ID: <DJEOJCCPCEKELNCKBJPNMEJBCBAA.furfaro@si.deis.unical.it>

Dear all,

I have a question about the use of disjunction in XPath:

Is it possible to write path expressions like the following one?

a / ( a|  b) / (c | d/g)

After looking at the grammar of XPath, it seems to me that
this is not possible, as a disjunctive normal form is required.
Obviously, if this is true, the above expression MUST be written
in the form:

(a/a/c) | (a/a/d/g) | (a/b/c) | (a/b/d/g)

Best wishes

Filippo Furfaro
Received on Monday, 9 June 2003 06:45:42 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:43:42 UTC