w3 的 xmlmime.xsd 无效吗?

is w3's xmlmime.xsd invalid?

我目前正在做一个我们需要的项目xmlmime.xsd

这个模式,来自w3.org,看起来像这样(只包括部分,因为其余部分与问题无关)

<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 -->

现在,如果我尝试使用 online validator 或在 JetBrains Rider IDE 中验证此文件,都会抱怨 Namespace "xs" is not bound

当我在第一行中包含 xmlns:xs="http://www.w3.org/2005/05/xmlmime 时,两个工具都很满意并声明 xsd 有效。 如果我完全删除命名空间(所有 xs: 前缀),也会发生同样的情况。

经过一些阅读(例如 What is the difference between targetNamespace and xmlns:target?),这个错误对我来说很有意义,因为我使用了一个未定义的命名空间。

这引出了我的问题。

w3.org提供的xmlmime.xsd是真的无效还是我遗漏了什么?

好吧,这有点傻,但我留下这个问题,也许其他人不会上当。

xsd 一切正常。 问题是 Firefox 如何显示文件,我只是复制了显示的 XML.
如果你打开源代码(Windows 中的 CTRL-U)你会看到一切都在那里

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
           xmlns:xmime="http://www.w3.org/2005/05/xmlmime"
           targetNamespace="http://www.w3.org/2005/05/xmlmime" >

但是 Firefox 只是省略了 xmlns 属性。
Chrome 按原样显示文件。

编辑: 这是已有 20 年(!)历史且仍未解决的错误报告 -> https://bugzilla.mozilla.org/show_bug.cgi?id=175946