I'm currently working on a project where we need xmlmime.xsd
This schema, coming from w3.org, looks like this (only parts include, because the rest is not relevant to the question)
<xs:schema targetNamespace="http://www.w3.org/2005/05/xmlmime">
<xs:attribute name="contentType">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="3"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<!-- and so on -->
Now if I try to validate this file with an online validator or within JetBrains Rider IDE both complain Namespace "xs" is not bound
When I include xmlns:xs="http://www.w3.org/2005/05/xmlmime
in the first line, both tools are happy and state the xsd is valid.
Same happens if I remove the namespace (all xs:
prefixes) completely.
After some reading (e.g. What is the difference between targetNamespace and xmlns:target?) the error makes sense to me, because I use a namespace which is not defined.
This leads to my question.
Is the xmlmime.xsd provided by w3.org really invalid or am I missing something?