5.5 XML Schema 的开发文档
<!-- This complexTypeallows you to describe a person’s name broken down by first, middle and last parts of the name. You can also specify a greeting by including the title attribute. -->
<complexTypeame=”ameType”>
<!-- The ameGroupis a global group defined in this XML Schema. -->
<group ref=”target:NameGroup”/>
<attribute name=”title” type=”string”/>
</complexType><?xml version=“1.0”?>
<schema xmlns=“http://www.w3.org/2001/XMLSchema” xmlns:target=“http://www.example.com/name” xmlns:doc=“http://www.w3.org/documentation” targetNamespace=“http://www.example.com/name” elementFormDefault=“qualified”>
<group name=“ameGroup”>
<sequence>
<element name=“first” type=“string” minOccurs=“1” maxOccurs=“unbounded”/>
<element name=“middle” type=“string” minOccurs=“0” maxOccurs=“1”/>
<element name=“last” type=“string”/>
</sequence>
</group>
<complexTypeame=“ameType” doc:comments=“This complexTypeallows you to describe a person’s name broken down by first, middle and last parts of the name. You can also specify a greeting by including the title attribute.”>
<group ref=“target:NameGroup” doc:comments=“The ameGroupis a global group defined in this XML Schema.”/>
<attribute name=“title” type=“string”/>
</complexType>
<element name=“name” type=“target:NameType”/>
</schema>Last updated