Notice that the annotations are similar, but the actual element and attribute names are different.
注意,其中的注释是类似的,而具体的元素和属性名却不同。
You'll remember also that, by default, element and attribute names in the output XML default to the corresponding field names.
您还会记得,输出XML中的元素和属性名称默认为相应的字段名称。
You can change element and attribute names too, as long as you're careful to make sure the resulting document is still well formed.
也可以改变元素名称和属性名称,只要细心地确保得到的文档格式仍是正确的就可以了。
What can you do to guard against typos in XPath element and attribute names (both in your stylesheet and in your input documents)?
在监督XPath元素和属性名称的拼写时(包括样式表中和输入文档中),您可以做些什么?
The choices of element and attribute names are arbitrary (unless you adapt someone else's structure), as are the values for the type attributes.
元素和属性的选择是任意的(除非您需要适应其他人的结构),type属性的值也是任意的。
Therefore, do not use those names for your element and attribute names.
因此,请勿使用这些名称做为项目和属性名称。
Namespaces are used to qualify element and attribute names in an XML document.
命名空间用于限定XML文档中的元素和属性的名称。
You then use the prefix in the element and attribute names when you construct the XML tree.
然后在构造xml树时,在元素和属性名称中使用该前缀。
Verify that the characters are legal XML characters, and that element and attribute names are valid XML names.
检查字符是不是合法的xml字符,元素和属性的名称是不是有效的XML名称。
For example, if the output encoding is ASCII, you should only use characters from the range of 0 to 127 for element and attribute names.
例如,如果输出编码为ascii,应该仅对元素和特性名使用从0到127范围内的字符。
However, the character entity reference is not allowed in element and attribute names, comments, processing instructions, or CDATA sections.
不过,在项目与属性名称、注解、处理指示或cdata区段中不允许字元实体参考。
Foremost among them is that XPath expressions can only reference namespace-qualified element and attribute names by the use of namespace prefixes.
最重要的一点是XPath表达式只能引用名称空间前缀限定的元素和属性名。
The element and attribute names are usually written in plain English (so humans can read them). They are also highly structured (so computers can parse them).
元素和属性通常以直白的英语命名(以便人能读懂),同时它们又是高度结构化的(以便机器能够解析)。
If you want to use DTDs and namespaces together, you can do so by designating specific prefixes and treating them as fixed parts of the element and attribute names.
如果您要同时使用DTD和名称空间,通过指定特定的前缀并把它们当作元素和属性名称的固定部分就可以做到了。
If you want to use DTDs and namespaces together, you can do so by designating specific prefixes and treating them as fixed parts of the element and attribute names.
如果您要同时使用DTD和名称空间,通过指定特定的前缀并把它们当作元素和属性名称的固定部分就可以做到了。
应用推荐