The empty() function returns true if and only if the argument is an empty sequence. For example, the expression «empty(//a) » returns true if the context document contains no <a> elements.
Argument | Data Type | Meaning |
---|---|---|
sequence | Item()* | The input sequence |
Result | xs:boolean | true if the input sequence is empty, otherwise false |