Schema-aware XSLT and XQuery processing
By default the schema-aware processor now uses validation=preserve rather than validation=strip for input documents. This is more efficient, and it gives results that are more consistent with the basic processor.
When validation is requested at the document level, there is now a check that the document contains a single top-level element, and no top-level text nodes. This check had previously been omitted.
In XSLT, document-level validation is now supported using the
The distinction between
xs:anyType is now
Elements of type
xs:ID (as well as attributes of type xs:ID) are now accessible using the
Subtypes derived from
xs:ID are now recognized when deciding which elements and attributes
is-ID property (and therefore qualify for retrieval using the
In line with changes agreed by the Working Groups, it is now an error to apply validation directly to an attribute node if the attribute type is namespace-sensitive (for example, xs:QName or xs:NOTATION). It's not possible to do such validation before the attribute is attached to a parent element as the namespace context is unknown. This only affects XSLT, since XQuery doesn't allow validation at the level of individual attributes anyway.