XML Tutorial/XML Schema/ENTITIES — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 08:26, 26 мая 2010
The ENTITIES data type is derived from the ENTITY type.
The value space is the set of finite-, nonzero-length sequences of entities.
The lexical space is the white-space-separated list of entities.
The value of ENTITIES must match the set of unparsed entity names declared in notation elements in the schema.
<!-- schema -->
<xsd:simpleType name="imageTypes">
<xsd:restriction base="xsd:ENTITIES">
<xsd:enumeration value="jpg"/>
<xsd:enumeration value="gif"/>
<xsd:enumeration value="png"/>
</xsd:restriction>
</xsd:simpleType>
<!-- instance document -->
<gallery images="jpg gif png">Online_Brochure</gallery>