W3C home > Mailing lists > Public > public-qt-comments@w3.org > January 2013

[Bug 20639] XPath provides insufficient "glue" (modularity)

From: <bugzilla@jessica.w3.org>
Date: Fri, 11 Jan 2013 17:37:58 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-20639-523-EDV32YfLvS@http.www.w3.org/Bugs/Public/>

dnovatchev@gmail.com changed:

           What    |Removed                     |Added
                 CC|                            |dnovatchev@gmail.com

--- Comment #5 from dnovatchev@gmail.com ---
I agree with Roger. 

As it may sound surprising, XPath 3.0 is a complete programming language. It

 1. Conditional constructs -- since XPath 2.0.

 2. Iterative constructs -- since XPath 2.0.

 3. Variable definition (since XPath 2.0) and the ability to define variables
whose values are sequences -- in XPath 3.0.

 4. Function items (anonymous function) definition.

 5. Indirect recursion [1].

 6. Ability to parse input(XML documents via doc() and text files via

 7. Ability to create new nodes -- parse-xml().

 8. Closures -- see Roger Costello's work.

Roger Costello has been working systematically to define in pure XPath data
structures (such as re-writing my implementation of a Binary Search Tree) and
complete applications using these. 

It is sad that such powerful programming language still lacks a feature to
import reusable sets of function definitions that are written in this language.

Roger's use case is compelling and it comes at the right time to be considered
for XPath 3.1.

I fully support this use-case and recommend to the w3c-xsl-xquery working group
to include XPath modularity support in XPath 3.1.

Dimitre Novatchev

[1] Recursion with anonymous (inline) functions in XPath 3.0, at:

You are receiving this mail because:
You are the QA Contact for the bug.
Received on Friday, 11 January 2013 17:38:01 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:41 UTC