<?xml version="1.0"?> | |
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" | |
> | |
<!-- | |
base='string', pattern='ab|(d))', value='', type='error', RULE='2,3,4,5,6,7,8,9' | |
--> | |
<xsd:element name="doc"> | |
<xsd:complexType> | |
<xsd:choice> | |
<xsd:element name="elem" type="Regex" minOccurs="1" maxOccurs="unbounded"/> | |
</xsd:choice> | |
</xsd:complexType> | |
</xsd:element> | |
<xsd:complexType name="Regex"> | |
<xsd:attribute name="att"> | |
<xsd:simpleType> | |
<xsd:restriction base="xsd:string"> | |
<xsd:pattern value="ab|(d))"/> | |
</xsd:restriction> | |
</xsd:simpleType> | |
</xsd:attribute> | |
</xsd:complexType> | |
</xsd:schema> |