Difference between revisions of "Validation Module"
Jump to navigation
Jump to search
m (vertical whitespace) |
m |
||
Line 1: | Line 1: | ||
− | This [[Module Library|XQuery Module]] contains functions to perform validations against [http://www.w3.org/XML/Schema XML Schema] and [http://en.wikipedia.org/wiki/Document_Type_Declaration Document Type Declarations] . | + | This [[Module Library|XQuery Module]] contains functions to perform validations against [http://www.w3.org/XML/Schema XML Schema] and [http://en.wikipedia.org/wiki/Document_Type_Declaration Document Type Declarations]. |
+ | This module has been introduced with {{Version|7.2.2}}. | ||
+ | |||
All functions are preceded by the <code>validation:</code> prefix, which is linked to the statically declared <code>http://basex.org/modules/validation</code> namespace. | All functions are preceded by the <code>validation:</code> prefix, which is linked to the statically declared <code>http://basex.org/modules/validation</code> namespace. | ||
Revision as of 17:57, 21 May 2012
This XQuery Module contains functions to perform validations against XML Schema and Document Type Declarations. This module has been introduced with Version 7.2.2.
All functions are preceded by the validation:
prefix, which is linked to the statically declared http://basex.org/modules/validation
namespace.
validate:xsd
Signatures | validate:xsd($input as item()) as empty-sequence() validate:xsd($input as item(), $schema as xs:string) as empty-sequence()
|
validate:dtd
Signatures | validate:dtd($input as item()) as empty-sequence() validate:dtd($input as item(), $dtd as xs:string) as empty-sequence()
|
Examples
Example 1: Basic validation against a document containing a schema definition
Query:
validate:xsd($doc)