#1134 XSD11 Rules for local targetNamespace not enforced

v9.3
closed
Michael Kay
5
2012-10-08
2011-02-21
Michael Kay
No

The XSD 1.1 rules defining when the targetNamespace attribute is allowed on a local xs:element or xs:attribute declaration are not strictly enforced. (a) The rules in the spec always allow the attribute provided its name is the same as the target namespace of the containing schema document; (b) Saxon is only checking that the containing xs:element or xs:attribute appears within an xs:restriction, not that this restriction also appears within an xs:complexType. A patch is being raised on the 9.3 branch.

Discussion

  • Michael Kay
    Michael Kay
    2011-04-21

    Fixed in 9.3.0.5