Home Overview Virtual Hier. Tutorial Demo Download Publications Curtis Dyreson Home

The ASATTRIBUTE transformation

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.