Data Validation
Data passed as input to a function is validated to ensure that it conforms to its specified datatype.
Data Validation describes the validation behavior. Datatype validation listed with the prefix xsd:
is defined in the namespace http://www.w3.org/2001/XMLSchema. See XML Schema Part2: Datatypes specification at http://www.w3.org/TR/2004/PER-xmlschema-2-20040318/ for more information on the proper representation of these datatypes.
Datatype validation listed with the prefix xdt:
is defined in the namespace http://www.w3.org/2003/11/xpath-datatypes. See Xquery 1.0 and Xpath 2.0 Functions and Operators specification at http://www.w3.org/TR/2003/WD-xpath-functions-20031112/ for more information on the proper representation of these datatypes.
Data Type | Validation |
---|---|
boolean |
xsd:boolean |
double |
xsd:double |
string |
xsd:string |
dateTime |
xsd:dateTime |
long |
xsd:long |
int |
xsd:int |