在 xs:any 类型的 XML 元素中,命名空间通配符##any 是否也包括#local?

In an xs:any type XML element, does the namespace wildcard ##any also include #local?

在 xs:any 类型的 XML 元素中,命名空间通配符 ##other 是否也包括 #local ?

据我从下面可以看出它没有,例如:

https://www.w3.org/TR/xmlschema-1/

https://msdn.microsoft.com/en-us/library/ms256043(v=vs.110).aspx

据我所知,上面第二个 link 的定义似乎是分离的:

Elements from any namespace that is not the target namespace of the parent element containing this element can be present.

Elements that are not qualified with a namespace can be present.

这是否正确,我的理解是否正确? xs:any 类型 ##other 的 XML 元素中不能有不合格的元素 ?

##local 允许名称不在命名空间中

##other 允许目标名称空间以外的名称空间中的名称

你需要非常小心这里的术语。使用像 "unqualified elements" 这样的口语化术语对您没有帮助,因为规范使用的术语非常精确,并且假设您知道它们的意思。特别是,我们中的许多人认为 "names in no namespace" 属于某种特殊的 "unnamed" 或 "null" 命名空间,但在阅读 [=24 时认为这是一个严重的错误=] 规格。当规范说名称必须在目标名称空间以外的名称空间中时,这意味着 (a) 它必须在名称空间中(因此不包括 no-namespace 名称 - 匹配 ##local 的名称),以及(b) 该命名空间不能是目标命名空间。