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

https://www.w3.org/Bugs/Public/show_bug.cgi?id=20639

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
has:

 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
unparsed-text()).

 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:
http://dnovatchev.wordpress.com/2012/10/15/recursion-with-anonymous-inline-functions-in-xpath-3-0-2/

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Friday, 11 January 2013 17:38:01 UTC