Changes

Jump to navigation Jump to search
72 bytes removed ,  18:35, 1 December 2023
m
Text replacement - "</syntaxhighlight>" to "</pre>"
'DTD Validation failed.'
}
</syntaxhighlightpre>
|}
<message level="Error" line="2" column="11">Element type "invalid" must be declared.</message>
</report>
</syntaxhighlightpre>
|}
</xs:schema>
return validate:xsd($doc, $schema)
</syntaxhighlightpre>
* Validate all documents of a database against the specified schema, using the supplied feature:
<pre lang='xquery'>
map { 'http://javax.xml.XMLConstants/feature/secure-processing': true() }
)
</syntaxhighlightpre>
|}
<pre lang='xquery'>
repo:install('https://github.com/Schematron/schematron-basex/raw/master/dist/schematron-basex-1.2.xar')
</syntaxhighlightpre>
The following query illustrates how documents are validated. It is directly taken from the GitHub project:
return concat(schematron:message-level($message), ': ', schematron:message-description($message))
)
</syntaxhighlightpre>
=Errors=
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu