What would be the correct XML Schema 1.0 declaration for a
<notice xml:lang="en">Banana banana banana</notice>
where:
- The xml:lang attribute is compulsory
- The value "en" is fixed and compulsory
- The content of notice is simple text.
- The content of notice is fixed (as above) and compulsory?
My best (but wrong) effort is the following fragment:
<xs:element name="notice" use="required" fixed="Banana banana banana">
<xs:complexType>
<xs:simpleContent>
<xs:extension>
<xs:attribute ref="xml:lang" use="required" fixed="en"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>