RainCode - XMLBooster

Element: ELEMENTREF

The ELEMENTREF operator refers to an element defined in the meta-definition file. XMLBOOSTER does not require the elements to be defined before being referenced by this operator. In fact, it even supports direct or indirect recursion: the formula for an element can refer directly or indirectly (i.e. through the formulas attached to intermediate elements) to itself.

Attributes

Name Type Optional
TARGET STRING Yes Name of the field which will receive the value of the referenced element. If this attribute is not specified, the sub-element is parsed but the corresponding data structure, if any, is discarded can cannot be access from within the client application. The type of the attribute referred to by the TARGET attribute must be compatible
NAME STRING No Name of the referenced element, which must be defined within the same meta-definition file.
TAG STRING Yes Pro version only This attribute is used to override the default tag name as defined for the referred element. This allows for isomorphic structures to be enclosed in different tags depending on the context.
OPTIONAL BOOLEAN Yes Indicates whether the element reference is optional or not. Default is FALSE.
POLYMORPH BOOLEAN Yes Indicates whether the element reference refers to a base class, and all the derived classes must be considered, using the Schema's standard xsi:type predefined attribute.

Appears in

FORMULA; CONCAT; REPEAT; DISJUNCT; ENCLOSED

DTD declaration

<!ELEMENT ELEMENTREF EMPTY>

<!ATTLIST ELEMENTREF
TARGET CDATA #IMPLIED
NAME CDATA #REQUIRED
TAG CDATA #IMPLIED
OPTIONAL (YES|yes|Y|y|ON|On|on|TRUE|true|True|1|NO|no|N|n|OFF|Off|off|FALSE|false|False|0) #IMPLIED
POLYMORPH (YES|yes|Y|y|ON|On|on|TRUE|true|True|1|NO|no|N|n|OFF|Off|off|FALSE|false|False|0) #IMPLIED
>