TTXPath logo
 
The GROUP Transformation
Flexible Querying for XML
Home        
Tutorial    
Demo 
Download       
Publications       
 
Curtis Dyreson
  Home
  Publications
  Projects
  Software
  Demos
  Teaching
  Contact me

There may be duplicate authors in the data, but authors can be grouped to eliminate the duplicates. The transformation given below shows an example that consolidates titles under a single name using a GROUP function for the author's name.

List titles grouped by author name:
MORPH (GROUP name) [ title ]
To run the tutorial queries, use the demo code.

By default a static grouping is perfomed, in which elements are grouped by their immediate text value. But dynamic grouping is supported by giving a shape as the group pattern.

Dynamically group titles by price:
MORPH (GROUP title [ price ]) [ name ]
To run the tutorial queries, use the demo code.


                                                                                                                                                                                                                                     


Curtis E. Dyreson © 2013. All rights reserved.
  E-mail questions or comments to Curtis.Dyreson at usu.edu