Description
The phpcsdoc.xsd schema does not conform to v1.0 of the XML schema spec because of the wildcard in the rulegroup
Model Group.
Since the schema has no targetNamespace
, the element wildcard in that model group (<xs:any minOccurs="0"/>
), as written, violates the Unique Particle Attribution constraint (since the wildcard could potentially match any unqualified element, including those specifically named in the model group).
XML Schema 1.1 loosened UPA so that wildcard is OK as specified provided that a v1.1 schema processor is used.
Since there are not that many v1.1 schema processors out there (especially in PHP, and most IDEs), it would probably be a good idea to modify the schema to conform to v1.0 of the schema spec.
I have some other suggestions for improvements to the schema, but it would be a good idea to have some general discussions around the "goals" of the schema (and validation in general) before jumping into opening a PR.
Note: I came across the schema when I saw WordPress/WordPress-Coding-Standards#2084.