RE: DN-FO-06: 15.1.8 fn:empty

> DN-FO-06: 15.1.8 fn:empty
> 
> This function is a synonym for:
> 
>     not($srcval[1])
> 

Not quite: after {let $srcval := false()}, empty($srcval) is false but
not($srcval[1]) is true.

> and does not add any new functionality.
> 

I agree that it does not add functionality and I would like to see it go.
For my part I am particularly swayed by the argument that people will
imagine that empty(e) tests to see whether element e is empty (i.e. has no
children).

Michael Kay

Received on Tuesday, 24 June 2003 05:02:40 UTC