常用的最佳实践是使用名称空间树。
案例8:在查询中使用名称空间和属性。
通过使用名称空间模拟包。
本文解释为什么应该考虑在项目中使用名称空间。
This article explains why you should consider using namespaces on your next project.
不过更大的变化是能够使用名称空间扩展这种格式。
The greatest change, though, is the ability to extend the format using namespaces.
还有许多例子可以演示如何使用名称空间增强代码。
These are just a few examples of how we can use namespaces to enhance our code.
为避免命名冲突,您应尽可能随时使用名称空间前缀。
To avoid naming conflicts, you should use the namespace prefixes whenever possible.
生成的接口包名是从模式中使用名称空间衍生出来的。
The package for the generated interfaces is derived from a namespace used in the schema.
下面是我建议避免使用名称空间的应用模式。
The following are usage patterns for namespaces that I suggest avoiding.
可以将SVG与其他使用名称空间的xml格式混合。
由于需要使用名称空间,这个XML模式支持这个功能。
The XML Schema supports this due to the required use of namespaces.
再次使用名称空间上的弹出菜单测试名称空间。
Again, test the namespace using the pop-up menu on the namespace.
没有使用名称空间。
不使用名称空间。
您没有定义名称空间,因为它不需要使用名称空间。
You did not define the namespace because it worked without the namespace.
许多XML文档都使用名称空间,这些都是使用URI指定的。
Many XML documents use namespaces, which are specified using a URI.
W3C要求XSLT转换处理器识别和使用名称空间。
The W3C requires that XSLT transformation processors recognize and work with namespaces.
XMLSchema 使用名称空间区分这些定义。
XML Schema allows the concept of namespaces to distinguish the definitions.
有效使用名称空间最重要的一步是学习如何保持这些成分的条理性。
The most important step in using namespaces effectively is to learn how to keep these straight.
在一个域中使用名称空间进行区分的不足最好通过一个例子来说明。
The pitfalls of using namespaces to make distinctions within a domain are best illustrated by example.
对于应该如何使用名称空间这个问题,很多IT 专家意见不一。
Still, many IT professionals disagree on how namespaces should be used.
通过使用名称空间和对应的名称空间前缀,您可以彻底避免这个问题。
By using namespaces and accompanying namespace prefixes, you avoid this problem altogether.
使用名称空间,就可以避免具有相同本地名称的元素所带来的不确定性。
Using namespaces you can avoid ambiguities concerning elements with the same local name.
由于实践的原因,这些天几乎在所有的XML设计中我一直使用名称空间。
For practical reasons based on my experience, these days I use namespaces in almost all of my XML designs.
因此,重要的是确保那些类型不会冲突,这可以通过使用名称空间轻松实现。
It is therefore important to ensure that the types do not clash, which you can easily do by using namespaces.
如果要在XPath中使用名称空间,请确保设置名称空间属性。
Be sure to set the namespaces attribute if you are using namespaces in your XPath.
XML允许使用名称空间,允许对文件中特定的元素的期望结构进行预定义。
XML allows you to use something called namespaces and schemas, which let you predefine the expected structure of a particular named element in the file.
为了有效地使用名称空间,应该在编写代码之前设计自己的命名约定。
To benefit from namespaces, you should design your naming conventions before keying a line of code.
关于名称空间只要注意一点:WSDL广泛地使用名称空间这一概念。
Just a note about namespaces: WSDL USES the concept of namespaces extensively.
说明这个扩展函数是如何使用名称空间前缀调用的(见本例的xslext)。
Note how the extension function is called using the namespace prefix (xslext in this example).
应用推荐