512427
512427
        DTD for XML Schemas: Part 2: Datatypes
512427
        $Id: datatypes.dtd,v 1.23 2001/03/16 17:36:30 ht Exp $
512427
        Note this DTD is NOT normative, or even definitive. - - the
512427
        prose copy in the datatypes REC is the definitive version
512427
        (which shouldn't differ from this one except for this comment
512427
        and entity expansions, but just in case)
512427
  -->
512427
512427
512427
        This DTD cannot be used on its own, it is intended
512427
        only for incorporation in XMLSchema.dtd, q.v.
512427
  -->
512427
512427
512427
512427
512427
512427
512427
512427
512427
512427
512427
512427
512427
512427
512427
512427
512427
512427
512427
512427
512427
        Customisation entities for the ATTLIST of each element
512427
        type. Define one of these if your schema takes advantage
512427
        of the anyAttribute='##other' in the schema for schemas
512427
  -->
512427
512427
512427
512427
512427
512427
512427
512427
512427
512427
512427
512427
512427
512427
512427
512427
512427
512427
512427
512427
        types -->
512427
512427
512427
512427
512427
512427
512427
512427
512427
512427
        #all or space-separated list drawn from derivationChoice
512427
  -->
512427
512427
512427
        Note that the use of 'facet' below is less restrictive
512427
        than is really intended:  There should in fact be no
512427
        more than one of each of minInclusive, minExclusive,
512427
        maxInclusive, maxExclusive, totalDigits, fractionDigits,
512427
        length, maxLength, minLength within datatype,
512427
        and the min- and max- variants of Inclusive and Exclusive
512427
        are mutually exclusive. On the other hand,  pattern and
512427
        enumeration may repeat.
512427
  -->
512427
512427
512427
512427
512427
512427
512427
   "%pattern; | %enumeration; | %whiteSpace; | %length; |
512427
   %maxLength; | %minLength;">
512427
512427
512427
        "value CDATA #REQUIRED
512427
        id ID #IMPLIED">
512427
512427
512427
512427
        ((%annotation;)?, (%restriction; | %list; | %union;))>
512427
512427
    name      %NCName; #IMPLIED
512427
    final     %simpleDerivationSet; #IMPLIED
512427
    id        ID       #IMPLIED
512427
    %simpleTypeAttrs;>
512427
512427
512427
                         (%restriction1; |
512427
                          ((%simpleType;)?,(%facet;)*)),
512427
                         (%attrDecls;))>
512427
512427
    base      %QName;                  #IMPLIED
512427
    id        ID       #IMPLIED
512427
    %restrictionAttrs;>
512427
512427
        base and simpleType child are mutually exclusive,
512427
        one is required.
512427
512427
        restriction is shared between simpleType and
512427
        simpleContent and complexContent (in XMLSchema.xsd).
512427
        restriction1 is for the latter cases, when this
512427
        is restricting a complex type, as is attrDecls.
512427
  -->
512427
512427
512427
    itemType      %QName;             #IMPLIED
512427
    id        ID       #IMPLIED
512427
    %listAttrs;>
512427
512427
        itemType and simpleType child are mutually exclusive,
512427
        one is required
512427
  -->
512427
512427
512427
    id            ID       #IMPLIED
512427
    memberTypes   %QNames;            #IMPLIED
512427
    %unionAttrs;>
512427
512427
        At least one item in memberTypes or one simpleType
512427
        child is required
512427
  -->
512427
512427
512427
512427
        %facetAttr;
512427
        %fixedAttr;
512427
        %maxExclusiveAttrs;>
512427
512427
512427
        %facetAttr;
512427
        %fixedAttr;
512427
        %minExclusiveAttrs;>
512427
512427
512427
512427
        %facetAttr;
512427
        %fixedAttr;
512427
        %maxInclusiveAttrs;>
512427
512427
512427
        %facetAttr;
512427
        %fixedAttr;
512427
        %minInclusiveAttrs;>
512427
512427
512427
512427
        %facetAttr;
512427
        %fixedAttr;
512427
        %totalDigitsAttrs;>
512427
512427
512427
        %facetAttr;
512427
        %fixedAttr;
512427
        %fractionDigitsAttrs;>
512427
512427
512427
512427
        %facetAttr;
512427
        %fixedAttr;
512427
        %lengthAttrs;>
512427
512427
512427
        %facetAttr;
512427
        %fixedAttr;
512427
        %minLengthAttrs;>
512427
512427
512427
        %facetAttr;
512427
        %fixedAttr;
512427
        %maxLengthAttrs;>
512427
512427
512427
512427
512427
        %facetAttr;
512427
        %enumerationAttrs;>
512427
512427
512427
512427
        %facetAttr;
512427
        %fixedAttr;
512427
        %whiteSpaceAttrs;>
512427
512427
512427
512427
512427
        %facetAttr;
512427
        %patternAttrs;>