加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Xml架构:空targetNamespace

发布时间:2020-12-15 23:58:12 所属栏目:百科 来源:网络整理
导读:在Xml架构中不使用targetNamespace属性或空属性是否合法? 如果是这样,那么它是什么意思,我们是在“空命名空间”(总是存在)中“添加”某些东西,还是创建一个与其他模式无关的“匿名命名空间”? 实例xml文档将如何显示,是否需要将元素显式绑定到某个命名空间
在Xml架构中不使用targetNamespace属性或空属性是否合法?

如果是这样,那么它是什么意思,我们是在“空命名空间”(总是存在)中“添加”某些东西,还是创建一个与其他模式无关的“匿名命名空间”?

实例xml文档将如何显示,是否需要将元素显式绑定到某个命名空间?

有关未声明的targetNamespaces如何工作的非常简明的描述,请参见 XML Schema Part 0: Primer.

至于空的targetNamespace,那是无效的.从spec开始:

Since the empty string is not a legal namespace name,supplying an empty string for targetNamespace is incoherent,and is not the same as not specifying it at all. The appropriate form of schema document corresponding to a ·schema· whose components have no {target namespace} is one which has no targetNamespace attribute specified at all.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读