Tamino XML Server Version 9.7
 —  XQuery 4 Reference Guide  —

ElementContent

Define content of an element in construction.


Syntax

ElementContent

graphics/ElementContent.png

Char CharRef PredefinedEntityRef ElementConstructor EnclosedExpr DirectCommentConstructor XmlProcessingInstruction

Top of page

Description

An ElementContent is part of an ElementConstructor. It defines the content of an element if you use an element constructor. As literals it allows any defined character, a character reference such as א, a predefined entity references such as ", and two escape sequences for the left and right brace. Since the braces are used to delimit enclosed expressions, an escape sequence is necessary to use the braces as literals. For that purpose, two adjacent braces are interpreted as a single literal brace.

Furthermore, content can be an element constructor enabling nested element structures, direct constructors creating CDATA sections, XML comments or processing instructions, and enclosed expressions that contain an expression which is evaluated and the result placed as element content.

Top of page

Example

See ElementConstructor and EnclosedExpr for examples.

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:

Top of page