Information Technology Reference
In-Depth Information
User-Deined Data Type
User can define their own data type by definion <type: “xxx”>; xxx is not a primi-
tive data type. The following is an example:
<xs:element name=“staff”>
<xs:complexType>
<xs:sequence>
<xs:element name=“staff_name” type=“name”/>
<xs:element name=“post” type=“xs:string”/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name=“name”>
<xs:sequence>
<xs:element name=“firstname” type=“xs:string”/>
<xs:element name=“lastname" type=“xs:string”/>
</xs:sequence>
</xs:complexType>
Extension
Extension can be used for defining Generalization or Isa constraint.
The following is an example:
[VHOHPHQWQDPH ³E´W\SH ³EBW\SH´!
[VFRPSOH[7\SHQDPH ³EBW\SH´!
[VFRPSOH[&RQWHQW!
[VH[WHQVLRQEDVH ³D´!
[VFRPSOH[&RQWHQW!
[VFRPSOH[7\SH!
[VFRPSOH[7\SHQDPH ³D´!
[VVHTXHQFH!
[VHOHPHQWQDPH ³DBQDPH´W\SH ³[VVWULQJ´!
[VVHTXHQFH!
[VFRPSOH[7\SH!
Search WWH ::




Custom Search