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

A CLONE copies a type in a MUTATE, leaving the original in place.

Mutating:
MUTATE publisher [ (CLONE title) ]
To run the tutorial queries, use the demo code.

The mutation explicitly lists only two types, but it outputs the entire shape, with one mutation. It clones <title> elements to place them under <publisher> elements (the un-cloned <title> elements will remain in place).
                                                                                                                                                                                                                                     


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