The most significant change was putting the xmlns prefix in a namespace.
最重要的变化在于名称空间中加上了xmlns前缀。
Setting an attribute named xmlns through this DTD mechanism is a bad idea.
通过这个DTD机制设置名为xmlns 的属性不是一个好主意。
The other attribute, xmlns, specifies the XML Encryption namespace that we used to encrypt the XML data.
另一个属性xmlns指定了用来加密XML数据的 XML加密名称空间。
The original namespaces specification was clear and unambiguous that the xmlns prefix didn't have a namespace URI.
最初的名称空间明确地、毫不含糊地指出,xmlns前缀没有名称空间URI。
Normal canonicalization: When a sub-part of the XML is serialized, the ancestor element's context and all namespace declarations and attributes in the xmlns namespace are included.
常规规范化:当序列化XML的一部分时,祖先元素的上下文和所有的名称空间声明以及xmlns 名称空间中的属性都被包括进来。
Method getPrefix() is a shorthand for getting the namespace attribute's local name (unless it is a default namespace declaration, in which case the prefix is an empty string rather than "xmlns").
方法getPrefix()是获得名称空间属性的本地名的快捷方式(除非是默认名称空间声明,这种情况下前缀是一个空字符串而非 “xmlns”)。
The first is the [Namespaces] section. It lists the namespace prefixes to be used in the schema with the corresponding qualified namespaces, similar to the xmlns attribute in a basic XML document.
第一个部分是 [Namespaces],它列示架构中使用的命名空间前缀及其对应的经过限定的命名空间,类似于基本XML 文档中的 xmlns属性。
XML namespaces are declared using the XMLNS keyword.
xml名称空间使用xmlns关键字来声明。
XMLNS domain — Added to provide support for XML namespaces.
xmlns域——为提供XML命名空间支持而添加的域。
XML domain -- No longer needed because XMLNSC or XMLNS can be used instead.
XML域——不再需要,因为可以改为使用XMLNSC或XMLNS。
To refer to and abbreviate the name of a namespace, again use XMLNS declarations.
为了引用和简化名称空间的名字,同样要使用xmlns声明。
This example is compact, but imagine how hard it would be to find all the XMLNS declarations in a large document.
这个示例比较紧凑,但想象一下要在大型文档中查找所有xmlns声明将有多么难。
For programmatic parsing of XML documents without a model, there are a set of generic XML domains: XML, XMLNS, and XMLNSC.
对于不使用模型的XML文档的编程解析,存在一组通用的xml域:xml、XMLNS和XMLNSC。
Since XSLT stylesheets are XML documents, XSLT elements are also allowed to have attributes in the XML and XMLNS namespaces.
因为xslt样式表是xml文档,XSLT元素也允许具有xml和xmlns名称空间中的属性。
When a software tool generates XML, it has to place namespace nodes (XMLNS declarations) within the tree so that they are in effect where needed to qualify names.
当软件工具生成xml时,它必须将名称空间节点(xmlns声明)置于树中,以便它们在需要限定名称的地方起作用。
Note that unlike XMLNS, every namespace used must be declared and referred to by its prefix throughout the rest of the schema; use of fully-qualified assertions not supported.
注意,与xmlns不同,使用的每个命名空间都必须通过其前缀进行声明,并在架构的其余部分通过前缀引用;不支持使用完全限定的断言。
Note that with the HTML doctypes, you don't need the XMLNS attribute on your HTML element. That's specific to XHTML (it's an XML namespace, but that's a subject for another article).
注意,使用htmldoctype,不需要html元素上的xmlns属性,这是特定于XHTML的(它是一个xml名称空间,但这是另一篇文章的主题。)
If normal canonicalization is used, the payload will include the context of its original message's ancestor elements, and all namespace declarations and attributes in the XMLNS namespace.
如果使用常规规范化,载荷将包括原始消息祖先元素的上下文,以及所有的名字空间声明和xmlns名称空间中的属性。
If normal canonicalization is used, the payload will include the context of its original message's ancestor elements, and all namespace declarations and attributes in the XMLNS namespace.
如果使用常规规范化,载荷将包括原始消息祖先元素的上下文,以及所有的名字空间声明和xmlns名称空间中的属性。
应用推荐