默认默认命名空间没有命名空间。 - RichardThe "default default namespace" is no namespace.-- Richard " no namespace" ;.即使您使用的前缀未被声明为/ b $ b之前引用某个命名空间,使用它们的元素也属于 no namespace或 undefined。 这在XML名称TR中解释,位于 http:/ /www.w3.org/ 据我所知记住。 一个更有趣的问题是: < foo xmlns =" someuri" xmlns:bar =" some_other_uri"> < bar:baz qux =" some_value" /> < / foo> 属性qux属于哪个命名空间? 据我所知,它属于bar-namespace(some_other_uri), 虽然没有前缀。 - Alan Plum,WAD / WD,蘑菇云制作 http://www.mushroom-cloud.com/"no namespace". Even if you use prefixes which haven''t been declared toreference a certain namespace before, the elements using them belong to"no namespace", or "undefined".This is explained in the XML Names TR at http://www.w3.org/ as far as Iremember.A more interesting question is, in:<foo xmlns="someuri" xmlns:bar="some_other_uri"><bar:baz qux="some_value"/></foo>What namespace does the attribute qux belong to?To my understanding it belongs to the bar-namespace (some_other_uri),although unprefixed.--Alan Plum, WAD/WD, Mushroom Cloud Productions http://www.mushroom-cloud.com/ 这篇关于救命!命名空间混乱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-23 18:26