-
Notifications
You must be signed in to change notification settings - Fork 20
Description
The type signature of the xsd-validator function suggests that it can be used to validate attribute nodes (as well as documents and elements), and the prose description concurs with this. However the function summary says "can be invoked to validate a document or element node against this schema."
Test case xsd-validator-092 expects an attribute node to be rejected.
Also the Notes in the specification say
The validation process is explained in more detail in the XQuery ([[XQuery 4.0: An XML Query Language]] section [4.25 Validate Expressions] and XSLT ([[XSL Transformations (XSLT) Version 4.0]] section [25.4 Validation]
but the detailed description has since been moved to F&O 17.2.4.
Note that XSLT has always allowed validation of free-standing attribute nodes, but the validate expression in XQuery allows only document and element nodes.