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 bythis operator. In fact, it even supports direct or indirect recursion: the formula for anelement can refer directly or indirectly (i.e. through the formulas attached to intermediateelements) to itself.

Attributes

Name Type Optional
TARGET STRING Yes Name of the field which will receive thevalue of the referenced element. If thisattribute is not specified, the sub-elementis parsed but the corresponding data structure,if any, is discarded can cannot be accessfrom within the client application.The type of the attribute referred to by theTARGET attribute must be compatible
NAME STRING No Name of the referenced element, whichmust be defined within the same meta-definitionfile.
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 isoptional or not. Default is FALSE.
POLYMORPH BOOLEAN Yes Indicates whether the element reference refers to a baseclass, and all the derived classes must be considered, usingthe Schema's standard xsi:type predefined attribute.

Content

Sequence of
META

Appears in

CONCAT; DISJUNCT; FORMULA; ENCLOSED; MIXED; PERM; REPEAT

DTD declaration

<!ELEMENT ELEMENTREF
(META)*
>

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