|
Introduction
The using
prefix must be used when accessing individual items, that are from a list-valued attribute, from the attributes
or data-attributes
shelf.
This example outputs, one per line, the tokens of one of the currently opened element's parent's attributes. The parent's attribute that is selected is the one whose attribute name is the value of the stream variable "name-to-be-used".
In this example, the attribute selected from the parent is assigned the alias-name "named-attribute", and that alias is used to refer to the selected attribute within the action prefixed by using attributes
.
Inside this repeat over
action, "named-attribute" serves two purposes:
repeat over
action as a whole, it identifies the attribute over which to iterate
repeat over
action, it identifies the token of the attribute selected on each iteration
global stream name-to-be-used ... using attributes of parent ^ name-to-be-used as named-attribute repeat over attribute named-attribute output attribute named-attribute output "%n" again
---- |