gpt4 book ai didi

xml - 如何理解这个关于 XML 命名空间的维基百科条目

转载 作者:行者123 更新时间:2023-12-04 17:06:57 26 4
gpt4 key购买 nike

以下来自Wikipedia Article on XML Namespaces :

An XML namespace is declared using the reserved XML attribute xmlns or xmlns:prefix, the value of which must be a valid namespace name.

For example, the following declaration maps the "xhtml:" prefix to the XHTML namespace:

xmlns:xhtml="http://www.w3.org/1999/xhtml"



文章暗示上述声明创建了一个名为“XTHML”的命名空间。 URL“ http://www.w3.org/1999/xhtml”如何定义称为“XTHML”的东西?字符串“XHTML”没有出现在 xml 示例中。上面引用中的“XHTML 命名空间”指的是什么?这篇文章如果这样说会更准确吗?

For example, the following declaration maps the "xhtml:" prefix to the http://www.w3.org/1999/xhtml namespace:

xmlns:xhtml="http://www.w3.org/1999/xhtml"

最佳答案

XHTML 只是一个名称。它是 XHTML namespace ,因为这就是它的名称。

构成命名空间的字符组合并没有导致 XHTML 从中出现。就像我住的大楼的街道地址中没有任何字母和数字的组合使它成为“昆汀的房子”一样。

关于xml - 如何理解这个关于 XML 命名空间的维基百科条目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48114712/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com