XSDs currently contain
<xs:attribute name="version" type="config:versionType" fixed="3.0" use="required"/>
which results in files like:
<validation-config
xmlns="https://jakarta.ee/xml/ns/validation/configuration"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://jakarta.ee/xml/ns/validation/configuration
https://jakarta.ee/xml/ns/validation/validation-configuration-3.1.xsd"
version="3.1">
...
</validation-config>
failing the validation with:
Value '3.1' of attribute 'version' of element 'validation-config' is not valid with respect to the corresponding attribute use. Attribute 'version' has a fixed value of '3.0'.