$input as item(), $schema as item()? := (), $features options as map(*) ? := ()map { }
) as xs:string*</pre>
|- valign="top"
| '''Summary'''
|Validates the XML {{Code|$input}} document against a {{Code|$schema}} and returns warnings, errors and fatal errors in a string sequence. See {{Function||validate:xsd}} for more information of the {{Code|$featuresoptions}} parameter.
|- valign="top"
| '''Errors'''
{| width='100%'
|- valign="top"
| width='120' | '''SignaturesSignature'''
|<pre>validate:xsd-report(
$input as item(), $schema as xs:string? := (), $features options as map(*) := ()map { }
) as element(report)</pre>
|- valign="top"
| '''Summary'''
|Validates the XML {{Code|$input}} document against a {{Code|$schema}} and returns warnings, errors and fatal errors as XML. See {{Function||validate:xsd}} for more information of the {{Code|$featuresoptions}} parameter.
|- valign="top"
| '''Errors'''
{| width='100%'
|- valign="top"
| width='120' | '''SignaturesSignature'''
|<pre>validate:xsd-processor() as xs:string</pre>
|- valign="top"
{| width='100%'
|- valign="top"
| width='120' | '''SignaturesSignature'''
|<pre>validate:xsd-version() as xs:string</pre>
|- valign="top"
{| width='100%'
|- valign="top"
| width='120' | '''SignaturesSignature'''
|<pre>validate:rng(
$input as item(), $schema as item(), $compact as xs:boolean ? := ()map { }
) as empty-sequence()</pre>
|- valign="top"
{| width='100%'
|- valign="top"
| width='120' | '''SignaturesSignature'''
|<pre>validate:rng-info(
$input as item(), $schema as item(), $compact as xs:boolean ? := ()map { }
) as xs:string*</pre>
|- valign="top"
{| width='100%'
|- valign="top"
| width='120' | '''SignaturesSignature'''
|<pre>validate:rng-report(
$input as item(), $schema as xs:string, $compact as xs:boolean ? := ()map { }
) as element(report)</pre>
|- valign="top"
If you want to use Schematron for validating documents, install Vincent Lizzi’s excellent [https://github.com/Schematron/schematron-basex Schematron XQuery Module for BaseX]: