Checks whether an XML document validates against a DTD. The input document can be specified as:
* {{Code|xs:string}}, representing a URI (since {{Version|8.5}}, relative URIs will always be resolved against the static base URI of the query),
* {{Code|xs:string}}, representing the resource in its string representation, or
* {{Code|node()}}, representing the resource itself.