[xquery-talk] How to invert the hierarchy of an xml?

Michael Kay mike at saxonica.com
Thu Nov 3 15:39:15 PST 2011


On 03/11/2011 03:38, Joe Wicentowski wrote:
> let $reordered := <Library>{ 
> for $article in $library/Article 
> group $article as $journal-articles by $article/Journal as $journal 
It's rather regrettable that

(a) XQuery 1.0 provides no grouping capability

(b) The above syntax does not match the "group by" clause specified in 
any XQuery 3.0 working draft

(c) The XQuery spec is very tolerant of processors providing their own 
extensions to the syntax in the W3C recommendation

(d) Many processors have taken advantage of this tolerance, and have 
implemented syntactic extensions which will turn out to be incompatible 
with future versions of the standard.

Michael Kay
Saxonica


More information about the talk mailing list