Xml 个命名空间 https 合规性
Xml namespaces https compliance
我们正在使我们的 MVC4 站点与 https 兼容。
在我们的全局资源文件中,我们声明了 xmlns
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
为了让我们的网站符合 https 标准,是否应该这样声明?
<xsd:schema id="root" xmlns="" xmlns:xsd="https://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
当我们尝试使用
时遇到无法显示 svg 文件的问题
<svg version="1.1" id="Icon" xmlns="https://www.w3.org/2000/svg" xmlns:xlink="https://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 46.9 46.8" style="enable-background:new 0 0 46.9 46.8;" xml:space="preserve">
而不是
<svg version="1.1" id="Icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 46.9 46.8" style="enable-background:new 0 0 46.9 46.8;" xml:space="preserve">
xsd 的名称空间名称始终是 http://www.w3.org/2001/XMLSchema
,而 svg 的名称空间始终是 http://www.w3.org/2000/svg
。它不能改变。这与制作任何网站无关 "https compliant".
请参阅回答。
The URI is the namespace name, which identifies the namespace.
While, in case of some URI schemes (like http, https, ftp etc.), it
would be possible to provide the schema (or other related
information), this is "not a goal":
我们正在使我们的 MVC4 站点与 https 兼容。
在我们的全局资源文件中,我们声明了 xmlns
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
为了让我们的网站符合 https 标准,是否应该这样声明?
<xsd:schema id="root" xmlns="" xmlns:xsd="https://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
当我们尝试使用
时遇到无法显示 svg 文件的问题<svg version="1.1" id="Icon" xmlns="https://www.w3.org/2000/svg" xmlns:xlink="https://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 46.9 46.8" style="enable-background:new 0 0 46.9 46.8;" xml:space="preserve">
而不是
<svg version="1.1" id="Icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 46.9 46.8" style="enable-background:new 0 0 46.9 46.8;" xml:space="preserve">
xsd 的名称空间名称始终是 http://www.w3.org/2001/XMLSchema
,而 svg 的名称空间始终是 http://www.w3.org/2000/svg
。它不能改变。这与制作任何网站无关 "https compliant".
请参阅
The URI is the namespace name, which identifies the namespace.
While, in case of some URI schemes (like http, https, ftp etc.), it would be possible to provide the schema (or other related information), this is "not a goal":