Shows how to create documents with namespaces.
演示如何创建包含命名空间的文档。
You've seen how one of the biggest problems is dealing with namespaces.
您已经了解到,最大的问题之一就是名称空间处理问题。
Finally, how do you convert XML data with namespaces into relational data?
最后,如何将包含名称空间的XML数据转换成关系数据?
Listing 2 (listing2.xml). Simple XML file example with namespaces and more.
清单2 (listing 2 .xml)。
The W3C requires that XSLT transformation processors recognize and work with namespaces.
W3C要求XSLT转换处理器识别和使用名称空间。
Notice that the code is not plain HTML, but actually XML with namespaces, with added property elements.
请注意,此代码不是纯html,而是带名字空间的XML以及所添加的property元素。
XPP suffers from requiring more steps for parsing and writing text documents, and for working with namespaces.
XPP在语法分析和编写文本文档时需要更多步骤,并且在处理名称空间时也需要更多步骤。
Namespace prefixes associate elements and attributes with namespaces, are in turn associated to a URI reference.
命名空间前缀将元素和属性与命名空间关联,命名空间反过来又与URI引用关联。
Namespace prefixes associate elements and attributes with namespaces, which are in turn associated to a URI reference.
命名空间前缀将元素和属性与命名空间关联,命名空间反过来又与URI引用关联。
Declaring global namespaces reduces the amount of work that you have to do to use embedded expressions with namespaces.
声明全局命名空间可减少与命名空间一起使用嵌入表达式所必须执行的工作量。
Unfortunately, this is not supported in jQuery, so people have resorted to all sorts of hackery to deal with namespaces.
不幸的是,jQuery并不支持这种方法,因此人们采取了各种方法来处理名称空间问题。
XHTML USES three XML namespaces used to qualify element and attributes names by associating them with namespaces identified by URI references.
XHTML使用三种XML的命名空间通过将元素和属性名称与URI参数确认的命名空间联系起来,从而证明它们的有效性。
Once you have an instance of XPath, you can start to configure it by changing the context, working with namespaces, and evaluating expressions.
一旦得到了XPath的实例,就可以开始通过改变上下文、处理名称空间和计算表达式来配置它。
Class definitions play some neat tricks with namespaces and you need to know how scopes and namespaces work to fully understand what's going on.
类的定义对名字空间玩弄了一些小技巧,为了全面了解所发生的事情,你必须了解作用域与名字空间的工作方式。
RDDL is very easy and inexpensive to use with namespaces, and indeed some users have even used RDDL as a format for expressing general resource repositories.
将RDDL用于名称空间非常简单而且成本低廉,实际上一些用户已经把RDDL作为表达通用资源存储库的一种格式。
Some tricks with namespaces may give you other options (see Resources for a tip on using namespaces for versioning), but you should use even these with care.
关于名称空间的一些诀窍也许能够提供其他的选择(使用名称空间区分版本的有关技巧,请参阅参考资料),但使用这些技巧也必须小心谨慎。
Associates aliases with namespaces and classes, which allow user controls and custom server controls to be rendered when included in a requested page or user control.
将别名与命名空间和类相关联,以便在用户控件和自定义服务器控件被纳入到请求页或用户控件中时得以呈现。
Part 2 (July 2004) looks at more difficult topics, such as working with namespaces, validating XML documents, and building XML structures without a typical XML document.
第2部分(2004年7月)介绍了比较难的主题,比如使用名称空间、验证xML文档和无需典型的XML文档来构建XML结构。
For the signed form corresponding to the one given in listing 1, a new document with as the document element must be created with namespaces inherited from all ancestor nodes.
对于与清单1相对应的已签名表单,必须使用从所有祖先节点继承的名称空间创建一个新文档,其中包含文档元素。
Note that all element names are prefixed with one of the namespaces declared as attributes.
注意,所有元素名前面都有一个作为属性声明的名称空间。
When an SVG processor renders the complete document, it replaces the content from other namespaces with their SVG bindings.
当sVG处理程序呈现完整的文档时,它就用SVG绑定代替来自其他名称空间中的内容。
Suppose you want to specify where the parser looks to find schema documents with particular target namespaces.
假设需要规定解析器从哪里查找具有特定目标名称空间的模式文档。
Perhaps these arguments have convinced you of the problems with XML namespaces and their limited applicability.
可能这些讨论使您认识到了XML名称空间的问题以及它有限的适用性。
The next three lines define the various namespaces associated with this element and their respective prefixes.
下面三行定义与根元素关联的各种名称空间和相应的前缀。
PHP solves the name collision problem with its new namespaces feature.
PHP使用新的名称空间特性解决名称冲突问题。
The use of multiple namespaces with basically the same data creates some major problems for XML data binding.
结合本质上相同的数据使用多名称空间会给XML数据绑定造成一些重大问题。
Most data binding tools could only deal with these multiple namespaces by creating separate sets of classes for each namespace.
大多数数据绑定工具只能通过为每一个名称空间创建单独的类来处理这里的多个名称空间。
These simple rules allow you to dip into any number of namespaces with no need to worry about name collisions.
有了这些简单的规则,便可以使用任意数量的名称空间,而不必担心名称冲突。
For example, it is a best practice with PHP namespaces to fully qualify your namespaces within your code using with absolute references rather than relative references.
例如,php名称空间的最佳实践之一是,在代码中使用绝对引用完全限定名称空间,而不是相对引用。
If you are reticent to begin using namespaces, consider upgrading your ide and try out namespaces with a bit of help from your favorite ide.
如果您还不太愿意开始使用名称空间,可以考虑升级ide,在IDE的帮助下尝试使用名称空间。
应用推荐