XML Tutorial/XML Schema/ID — различия между версиями

Материал из Web эксперт
Перейти к: навигация, поиск
 
м (1 версия)
 
(нет различий)

Текущая версия на 11:26, 26 мая 2010

The ID datatype is derived from the NCName type.

   <source lang="xml">

<xsd:element name="bank">

 <xsd:complexType>
  <xsd:complexContent>
   <xsd:extension base="xsd:anyType">
   <xsd:attribute name="degree" type="xsd:ID"/>
   </xsd:extension>
  </xsd:complexContent>
 </xsd:complexType>

</xsd:element>

<bank branch="412x">Northern</bank></source>