The main drawback of local declarations is that they prevent reuse.
局部声明的主要缺点是它们不能重复使用。
Listing 2, on the other hand, USES local declarations as much as possible.
另一方面,清单2尽可能地使用了局部声明。
Local declarations, on the other hand, cause no conflict if they have different contexts.
另一方面,局部声明如果是在不同的上下文中,则不会产生冲突。
With Listing 2 (local declarations), it is impossible to reuse the movie element in another context.
在清单2中(使用局部声明),不能在另一个上下文中重复使用movie元素。
Another benefit of local declarations is that they clearly identify the possible roots in a document.
局部声明的另一项好处是它们明确地标识了文档中可能的根。
Global declarations are not new — they were originally introduced with DTDs — but local declarations are unique to XML Schema.
全局声明并不是新东西——DTD中就已经引入它们了——但是局部声明是XML Schema所独有的。
There are no differences in the declarations of local variables, cursors, temporary tables, but on both platforms the order of declaration is important.
在局部变量、游标和临时表的声明方面,两种平台没什么差别,但在这两种平台上,声明的顺序却很重要。
Although not covered in this tip, you can also use type definitions in association with global and local element declarations to improve the readability of your schemas.
尽管在本技巧中没有讨论,但是您还可以在全局和本地声明中使用类型定义以改进模式的可读性。
Key things to note here are the thread local storage declarations and the instance variables used to hold the potential source of the username and password.
这里需要注意的关键内容是用于存放用户名和密码的可能来源的线程本地存储声明和实例变量。
The mechanism of XML namespaces has several moving parts: local names, namespace URIs, prefixes, and declarations.
XML名称空间机制包括几个活动的部分:本地名、名称空间uri、前缀和声明。
Assuming that movie is a self-contained element, then Listing 4 is a better schema with a good mix of local and global declarations.
假定movie是一个自包含的元素,那么清单4是一种更好的模式,它很好地结合了局部和全局声明。
Declarations that appear directly under the xs: schema element have a global scope while other declarations have a local scope.
直接出现在xs:schema元素下面的声明具有全局范围,而其他声明具有局部范围。
Global elements are element declarations that appear as children of the schema element in an XML schema document, whereas local elements are not.
全局元素是XML模式文档中作为模式元素的子元素来声明的元素,而局部元素却不是。
You'll also want to turn on the new Option infer feature. This allows the compiler to infer local variable type declarations by evaluating the right-hand side of the expression.
你也希望根据那些特性打开新的推断特性的选项,这允许编译器通过估计右值表达式去推测出局部变量的申明类型。
Also as the name says, implicitly typed local variable, you cannot use var for field declaration or constant variables, therefore following declarations will both produce a compiler error.
故名思意,“隐式类型局部变量”将无法用于域变量或常量的声明中,否则将导致编译错误。
You do have to indent all declarations in local modules.
但必须缩进局部模块中的所有声明。
There are two types of module declarations, depending on whether the whole file is included in the module: a top-level module declaration and a local module declaration.
根据模块中是否包括整个文件,有两种类型的模块声明:顶级模块声明和局部模块声明。
This warning indicates that two declarations have the same name at local scope.
此警告意味着在局部范围内有两个同名的声明。
In a local module declaration, only the declarations that are indented under that module declaration are part of the module.
在一个局部模块声明中,只有缩进到该模块声明之下的声明才属于模块的一部分。
In a local module declaration, only the declarations that are indented under that module declaration are part of the module.
在一个局部模块声明中,只有缩进到该模块声明之下的声明才属于模块的一部分。
应用推荐