Cover Pages Logo SEARCH
Advanced Search
ABOUT
Site Map
CP RSS Channel
Contact Us
Sponsoring CP
About Our Sponsors

NEWS
Cover Stories
Articles & Papers
Press Releases

CORE STANDARDS
XML
SGML
Schemas
XSL/XSLT/XPath
XLink
XML Query
CSS
SVG

TECHNOLOGY REPORTS
XML Applications
General Apps
Government Apps
Academic Apps

EVENTS
LIBRARY
Introductions
FAQs
Bibliography
Technology and Society
Semantics
Tech Topics
Software
Related Standards
Historic

DTD changes in XML Schema from CR to PR


Date:      Wed, 21 Mar 2001 17:57:05 +0000
To:        xmlschema-dev@w3.org
From:      Robin LaFontaine <robin@monsell.co.uk>
Subject:   DTD changes in XML Schema from CR to PR

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

Source: http://lists.w3.org/Archives/Public/xmlschema-dev/2001Mar/0107.html


Prepared by Robin Cover for The XML Cover Pages archive. For schema description and references, see "XML Schemas."


Globe Image

Document URL: http://xml.coverpages.org/schemaDTDChangesCR2PR.html