slide 54

Readability Illustrated

(In its most extreme form)

Example in DTD Syntax

<!-- DTD --> <!ELEMENT PARA (#PCDATA | FOOTNOTE | I | B |
          DATE)* > <!ELEMENT FOOTNOTE (#PCDATA | BIBL)* > <!ELEMENT BIBL
          (#PCDATA) > <!ELEMENT I (#PCDATA) > <!ELEMENT B (#PCDATA)
          > <!ELEMENT DATE (#PCDATA) >

Same example in XML Schema Syntax

<xsd:element name="PARA"> <xsd:complexType
          mixed="true"> <xsd:choice minOccurs="0" maxOccurs="unbounded">
          <xsd:element name="FOOTNOTE"> <xsd:complexType mixed="true">
          <xsd:choice minOccurs="0" maxOccurs="unbounded"> <xsd:element
          name="BIBL" type="xsd:string"/> </xsd:choice>
          </xsd:complexType> </xsd:element> <xsd:element name="I"
          type="xsd:string"/> <xsd:element name="B" type="xsd:string"/>
          <xsd:element name="DATE" type="xsd:date"/> </xsd:choice>
          </xsd:complexType> </xsd:element>