untitled

(ff) #1
383

in the molecule schema to

<attribute name=’elementType’
type=’elementTypeType’ use=’optional’/>

whereelementTypeTypeis defined by






...




ANSWER TO
EXERCISE2.3
One possible answer uses an enumeration of cases:
<xsd:simpleType name="DNABase">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="A"/>
<xsd:enumeration value="C"/>
<xsd:enumeration value="G"/>
<xsd:enumeration value="T"/>
</xsd:restriction>
</xsd:simpleType>

Another answer uses a pattern restriction:






ANSWER TO
EXERCISE2.4
A DNA sequence could be defined using a list of bases as in
Free download pdf