- All Modules
- All Functions
-
www.w3.org
- 2005
- XDM
- store
- introspection
- reflection
- external
-
xqdoc
-
project_xqdoc
-
xqdoc
(E)
- xqdoc2xhtml
-
project_xqdoc
- data processing
- expath.org
- www.functx.com
- debugger
- error
- www.zorba-xquery.com
http://www.zorba-xquery.com/modules/schema
import module namespace schema = "http://www.zorba-xquery.com/modules/schema";
This module provides function that are related to XML Schema support in Zorba.
Cezar Andrei, Matthias Brantner
xquery version "1.0" encoding "utf-8";
The latest version of this module is 2.0. For more information about module versioning in Zorba please check out this resource.
- the XQuery module can be found here.
schema | http://www.zorba-xquery.com/modules/schema |
ver | http://www.zorba-xquery.com/options/versioning |
![]() |
is-validated
(
$node as node()
) as xs:boolean external This function returns true if the given node has need validated, and false otherwise. |
![]() |
schema-type
(
$item as item()
) as xs:QName? external This function returns the name of the type of the item passed as parameter. |
![]() ![]() |
validate-in-place
(
$node as node()
) external Updating function that validates the document in place. |
declare function schema:is-validated (
$node as node()
) as xs:boolean external
This function returns true if the given node has need validated, and false otherwise.
- $node the node item that should be checked for validation
- true if the given node has been validated, false otherwise.
declare function schema:schema-type (
$item as item()
) as xs:QName? external
This function returns the name of the type of the item passed as parameter.
- $item the item from which the name of the type should be returned.
- the name of the type (as QName) of the item passed as parameter.
declare updating function schema:validate-in-place (
$node as node()
) external
Updating function that validates the document in place. After the updating query is applied the $node will contain the validated content.
- $node the document or element to be validated, otherwise error
- The result of the function is an empty XDM instance and a pending update list that consists the schema:validate-in-place($node)) primitive.