Mega Code Archive

 
Categories / XML Tutorial / XML Schema
 

Creating a LocalGlobal Type for Attribute

To  create a local type, simply include the type declaration as a child of the <attribute> element:  <attribute name="title">      <simpleType>          <!-- type information -->      </simpleType>  </attribute>  Using a Global Type for Attribute You can create a global <simpleType> definition.  Within your attribute declarations, you can refer to a global type by name.  This type can be one of the built-in XML Schema datatypes. Referring to an Existing Global Attribute  <attribute ref="contacts:kind"/>