XML Script logo
Command _attributes
Attribute

location, a pointer(s) - creative mode

[optional] the location to store the new ATTR element.

Attribute

element, a pointer(s)

[required] the element(s) from which to copy the attributes.

Description

This creates an ATTR element at the point in the tree specified by 'location'. If 'location' is not set, then the element is created at the current point in the template tree. For each element specified in the 'element' attribute, a subelement of ATTR is created with the name of the supplied element. This new element will contain an <attribute /> subelement for each attribute of 'element'. Each <attribute /> will have .name and .value attributes.

Examples of use

                                
                        

XML Script homepage | Documentation home | XML Script docs | Command list | Function list | X-Tract docs

X-Stream, X-Tract and XML Script are trade marks of DecisionSoft Limited
© Copyright 1998-2000 DecisionSoft Limited