W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2000

XML Schema -> DTD?

From: Michael Hübner <Michael.Huebner@gft-systems.de>
Date: Wed, 20 Sep 2000 12:49:49 +0200
Message-ID: <F1BEF718D093D11199210060080B685319928A@server2.gft-systems.de>
To: "'www-xml-schema-comments@w3.org'" <www-xml-schema-comments@w3.org>
Wasn't it a design goal to allow all XML Schema definitions to be
translated
to (less restrictive) DTD definitions?

So what is the equivalent DTD for the following schema?

<xsd:element name="foo">
  <xsd:complexType>
    <xsd:element name="myTag" type="a"/>
  </xsd:complexType>
</xsd:element>

<xsd:element name="bar">
  <xsd:complexType>
    <xsd:element name="myTag" type="b"/>
  </xsd:complexType>
</xsd:element>

<xsd:complexType name="a">
  <xsd:attribute name="key" type="xsd:IDREF"/>
</xsd:complexType>

<xsd:complexType name="b">
  <xsd:attribute name="key" type="xsd:ID"/>
</xsd:complexType>
Received on Wednesday, 20 September 2000 06:49:53 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:49:53 UTC