Tamino XML Server Version 9.7
 —  XQuery 4 Reference Guide  —

ComputedDocumentConstructor

A ComputedDocumentConstructor constructs a document node with a new node identity. The result of evaluating the ExprSequence yields the child nodes of the conctructed document node.


Syntax

graphics/ComputedDocumentConstructor.png

Top of page

Description

When creating an XML document node, the result of the evaluation of the ExprSequence must be well-formed XML, i.e.:

Any XML document nodes contained in that sequence are implicitly replaced by their child nodes. For XML document construction, the sequence must not contain any simple type values.

In Tamino XQuery, a document constructor can also be used to create a non-XML document node. In this case the following applies to the result of evaluating the ExprSequence:

The ExprSequence must not result in both XML and non-XML content.

For creating documents with extra options (content-type, ACL), see the function tf:document().

Top of page

Examples

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:

Top of page