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

A DESCENDANTS transformation includes descendants from the original shape in a pattern. Below is an example of using DESCENDANTS in a MORPH transformation. The DESCENDANTS are specified using '**'.

List books and their descendants:
MORPH book [ ** ]
To run the tutorial queries, use the demo code.

The descendants of each book are kept, without being explicitly mentioned.

Other children can be added to the descendeants retained from the original shape.

List authors and their descendants, include titles as a child :
MORPH author [ title ** ]
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