当前位置 : 主页 > 网页制作 > xml >

带冒号的XML语法是什么意思?

来源:互联网 收集:自由互联 发布时间:2021-06-13
什么: rd:... /rd:..... 在XML格式的RDL文件意味着什么呢? 有人请向我解释一下.我刚开始学习这个. XML语法rd:是名称空间前缀,是名称空间URI的缩写. XML命名空间 XML名称空间的目的在W3C R
什么:

<rd:...>  </rd:.....>

在XML格式的RDL文件意味着什么呢?
有人请向我解释一下.我刚开始学习这个.

XML语法rd:是名称空间前缀,是名称空间URI的缩写.

XML命名空间

XML名称空间的目的在W3C Recommendation: Namespaces in XML 1.0 (Third Edition)的Section 1, Motivation and Summary中清楚地解释:

We envision applications of Extensible Markup Language (XML) where a
single XML document may contain elements and attributes (here referred
to as a “markup vocabulary”) that are defined for and used by multiple
software modules. One motivation for this is modularity: if such a
markup vocabulary exists which is well-understood and for which there
is useful software available, it is better to re-use this markup
rather than re-invent it.

Such documents, containing multiple markup vocabularies, pose problems
of recognition and collision. Software modules need to be able to
recognize the elements and attributes which they are designed to
process, even in the face of “collisions” occurring when markup
intended for some other software package uses the same element name or
attribute name.

These considerations require that document constructs should have
names constructed so as to avoid clashes between names from different
markup vocabularies. This specification describes a mechanism, XML
namespaces
, which accomplishes this by assigning 07002
to elements and attributes.

因此,在RDL中,与其他标准工作一样,命名空间允许创建词汇表而无需担心命名与其他词汇表的冲突.

网友评论