Get the kind of a non-XML document.
The following construct(s) refer to this construct:
tf:nonXML-kind(document-node $doc) => string?
The function tf:nonXML-kind
returns a string that describes
the kind of the given document. The returned value is one of the following:
- "text"
if
$doc
is a text non-XML document;- "binary"
if $doc is a binary non-XML document;
- () (the empty sequence)
if neither of the above applies. This is the case if
$doc
is a pure XML document.
$doc |
The document that is to be checked. |
---|