A module for XML validation and grammars functions.
validation:clear-grammar-cache() as xs:integer
Remove all cached grammers.
validation:jaxp($instance as item(), $cache-grammars as xs:boolean) as xs:boolean
Validate document by parsing $instance. Optionally grammar caching can be enabled. Supported grammars types are '.xsd' and '.dtd'.
$instance | The document referenced as xs:anyURI, a node (element or result of fn:doc()) or as a Java file object. |
$cache-grammars | Set the flag to true() to enable grammar caching. |
validation:jaxp($instance as item(), $cache-grammars as xs:boolean, $catalogs as item()*) as xs:boolean
Validate document by parsing $instance. Optionally grammar caching can be enabled and an XML catalog can be specified. Supported grammars types are '.xsd' and '.dtd'.
$instance | The document referenced as xs:anyURI, a node (element or result of fn:doc()) or as a Java file object. |
$cache-grammars | Set the flag to true() to enable grammar caching. |
$catalogs* | The catalogs referenced as xs:anyURI's. |
validation:jaxp-parse($instance as item(), $enable-grammar-cache as xs:boolean, $catalogs as item()*) as node()
Parse document in validating mode, all defaults are filled in according to the grammar (xsd).
$instance | The document referenced as xs:anyURI, a node (element or result of fn:doc()) or as a Java file object. |
$enable-grammar-cache | Set the flag to true() to enable grammar caching. |
$catalogs* | The catalogs referenced as xs:anyURI's. |
validation:jaxp-report($instance as item(), $enable-grammar-cache as xs:boolean) as node()
Validate document by parsing $instance. Optionally grammar caching can be enabled. Supported grammars types are '.xsd' and '.dtd'. An XML report is returned.
$instance | The document referenced as xs:anyURI, a node (element or result of fn:doc()) or as a Java file object. |
$enable-grammar-cache | Set the flag to true() to enable grammar caching. |
validation:jaxp-report($instance as item(), $enable-grammar-cache as xs:boolean, $catalogs as item()*) as node()
Validate document by parsing $instance. Optionally grammar caching can be enabled and an XML catalog can be specified. Supported grammars types are '.xsd' and '.dtd'. An XML report is returned.
$instance | The document referenced as xs:anyURI, a node (element or result of fn:doc()) or as a Java file object. |
$enable-grammar-cache | Set the flag to true() to enable grammar caching. |
$catalogs* | The catalogs referenced as xs:anyURI's. |
validation:jaxv($instance as item(), $grammars as item()+) as xs:boolean
Validate document specified by $instance using the schemas in $grammars. Based on functionality provided by 'javax.xml.validation.Validator'. Only '.xsd' grammars are supported.
$instance | The document referenced as xs:anyURI, a node (element or returned by fn:doc()) or as a Java file object. |
$grammars+ | The namespace URI to designate a schema language. Depending on the jaxv.SchemaFactory implementation the following values are valid:(XSD 1.0) http://www.w3.org/2001/XMLSchema http://www.w3.org/XML/XMLSchema/v1.0, (XSD 1.1) http://www.w3.org/XML/XMLSchema/v1.1, (RELAX NG 1.0) http://relaxng.org/ns/structure/1.0 |
validation:jaxv($instance as item(), $grammars as item()+, $language as xs:string) as xs:boolean
Validate document specified by $instance using the schemas in $grammars. Based on functionality provided by 'javax.xml.validation.Validator'. Only '.xsd' grammars are supported.
$instance | The document referenced as xs:anyURI, a node (element or returned by fn:doc()) or as a Java file object. |
$grammars+ | One of more XML Schema documents (.xsd), referenced as xs:anyURI, a node (element or returned by fn:doc()) or as Java file objects. |
$language | The namespace URI to designate a schema language. Depending on the jaxv.SchemaFactory implementation the following values are valid:(XSD 1.0) http://www.w3.org/2001/XMLSchema http://www.w3.org/XML/XMLSchema/v1.0, (XSD 1.1) http://www.w3.org/XML/XMLSchema/v1.1, (RELAX NG 1.0) http://relaxng.org/ns/structure/1.0 |
validation:jaxv-report($instance as item(), $grammars as item()+) as node()
Validate document specified by $instance using the schemas in $grammars. Based on functionality provided by 'javax.xml.validation.Validator'. Only '.xsd' grammars are supported. An XML report is returned.
$instance | The document referenced as xs:anyURI, a node (element or returned by fn:doc()) or as a Java file object. |
$grammars+ | One of more XML Schema documents (.xsd), referenced as xs:anyURI, a node (element or returned by fn:doc()) or as Java file objects. |
validation:jaxv-report($instance as item(), $grammars as item()+, $language as xs:string) as node()
Validate document specified by $instance using the schemas in $grammars. Based on functionality provided by 'javax.xml.validation.Validator'. Only '.xsd' grammars are supported. An XML report is returned.
$instance | The document referenced as xs:anyURI, a node (element or returned by fn:doc()) or as a Java file object. |
$grammars+ | One of more XML Schema documents (.xsd), referenced as xs:anyURI, a node (element or returned by fn:doc()) or as Java file objects. |
$language | The namespace URI to designate a schema language. Depending on the jaxv.SchemaFactory implementation the following values are valid:(XSD 1.0) http://www.w3.org/2001/XMLSchema http://www.w3.org/XML/XMLSchema/v1.0, (XSD 1.1) http://www.w3.org/XML/XMLSchema/v1.1, (RELAX NG 1.0) http://relaxng.org/ns/structure/1.0 |
validation:jing($instance as item(), $grammar as item()) as xs:boolean
Validate document using 'Jing'. Supported grammar documents extensions are ".xsd" ".rng" ".rnc" ".sch" and ".nvdl". Based on functionality provided by 'com.thaiopensource.validate.ValidationDriver'.
$instance | The document referenced as xs:anyURI, a node (element or returned by fn:doc()) or as a Java file object. |
$grammar | The grammar document as node (element of returned by fn:doc()), xs:anyURI, returned by util:binary-doc() or as a Java file object. |
validation:jing-report($instance as item(), $grammar as item()) as node()
Validate document using 'Jing'. Supported grammar documents extensions are ".xsd" ".rng" ".rnc" ".sch" and ".nvdl". Based on functionality provided by 'com.thaiopensource.validate.ValidationDriver'. An XML report is returned.
$instance | The document referenced as xs:anyURI, a node (element or returned by fn:doc()) or as a Java file object. |
$grammar | The grammar document as node (element of returned by fn:doc()), xs:anyURI, returned by util:binary-doc() or as a Java file object. |
validation:pre-parse-grammar($grammar as xs:anyURI*) as xs:string*
Pre parse grammars and add to grammar cache. Only XML schemas (.xsd) are supported.
$grammar* | Reference to grammar. |
validation:show-grammar-cache() as node()
Show all cached grammars.