Tamino XML Server Version 9.7
 —  XQuery 4 Reference Guide  —

tf:document

Document constructor.


Syntax

tf:document(item* $content, string? $content-type) => documentNode
tf:document(item* $content, string? $content-type, element? $acl) => documentNode

Top of page

Description

It is possible to construct a non-XML document node using the document constructor: document {$doc}; in this case, the document type is assigned automatically. If you need to specify the document type and/or an ACL for the document, you should use this function.

Top of page

Arguments

$content

The content of the document.

$content-type

If non-empty, this argument specifies the content type of the newly-created document.

$acl

If non-empty, this argument specifies the access control list for the document.

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:

Top of page