tf:nonXML-kind

Get the kind of a non-XML document.

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:


Syntax

tf:nonXML-kind(document-node $doc) => string?

Description

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.

Argument

$doc

The document that is to be checked.