posted 23 years ago
Hi,
I do have a xml file using the xml:lang attribute:
<Text>
<Para xml:lang="en">this is some text</Para>
</Text>
The DTD for this file contained the following, which validates my XML file correctly:
<!ELEMENT Text (Para+) >
<!ELEMENT Para (#PCDATA) >
<!ATTLIST Para xml:lang (en | de | ko) >
Now I want to change my DTD in a XML Schema:
...
<xsd:complexType name="ParaType" mixed="true">
<xsd:attribute name="xml:lang" default="en">
<xsd:simpleType>
<xsd:restriction base="xsd:NMTOKEN">
<xsd:enumeration value="en"/>
<xsd:enumeration value="de"/>
<xsd:enumeration value="ko"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>