W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2001

DTD changes in XML Schema from CR to PR

From: Robin LaFontaine <robin@monsell.co.uk>
Date: Wed, 21 Mar 2001 17:57:05 +0000
Message-Id: <v04210102b6de8da62218@[158.152.20.130]>
To: xmlschema-dev@w3.org
Some of you may be interested in the changes in the DTD between 
October 2000 Candidate Recommendation (CR) and the recent Proposed 
Recommendation (PR). These are listed below. No guarantees of course 
- let me know if you see anything wrong.

If I had the new PR XML Schema in the old CR format or vice versa I 
could let you know the changes in the schemas themselves (if someone 
has this, please send it to me). We should be releasing an XML Schema 
comparator very soon - meanwhile if you need a general XML file 
comparison program check out our web site http://www.deltaxml.com .

If anyone wants an expanded version of the XML Schema DTD (CR or PR), 
i.e. all entities expanded, attributes grouped together etc., let me 
know.

Regards,
Robin La Fontaine

COMPARISON OF 'xmlschemaCR.dtd' and 'XMLSchemaPR.dtd'

There are 5 elements deleted:
   duration
   encoding
   period
   precision
   scale

There are 2 elements added:
   fractionDigits
   totalDigits

There are 40 common elements (which will be compared):
   all
   annotation
   any
   anyAttribute
   appinfo
   attribute
   attributeGroup
   choice
   complexContent
   complexType
   documentation
   element
   enumeration
   extension
   field
   group
   import
   include
   key
   keyref
   length
   list
   maxExclusive
   maxInclusive
   maxLength
   minExclusive
   minInclusive
   minLength
   notation
   pattern
   redefine
   restriction
   schema
   selector
   sequence
   simpleContent
   simpleType
   union
   unique
   whiteSpace

Common elements will now be compared, differences detected:

Attribute difference detected:
File 'xmlschemaCR.dtd':
<!ATTLIST all
       id ID #IMPLIED
       maxOccurs  (1) #FIXED "1"
       minOccurs  (1) #FIXED "1">
File 'XMLSchemaPR.dtd':
<!ATTLIST all
       id ID #IMPLIED
       maxOccurs  (1) #IMPLIED
       minOccurs  (1) #IMPLIED >

Attribute difference detected:
File 'xmlschemaCR.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 >
File 'XMLSchemaPR.dtd':
<!ATTLIST attribute
       default CDATA #IMPLIED
       fixed CDATA #IMPLIED
       form  (qualified | unqualified) #IMPLIED
       id ID #IMPLIED
       name NMTOKEN #IMPLIED
       ref NMTOKEN #IMPLIED
       type NMTOKEN #IMPLIED
       use  (prohibited | optional | required) #IMPLIED >

Attribute difference detected:
File 'xmlschemaCR.dtd':
<!ATTLIST choice
       id ID #IMPLIED
       maxOccurs CDATA "1"
       minOccurs NMTOKEN "1">
File 'XMLSchemaPR.dtd':
<!ATTLIST choice
       id ID #IMPLIED
       maxOccurs CDATA #IMPLIED
       minOccurs NMTOKEN #IMPLIED >

Attribute difference detected:
File 'xmlschemaCR.dtd':
<!ATTLIST complexType
       abstract  (true | false) "false"
       block CDATA ""
       final CDATA #IMPLIED
       id ID #IMPLIED
       mixed  (true | false) "false"
       name NMTOKEN #IMPLIED >
File 'XMLSchemaPR.dtd':
<!ATTLIST complexType
       abstract  (true | false) #IMPLIED
       block CDATA #IMPLIED
       final CDATA #IMPLIED
       id ID #IMPLIED
       mixed  (true | false) "false"
       name NMTOKEN #IMPLIED >

Attribute difference detected:
File 'xmlschemaCR.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 'XMLSchemaPR.dtd':
<!ATTLIST element
       abstract  (true | false) #IMPLIED
       block CDATA #IMPLIED
       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
       nillable  (true | false) #IMPLIED
       ref NMTOKEN #IMPLIED
       substitutionGroup NMTOKEN #IMPLIED
       type NMTOKEN #IMPLIED >

File 'xmlschemaCR.dtd':
<!ELEMENT restriction
  ((annotation)?,
   ((all | choice | sequence | group)? |
    ((simpleType)?,
     ((minInclusive | minExclusive) |
      (maxInclusive | maxExclusive) | precision | scale | pattern | 
enumeration | whiteSpace | length | maxLength | minLength | encoding 
| period | duration)*)),
   ((attribute | attributeGroup)*,
    (anyAttribute)?))>
File 'XMLSchemaPR.dtd':
<!ELEMENT restriction
  ((annotation)?,
   ((all | choice | sequence | group)? |
    ((simpleType)?,
     ((minInclusive | minExclusive) |
      (maxInclusive | maxExclusive) | totalDigits | fractionDigits | 
pattern | enumeration | whiteSpace | length | maxLength | 
minLength)*)),
   ((attribute | attributeGroup)*,
    (anyAttribute)?))>

Attribute difference detected:
File 'xmlschemaCR.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 'XMLSchemaPR.dtd':
<!ATTLIST schema
       attributeFormDefault  (qualified | unqualified) "unqualified"
       blockDefault CDATA ""
       elementFormDefault  (qualified | unqualified) "unqualified"
       finalDefault CDATA ""
       id ID #IMPLIED
       targetNamespace CDATA #IMPLIED
       version CDATA #IMPLIED
       xml:lang CDATA #IMPLIED
       xmlns CDATA #FIXED "http://www.w3.org/2001/XMLSchema"
       xmlns CDATA #IMPLIED >

Attribute difference detected:
File 'xmlschemaCR.dtd':
<!ATTLIST sequence
       id ID #IMPLIED
       maxOccurs CDATA "1"
       minOccurs NMTOKEN "1">
File 'XMLSchemaPR.dtd':
<!ATTLIST sequence
       id ID #IMPLIED
       maxOccurs CDATA #IMPLIED
       minOccurs NMTOKEN #IMPLIED >

Finished comparing common elements, 39 are equal.

-- -----------------------------------------------------------------
Robin La Fontaine, Monsell EDM Ltd
(XML file comparison, 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.deltaxml.com
Received on Wednesday, 21 March 2001 12:56:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:20 GMT