Hallo Martin,
Ich hab ein Attribute, welches eine Enumeration hat in der feste Werte
vorgegeben sind. Ich hätte jetzt gerne, dass man dort diese Werte eingeben
kann ODER irgendwas.
Ohne selbst jemals irgendwas mit XML Schema gemacht zu haben, wäre mein Tipp, dass folgendes funktionieren müsste:
<xs:attribute name="mtype" use="required">
xs:simpleType
xs:union
xs:simpleType
<xs:restriction base="xs:string">
<xs:enumeration value="SYS"/>
<xs:enumeration value="DIA"/>
<xs:enumeration value="POULSE"/>
<xs:enumeration value="HEIGHT"/>
<xs:enumeration value="WEIGHT"/>
</xs:restriction>
</xs:simpleType>
xs:simpleType
<xs:restriction base="xs:string" />
</xs:simpleType>
</xs:union>
</xs:simpleType>
</xs:attribute>
Viele Grüße,
Christian