<element
{any attributes with non-schema Namespace}...>
Content: (annotation?, ((simpleType | complexType)?, (unique | key | keyref)*))
:
导出类型,该元素是为了防止具有指定导出类型的元素被用于替代该元素。其值可能为:
防止通过扩展导出的元素替换该元素。
防止通过限制导出的元素替换该元素。
:防止通过替换导出的元素替换该元素。
:防止所有的类型的导出元素替换该元素。
:
:可用来替换该元素的元素的名称。该元素必须具有相同的类型后者具有从指定元素导出的类型。
类似与程序设计中的缺省值。
:
的元素。
:
的作用。
:
unqualified
id
minOccurse
的元素则自动禁止。
:
的话,则必须具有。
:
false
:
属性不能出现。
:
不能够同时出现。
元素信息:
出现次数:定义
sequence
unique
备注:
元素内的引用出现。头元素声明必须直接定义复杂类型。
:声明一个属性。
声明方式:
<attribute
{any attributes with non-schema Namespace...}>
Content: (annotation, (simpleType))
</attribute>
其中的部分属性说明:
:
一个指示符,指示如何使用该元素。可选值如下:
:
属性可选的,并且可以具备任何值,这是默认值。
:
下面的属性中。
:
)的话,则该框架中的所有元素都需要该属性。
元素信息
extension (complexContent)
simpleType
:将一组属性声明归为一组,以便为复杂类型定义将它们并为一个组。
声明方式:
<attributeGroup
{any attributes with non-schema Namespace...}>
Content: (annotation?), ((attribute | attributeGroup)*, anyAttribute?))
</attributeGroup>
元素信息:
extension (complexContent)
anyAttribute
元素中。
声明方式:
<anyAttribute
{any attributes with non-schema Namespace...}>
Content: (annotation?)
</anyAttribute>
部分属性说明如下:
:
文档的验证。
处理器不尝试验证来自指定命名空间的任何属性。
元素信息:
attributeGroup
annotation
:定义一个简单类型,它确定具有纯文本属性或者元素的值有关的信息以及对它们的约束。
声明方式:
<simpleType
{any attributes with non-schema Namespace}...>
Content: (annotation?, (restriction | list | union))
</simpleType>
元素信息
union
union
:定义一个复杂内容的元素,它确定属性集及元素内容。
声明方式:
<complexType
{any attributes with non-schema Namespace...}>
Content: (annotation?, (simpleContent | complexContent | ((group | all |
choice | sequence)?, ((attribute | attributeGroup)*, anyAttribute?))))
</complexType>
部分属性说明如下:
:
元素信息:
schema
anyAttribute
备注:
的引用。)
一个复杂类型可以包含以下元素中的一个元素且只能包含一个元素,该元素确定在复杂类型中允许的内容类型。
的属性。
的一个实例。
group | sequence | choice | all
attribute | attributeGroup
anyAttribute
元素为内容)的扩展或限制并且不包含任何元素。
声明方式:
<simpleContent
{any attributes with non-schema Namespace}...>
Content: (annotation?, (restriction | extension))
</simpleContent>
:包含对仅包含混合内容或元素的复杂类型的扩展或限制。
声明方式:
<complexContent
{any attributes with non-schema Namespace}...>
Content: (annotation?, (restriction | extension))
</complexContent>
元素信息:
complexType
annotation
。
元素集合方式元素声明:
:允许组中的元素以任意元素显示(或不显示在)在包含元素中。
声明方式:
<all
{any attributes with non-schema Namespace...}>
Content: (annotation?, element*)
</all>
:要求组中的元素以指定的顺序出现在包含元素中
声明方式:
<sequence
{any attributes with non-schema Namespace}...>
Content: (annotation?, (element | group | choice | sequence | any)*)
</sequence>
元素信息:
extension (complexContent)
sequence
:允许且仅允许选定组中包含的一个元素出现在包含元素中。
声明方式:
<choice
{any attributes with non-schema Namespace}...>
Content: (annotation?, (element | group | choice | sequence | any)*)
</choice>
元素信息:
extension (complexContent)
sequence
扩展元素说明:
内容的复杂类型,类似程序设计中的继承。
方式:
<extension
{any attributes with non-schema Namespace}...>
Content: (annotation?, ((attribute | attributeGroup)*, anyAttribute?))
</extension>
信息:
simpleContent
anyAttribute
的扩展。
声明方式:
<extension
{any attributes with non-schema Namespace}...>
Content: (annotation?, ((group | all | choice | sequence)?, ((attribute |
attributeGroup)*, anyAttribute?)))
</extension>
元素信息:
complexContent
group
约束元素列表:
定义的约束。
方式:
<restriction
{any attributes with non-schema Namespace}...>
Content: (annotation?, (simpleType?, (minExclusive | minInclusive | maxExclusive | maxInclusive | totalDigits |fractionDigits | length | minLength | maxLength | enumeration | whiteSpace | pattern)*))
</restriction>
定义的约束。
声明方式:
<restriction
{any attributes with non-schema Namespace}...>
Content: (annotation?, (simpleType?, (minExclusive | minInclusive |
maxExclusive | maxInclusive | totalDigits |fractionDigits | length |
minLength | maxLength | enumeration | whiteSpace | pattern)*)?,
((attribute | attributeGroup)*, anyAttribute?))
</restriction>
定义的约束。
声明方式:
<restriction
{any attributes with non-schema Namespace}...>
Content: (annotation?, (group | all | choice | sequence)?, ((attribute |
attributeGroup)*, anyAttribute?))
</restriction>
上一篇:轻松学习XML教程
下一篇:XSLT知识总结
