以文本方式查看主题 - 中文XML论坛 - 专业的XML技术讨论区 (http://bbs.xml.org.cn/index.asp) -- 『 XML基础 』 (http://bbs.xml.org.cn/list.asp?boardid=1) ---- About Namespace: 关于“名称空间” (http://bbs.xml.org.cn/dispbbs.asp?boardid=1&rootid=&id=44539) |
-- 作者:xml-linguist -- 发布时间:3/28/2007 3:04:00 PM -- About Namespace: 关于“名称空间” 初来乍到,请多关照;隔行如山,不得真传;问题幼稚,高手海涵。 本人是由于资料处理的需要才步入XML行列的。独自摸索了很久,许多问题无法解决。现提出一个关于“名称空间”的问题,望各位高手帮忙。 以下引用w3school中有关 namespace的一段说明: ==================================== xmlns:namespace-prefix="namespaceURI" When a namespace is defined in the start tag of an element, all child elements with the same prefix are associated with the same namespace. Note that the address used to identify the namespace is not used by the parser to look up information. The only purpose is to give the namespace a unique name. However, very often companies use the namespace as a pointer to a real Web page containing information about the namespace. ====================================== [此贴子已经被作者于2007-3-31 12:02:13编辑过]
|
-- 作者:Qr -- 发布时间:3/30/2007 2:51:00 PM -- 可以吧。只是不注意不要使用别人已经注册的域名。 |
-- 作者:xml-linguist -- 发布时间:3/31/2007 10:23:00 AM -- Thanks a lot, Qr. |
-- 作者:xml-linguist -- 发布时间:3/31/2007 10:25:00 AM -- And thanks to semicolon. semicolon帖子“XML基本规则”中已经对此问题作过说明: |
-- 作者:xml-linguist -- 发布时间:3/31/2007 10:37:00 AM -- 在semicolon的帖子中,admin也参与讨论,这个问题就很清楚了。请看: admin发言开始 semicolon发言开始: 再看“菩提小祖”与“donghid”的辩论: donghid发言开始: "命名空间可以随意起",是真的,为了跟别人命名的参数区别开,是有必要的啊~
|
-- 作者:xml-linguist -- 发布时间:4/13/2007 10:24:00 AM -- 从现在开始,我不敢说我完全理解了什么是namespace,也不敢说在具体应用中不会出这个方面的错误。但我很欣慰,因为我终于对namespace有了感觉!!!! 谢谢大家! |
W 3 C h i n a ( since 2003 ) 旗 下 站 点 苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》 |
62.500ms |