以下是顶级复杂类型定义。
否则,它们就已经包含在复杂类型定义中了。
Otherwise, they are already included in the complex type definitions.
无需在每个复杂类型定义中显式地引用属性组。
There is no need to explicitly reference the attribute group in either complex type definition.
根据需要构建元素定义,以引用单个复杂类型定义。
Build element definitions as necessary to reference a single complex type definition.
元素定义与其复杂类型定义使用同一个目标命名空间。
Use element definitions with the same target namespace as their complex type definition.
上面这个复杂类型定义的问题可以用清单2中的实例文档来演示。
The issue with the above complex type definition can be illustrated with the instance document in Listing 2.
另一方面,复杂类型定义允许将简单类型排列为结构。
Complex type definitions, on the other hand, allow to arrange simple types into structures.
在清单16中,复杂类型定义包含一个由4个显式定义的子元素组成的序列。
In Listing 16, the complex type definition contains a sequence of four child elements that are explicitly defined.
这个序列包含对复杂类型定义的所有断言,以及复杂类型的祖先的所有断言。
This sequence is comprised of all the assertions defined on the complex type as well as all assertions of the complex type's ancestors.
该元素声明和复杂类型定义已经从单独的XForms - Schema . xsd文件中提取出来了。
This element declaration and complex type definition have been extracted from the single XForms-Schema.xsd file.
这使您可以在XMLSchema中创建复杂类型定义,而不用描述复杂类型的某些部分的具体结构。
This lets you create complex type definitions in an XML Schema without describing what the exact structure of certain parts of the complex type is.
清单19演示了,在XMLSchema 1.0中通过引用同一属性组,很多复杂类型定义如何定义同一组属性。
Listing 19 illustrates how, in XML Schema 1.0, many complex type definitions can define the same set of attributes by referring to the same attribute group.
以下是顶级匿名复杂类型定义,与WebSphereInterchangeServer 4 .x类似。
This is a top level anonymous complex type definition, similar to WebSphere Interchange Server 4.x.
因此,清单1中的复杂类型定义在XMLSchema 1.1中变得有效,因为元素声明和通配符之间的不确定性已不复存在。
As a consequence, the complex type definition in Listing 1 becomes valid in XML Schema 1.1 because the ambiguity between the element declaration and the wildcard no longer exists.
类似地,重定义已有的复杂类型定义pType以添加any元素,后者对XForms名称空间提供名称空间限制。
Similarly, you redefine the existing complex type definition pType to add the any element, which supplies the namespace restriction to the XForms namespace.
和复杂类型定义一样,断言是一组被指定为简单类型定义facet的一组有序的xs:assertion元素序列。
As with complex type definition, the assertions are an ordered sequence of xs: assertion elements specified as facets in the simple type definition.
复杂类型定义支持通过扩展和限制进行派生,这就允许以一种映射到面向对象类层次结构的方式定义复杂类型层次结构。
Complex type definitions support derivation by extension and restriction, allowing you to define complex type hierarchies in a way that maps nicely to 00 class hierarchies.
也可以在扩展一个类型时添加一些属性,如 清单11 所示,其中,ParaType复杂类型定义被扩展为为label= 添加一个属性。
You can also add attributes when you extend a type, as in Listing 11, where the ParaType complex type definition is extended to add an attribute for label=.
该属性组定义将被自动包含在模式文档中定义的每个复杂类型中。
This attribute group definition will automatically be included in each complex type defined in the schema document.
生成的构件包含JAX - RPC兼容的存根、封装了存根的代理(为开发人员提供方便)以及一组类,这些类与WSDL模式中定义的复杂类型相对应。
The artifacts include a JAX-RPC compliant stub, a proxy that wraps the stub for developer convenience, and a set of classes that correspond to the complex types defined in the WSDL schema.
在XML模式文件(而非wsdl定义)中定义复杂类型,以创建类型库概念。
Define complex types in XML Schema files, not WSDL definitions, to create a type library concept.
稍后,我们将在在运行时读取XML部分讨论将业务对象定义为顶级复杂类型的结果。
Later, in the Reading XML at runtime section, we discuss the ramifications of having a business object defined as a top level complex type.
我们引用的是在使用复杂类型的模式中定义的业务对象,即定义业务对象部分中的第一个定义。
We are referring to business objects defined in a schema using complex types, the first definition from the Defining business objects section.
在使用简单内容定义复杂类型时,可以指定两种类型的断言。
When defining a complex type with simple content, you can specify two types of assertions.
因此,按照前面提到的最佳实践方式,可将业务对象定义为顶级复杂类型。
Thus, from the best practices mentioned earlier, you can have a business object defined as a top level complex type.
如清单4所示,为单个自定义复杂类型数组生成的XML描述很长。
As shown in Listing 4, long XML descriptions are generated for a simple array of a self-defined complex type.
如何定义和扩展复杂类型?
定义抽象复杂类型和抽象元素的时机与方法。
When and how to define abstract complex types and abstract elements.
清单9:用全局简单类型定义的复杂类型。
清单9:用全局简单类型定义的复杂类型。
应用推荐