Changes

Jump to navigation Jump to search
45 bytes removed ,  00:42, 26 May 2012
m
Text replace - "| valign='top' | " to "| "
|<code><b>validate:xsd</b>($input as item()) as empty-sequence()</code><br /><code><b>validate:xsd</b>($input as item(), $schema as item()) as empty-sequence()</code>
|-
| valign='top' | '''Summary'''
|Validates the document specified by <code>$input</code>.<br />
Both <code>$input</code> and <code>$schema</code> may be
<code>$schema</code> can be used to specify the schema for validation. If no schema is given, <code>$input</code> is required to contain an <code>xsi:(noNamespace)schemaLocation</code> as defined in [http://www.w3.org/TR/xmlschema-1/#xsi_schemaLocation W3C XML Schema].<br />
|-
| valign='top' | '''Errors'''
|'''[[XQuery Errors#Functions Errors|BASX0023]]''' is raised if the addressed document cannot be validated against the given schema.
|-
| valign='top' | '''Examples'''
|
* <code>validate:xsd('doc.xml', 'doc.xsd')</code> validates the document {{Mono|doc.xm}} against the specified schema {{Mono|doc.xsd}}.
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu