Comparing XML Path Expressions - Inria - Institut national de recherche en sciences et technologies du numérique Access content directly
Conference Papers Year : 2006

Comparing XML Path Expressions

Pierre Genevès
Nabil Layaïda


XPath is the standard declarative language for navigating XML data and returning a set of matching nodes. In the context of XSLT/XQuery analysis, query optimization, and XML type checking, XPath decision problems arise naturally. They notably include XPath comparisons such as equivalence (whether two queries always return the same result), and containment (whether for any tree the result of a particular query is included in the result of a second one). XPath decision problems have attracted a lot of research attention, especially for studying the computational complexity of various XPath fragments. However, what is missing at present is the constructive use of an expressive logic which would allow capturing these decision problems, while providing practically effective decision procedures. In this paper, we propose a logic-based framework for the static analysis of XPath. Specifically, we propose the alternation free modal \mu-calculus with converse as the appropriate logic for effectively solving XPath decision problems. We present a translation of a large XPath fragment into \mu-calculus, together with practical experiments on the containment using a state-of-the-art EXPTIME decision procedure for \mu-calculus satisfiability. These preliminary experiments shed light, for the first time, on the cost of checking the containment in practice. We believe they reveal encouraging results for further static analysis of XML transformations.
Fichier principal
Vignette du fichier
CompXPathExp.pdf (164.62 Ko) Télécharger le fichier
Origin : Files produced by the author(s)

Dates and versions

inria-00423062 , version 1 (09-10-2009)



Pierre Genevès, Nabil Layaïda. Comparing XML Path Expressions. Proceedings of the 2006 ACM Symposium on Document Engineering, DocEng 2006, Oct 2006, Amsterdam, Netherlands. pp.65-74, ⟨10.1145/1166160.1166182⟩. ⟨inria-00423062⟩
82 View
160 Download



Gmail Facebook Twitter LinkedIn More