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

XMorph keeps elements as elements and attributes as attributes, though if an attribute is transformed to have children, it is converted to an element. Elements can be forced to become attributes using an ASATTRIBUTE transformation.

Make titles attributes of names:
MORPH name [ (ASATTRIBUTE title) ]
To run the tutorial queries, use the demo code.

Since only one attribute with a given name is allowed, the other children become elements (cannot be forced to be attributes).

Group by name, force titles as attributes:
MORPH (GROUP name) [ (ASATTRIBUTE 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