W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2000

Diffs between April and Sept XML Schema DTDs

From: Robin LaFontaine <robin@monsell.co.uk>
Date: Fri, 27 Oct 2000 11:21:37 +0100
Message-Id: <v04210103b61f066a0b9a@[158.152.20.130]>
To: <xmlschema-dev@w3.org>
For part of our work we had to find the diffs between the April and 
Sept versions of the DTDs for XML Schema. This may be of interest to 
others so I am posting it. No guarantees of course, and if you spot 
any errors please let me know!

All the parameter entities have been expanded for this comparison, 
and ATTLISTs merged. (If anyone wants an expanded XML Schema DTD in 
alphabetical order, I could post that also.)

Robin

COMPARISON OF 'xmlschema-7apr00-all.dtd' and 'xmlschema-22sept00-all.dtd'

There are 0 elements deleted:

There are 7 elements added:
   complexContent
   extension
   list
   redefine
   restriction
   simpleContent
   union

There are 37 common elements (which will be compared):
   all
   annotation
   any
   anyAttribute
   appinfo
   attribute
   attributeGroup
   choice
   complexType
   documentation
   duration
   element
   encoding
   enumeration
   field
   group
   import
   include
   key
   keyref
   length
   maxExclusive
   maxInclusive
   maxLength
   minExclusive
   minInclusive
   minLength
   notation
   pattern
   period
   precision
   scale
   schema
   selector
   sequence
   simpleType
   unique

Common elements will now be compared, differences detected:

File 'xmlschema-7apr00-all.dtd':
<!ELEMENT all
  ((annotation)?,
   (element | group | choice | sequence | any)*)>
File 'xmlschema-22sept00-all.dtd':
<!ELEMENT all
  ((annotation)?,
   (element)*)>

Attribute difference detected:
File 'xmlschema-7apr00-all.dtd':
<!ATTLIST all
       id ID #IMPLIED
       maxOccurs CDATA #IMPLIED
       minOccurs NMTOKEN "1">
File 'xmlschema-22sept00-all.dtd':
<!ATTLIST all
       id ID #IMPLIED
       maxOccurs  (0 | 1) "1"
       minOccurs  (0 | 1) "1">

Attribute difference detected:
File 'xmlschema-7apr00-all.dtd':
<!ATTLIST any
       maxOccurs CDATA #IMPLIED
       minOccurs NMTOKEN "1"
       namespace CDATA "##any"
       processContents  (skip | lax | strict) "strict">
File 'xmlschema-22sept00-all.dtd':
<!ATTLIST any
       maxOccurs CDATA "1"
       minOccurs NMTOKEN "1"
       namespace CDATA "##any"
       processContents  (skip | lax | strict) "strict">

Attribute difference detected:
File 'xmlschema-7apr00-all.dtd':
<!ATTLIST attribute
       form  (qualified | unqualified) #IMPLIED
       id ID #IMPLIED
       name NMTOKEN #IMPLIED
       ref CDATA #IMPLIED
       type CDATA #IMPLIED
       use  (prohibited | optional | required | fixed | default) #IMPLIED
       value CDATA #IMPLIED >
File 'xmlschema-22sept00-all.dtd':
<!ATTLIST attribute
       form  (qualified | unqualified) #IMPLIED
       id ID #IMPLIED
       name NMTOKEN #IMPLIED
       ref NMTOKEN #IMPLIED
       type NMTOKEN #IMPLIED
       use  (prohibited | optional | required | fixed | default) #IMPLIED
       value CDATA #IMPLIED >

Attribute difference detected:
File 'xmlschema-7apr00-all.dtd':
<!ATTLIST attributeGroup
       id ID #IMPLIED
       name NMTOKEN #IMPLIED
       ref CDATA #IMPLIED >
File 'xmlschema-22sept00-all.dtd':
<!ATTLIST attributeGroup
       id ID #IMPLIED
       name NMTOKEN #IMPLIED
       ref NMTOKEN #IMPLIED >

Attribute difference detected:
File 'xmlschema-7apr00-all.dtd':
<!ATTLIST choice
       id ID #IMPLIED
       maxOccurs CDATA #IMPLIED
       minOccurs NMTOKEN "1">
File 'xmlschema-22sept00-all.dtd':
<!ATTLIST choice
       id ID #IMPLIED
       maxOccurs CDATA "1"
       minOccurs NMTOKEN "1">

File 'xmlschema-7apr00-all.dtd':
<!ELEMENT complexType
  ((annotation)?,
   (((minInclusive | minExclusive) |
     (maxInclusive | maxExclusive) | precision | scale | pattern | 
enumeration | length | maxLength | minLength | encoding | period | 
duration)* |
    ((element | all | choice | sequence | group | any)*,
     (attribute | attributeGroup)*,
     (anyAttribute)?)))>
File 'xmlschema-22sept00-all.dtd':
<!ELEMENT complexType
  ((annotation)?,
   (simpleContent | complexContent |
    ((all | choice | sequence | group)?,
     ((attribute | attributeGroup)*,
      (anyAttribute)?))))>

Attribute difference detected:
File 'xmlschema-7apr00-all.dtd':
<!ATTLIST complexType
       abstract  (true | false) "false"
       base CDATA #IMPLIED
       block CDATA ""
       content  (textOnly | mixed | elementOnly | empty) #IMPLIED
       derivedBy  (extension | restriction) #IMPLIED
       final CDATA #IMPLIED
       id ID #IMPLIED
       name NMTOKEN #IMPLIED >
File 'xmlschema-22sept00-all.dtd':
<!ATTLIST complexType
       abstract  (true | false) "false"
       block CDATA ""
       final CDATA #IMPLIED
       id ID #IMPLIED
       mixed  (true | false) "false"
       name NMTOKEN #IMPLIED >

Attribute difference detected:
File 'xmlschema-7apr00-all.dtd':
<!ATTLIST element
       abstract  (true | false) "false"
       block CDATA ""
       default CDATA #IMPLIED
       equivClass CDATA #IMPLIED
       final CDATA #IMPLIED
       fixed CDATA #IMPLIED
       form  (qualified | unqualified) #IMPLIED
       id ID #IMPLIED
       maxOccurs CDATA #IMPLIED
       minOccurs NMTOKEN #IMPLIED
       name NMTOKEN #IMPLIED
       nullable  (true | false) "false"
       ref CDATA #IMPLIED
       type CDATA #IMPLIED >
File 'xmlschema-22sept00-all.dtd':
<!ATTLIST element
       abstract  (true | false) "false"
       block CDATA ""
       default CDATA #IMPLIED
       final CDATA #IMPLIED
       fixed CDATA #IMPLIED
       form  (qualified | unqualified) #IMPLIED
       id ID #IMPLIED
       maxOccurs CDATA #IMPLIED
       minOccurs NMTOKEN #IMPLIED
       name NMTOKEN #IMPLIED
       nullable  (true | false) "false"
       ref NMTOKEN #IMPLIED
       substitutionGroup NMTOKEN #IMPLIED
       type NMTOKEN #IMPLIED >

File 'xmlschema-7apr00-all.dtd':
<!ELEMENT field
  (#PCDATA)>
File 'xmlschema-22sept00-all.dtd':
<!ELEMENT field
  (annotation)?>

Attribute difference detected:
File 'xmlschema-7apr00-all.dtd':
File 'xmlschema-22sept00-all.dtd':
<!ATTLIST field
       xpath CDATA #REQUIRED >

File 'xmlschema-7apr00-all.dtd':
<!ELEMENT group
  (all | choice | sequence)?>
File 'xmlschema-22sept00-all.dtd':
<!ELEMENT group
  ((annotation)?,
   (all | choice | sequence)?)>

Attribute difference detected:
File 'xmlschema-7apr00-all.dtd':
<!ATTLIST group
       id ID #IMPLIED
       maxOccurs CDATA #IMPLIED
       minOccurs NMTOKEN #IMPLIED
       name NMTOKEN #IMPLIED
       ref CDATA #IMPLIED >
File 'xmlschema-22sept00-all.dtd':
<!ATTLIST group
       id ID #IMPLIED
       maxOccurs CDATA #IMPLIED
       minOccurs NMTOKEN #IMPLIED
       name NMTOKEN #IMPLIED
       ref NMTOKEN #IMPLIED >

Attribute difference detected:
File 'xmlschema-7apr00-all.dtd':
<!ATTLIST keyref
       id ID #IMPLIED
       name NMTOKEN #REQUIRED
       refer CDATA #REQUIRED >
File 'xmlschema-22sept00-all.dtd':
<!ATTLIST keyref
       id ID #IMPLIED
       name NMTOKEN #REQUIRED
       refer NMTOKEN #REQUIRED >

File 'xmlschema-7apr00-all.dtd':
<!ELEMENT schema
  ((include | import | annotation)*,
   (simpleType | complexType | element | attribute | attributeGroup | 
group | notation),
   (annotation | simpleType | complexType | element | attribute | 
attributeGroup | group | notation)*)>
File 'xmlschema-22sept00-all.dtd':
<!ELEMENT schema
  ((include | import | redefine | annotation)*,
   ((simpleType | complexType | element | attribute | attributeGroup | 
group | notation),
    (annotation)*)*)>

Attribute difference detected:
File 'xmlschema-7apr00-all.dtd':
<!ATTLIST schema
       attributeFormDefault  (qualified | unqualified) "unqualified"
       blockDefault CDATA ""
       elementFormDefault  (qualified | unqualified) "unqualified"
       finalDefault CDATA ""
       id ID #IMPLIED
       targetNamespace CDATA #IMPLIED
       version CDATA #IMPLIED
       xmlns CDATA #FIXED "http://www.w3.org/1999/XMLSchema">
File 'xmlschema-22sept00-all.dtd':
<!ATTLIST schema
       attributeFormDefault  (qualified | unqualified) "unqualified"
       blockDefault CDATA ""
       elementFormDefault  (qualified | unqualified) "unqualified"
       finalDefault CDATA ""
       id ID #IMPLIED
       targetNamespace CDATA #IMPLIED
       version CDATA #IMPLIED
       xmlns CDATA #FIXED "http://www.w3.org/2000/10/XMLSchema">

File 'xmlschema-7apr00-all.dtd':
<!ELEMENT selector
  (#PCDATA)>
File 'xmlschema-22sept00-all.dtd':
<!ELEMENT selector
  (annotation)?>

Attribute difference detected:
File 'xmlschema-7apr00-all.dtd':
File 'xmlschema-22sept00-all.dtd':
<!ATTLIST selector
       xpath CDATA #REQUIRED >

Attribute difference detected:
File 'xmlschema-7apr00-all.dtd':
<!ATTLIST sequence
       id ID #IMPLIED
       maxOccurs CDATA #IMPLIED
       minOccurs NMTOKEN "1">
File 'xmlschema-22sept00-all.dtd':
<!ATTLIST sequence
       id ID #IMPLIED
       maxOccurs CDATA "1"
       minOccurs NMTOKEN "1">

File 'xmlschema-7apr00-all.dtd':
<!ELEMENT simpleType
  ((annotation)?,
   ((minInclusive | minExclusive) |
    (maxInclusive | maxExclusive) | precision | scale | pattern | 
enumeration | length | maxLength | minLength | encoding | period | 
duration)*)>
File 'xmlschema-22sept00-all.dtd':
<!ELEMENT simpleType
  ((annotation)?,
   (restriction | list | union))>

Attribute difference detected:
File 'xmlschema-7apr00-all.dtd':
<!ATTLIST simpleType
       base CDATA #REQUIRED
       name NMTOKEN #IMPLIED >
File 'xmlschema-22sept00-all.dtd':
<!ATTLIST simpleType
       name NMTOKEN #IMPLIED >

Finished comparing common elements, 30 are equal.

-- -----------------------------------------------------------------
Robin La Fontaine, Monsell EDM Ltd
(Engineering data exchange and management using XML, R&D Project Management)
Tel: +44 1684 592 144 Fax: +44 1684 594 504
Email: robin@monsell.co.uk       http://www.monsell.co.uk
Received on Friday, 27 October 2000 06:18:01 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:14:47 UTC