|-
| '''Summary'''
|Validates the document specified by {{Code|$input}}.<br />Both {{Code|$input}} and {{Code|$schema}} may can be
* an {{Code|xs:string}}, containing the path to the resource,
* an {{Code|xs:string}}, containing the resource in its string representation, or
|-
| '''Errors'''
|{{Error|BXVA0001|#Errors}} the addressed document validation process cannot be validated against started or the given schemavalidation fails.
|-
| '''Examples'''
return validate:xsd($doc, $schema)
</pre>
|}
==validate:xsd-info==
{| width='100%'
|-
| width='90' | '''Signatures'''
|{{Func|validate:xsd-info|$input as item()|xs:string*}}<br />{{Func|validate:xsd-info|$input as item(), $schema as item()|xs:string*}}
|-
| '''Summary'''
|Validates the document specified by {{Code|$input}} and returns warning, errors and fatal errors in a string sequence. Both {{Code|$input}} and {{Code|$schema}} can be
* an {{Code|xs:string}}, containing the path to the resource,
* an {{Code|xs:string}}, containing the resource in its string representation, or
* a {{Code|node()}}, containing the resource itself.
{{Code|$schema}} can be used to specify the schema for validation. If no schema is given, {{Code|$input}} is required to contain an {{Code|xsi:(noNamespace)schemaLocation}} as defined in [http://www.w3.org/TR/xmlschema-1/#xsi_schemaLocation W3C XML Schema].<br />
|-
| '''Errors'''
|{{Error|BXVA0001|#Errors}} the validation process cannot be started.
|}
|-
| '''Summary'''
|Validates the document specified by {{Code|$input}}.<br />{{Code|$input}} may can be
* an {{Code|xs:string}}, containing the path to the resource,
* an {{Code|xs:string}}, containing the resource in its string representation, or
|-
| '''Errors'''
|{{Error|BXVA0001|#Errors}} the addressed document validation process cannot be validated against started or the given DTDvalidation fails.
|-
| '''Examples'''
</pre>
|-
|}
==validate:dtd-info==
{| width='100%'
|-
| width='90' | '''Signatures'''
|{{Func|validate:dtd-info|$input as item()|xs:string*}}<br />{{Func|validate:dtd-info|$input as item(), $dtd as xs:string|xs:string*}}
|-
| '''Summary'''
|Validates the document specified by {{Code|$input}} and returns warning, errors and fatal errors in a string sequence. {{Code|$input}} can be
* an {{Code|xs:string}}, containing the path to the resource,
* an {{Code|xs:string}}, containing the resource in its string representation, or
* a {{Code|node()}}, containing the resource itself.
{{Code|$schema}} can be used to specify the DTD for validation. If no DTD is given, {{Code|$input}} is required to contain a DTD doctype declaration.<br />
|-
| '''Errors'''
|{{Error|BXVA0001|#Errors}} the validation process cannot be started.
|}