home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2003 October / INTERNET108.ISO / pc / software / windows / building / xmlspy / xmlspyentcomplete5.exe / Data1.cab / _03877AB3A32347FB9807E0663D92CC41 < prev    next >
Encoding:
Text File  |  2002-08-20  |  6.4 KB  |  206 lines

  1. <!-- edited with XML Spy v3.5 NT beta 1 build Oct 23 2000 (http://www.xmlspy.com) by Alexander Falk (Altova, Inc.) -->
  2. <!-- DTD for XML Schemas: Part 2: Datatypes -->
  3. <!-- $Id: datatypesCR.dtd,v 1.1.2.1 2002/08/20 13:05:55 vlg Exp $ -->
  4. <!-- Note this DTD is NOT normative, or even definitive. - - the -->
  5. <!--d-->
  6. <!-- prose copy in the datatypes REC is the definitive version -->
  7. <!--d-->
  8. <!-- (which shouldn't differ from this one except for this comment -->
  9. <!--d-->
  10. <!-- and entity expansions, but just in case) -->
  11. <!--d-->
  12. <!-- This DTD cannot be used on its own, it is intended only for incorporation
  13.      in XMLSchema.dtd, q.v. -->
  14. <!-- Define all the element names, with optional prefix -->
  15. <!ENTITY % simpleType "%p;simpleType">
  16. <!ENTITY % restriction "%p;restriction">
  17. <!ENTITY % list "%p;list">
  18. <!ENTITY % union "%p;union">
  19. <!ENTITY % maxExclusive "%p;maxExclusive">
  20. <!ENTITY % minExclusive "%p;minExclusive">
  21. <!ENTITY % maxInclusive "%p;maxInclusive">
  22. <!ENTITY % minInclusive "%p;minInclusive">
  23. <!ENTITY % precision "%p;precision">
  24. <!ENTITY % scale "%p;scale">
  25. <!ENTITY % length "%p;length">
  26. <!ENTITY % minLength "%p;minLength">
  27. <!ENTITY % maxLength "%p;maxLength">
  28. <!ENTITY % enumeration "%p;enumeration">
  29. <!ENTITY % whiteSpace "%p;whiteSpace">
  30. <!ENTITY % pattern "%p;pattern">
  31. <!ENTITY % encoding "%p;encoding">
  32. <!ENTITY % period "%p;period">
  33. <!ENTITY % duration "%p;duration">
  34. <!-- Customisation entities for the ATTLIST of each element type.
  35.      Define one of these if your schema takes advantage of the
  36.      anyAttribute='##other' in the schema for schemas -->
  37. <!ENTITY % simpleTypeAttrs "">
  38. <!ENTITY % restrictionAttrs "">
  39. <!ENTITY % listAttrs "">
  40. <!ENTITY % unionAttrs "">
  41. <!ENTITY % simpleTypeAttrs "">
  42. <!ENTITY % maxExclusiveAttrs "">
  43. <!ENTITY % minExclusiveAttrs "">
  44. <!ENTITY % maxInclusiveAttrs "">
  45. <!ENTITY % minInclusiveAttrs "">
  46. <!ENTITY % precisionAttrs "">
  47. <!ENTITY % scaleAttrs "">
  48. <!ENTITY % lengthAttrs "">
  49. <!ENTITY % minLengthAttrs "">
  50. <!ENTITY % maxLengthAttrs "">
  51. <!ENTITY % enumerationAttrs "">
  52. <!ENTITY % whiteSpaceAttrs "">
  53. <!ENTITY % patternAttrs "">
  54. <!ENTITY % encodingAttrs "">
  55. <!ENTITY % periodAttrs "">
  56. <!ENTITY % durationAttrs "">
  57. <!ENTITY % appinfoAttrs "">
  58. <!ENTITY % documentationAttrs "">
  59. <!-- Define some entities for informative use as attribute types -->
  60. <!ENTITY % URIref "CDATA">
  61. <!ENTITY % XPathExpr "CDATA">
  62. <!ENTITY % QName "NMTOKEN">
  63. <!ENTITY % QNames "NMTOKENS">
  64. <!ENTITY % NCName "NMTOKEN">
  65. <!ENTITY % nonNegativeInteger "NMTOKEN">
  66. <!ENTITY % boolean "(true|false)">
  67. <!-- Note that the use of 'facet' below is less restrictive than is
  68.      really intended:  There should in fact be no more than one of each of
  69.      minInclusive, minExclusive, maxInclusive, maxExclusive,
  70.      precision, scale,
  71.      length, maxLength, minLength, encoding, period within datatype,
  72.      and the min- and max- variants of Inclusive and Exclusive are
  73.      mutually exclusive.
  74.      On the other hand,  pattern and enumeration may repeat -->
  75. <!ENTITY % minBound "(%minInclusive; | %minExclusive;)">
  76. <!ENTITY % maxBound "(%maxInclusive; | %maxExclusive;)">
  77. <!ENTITY % bounds "%minBound; | %maxBound;">
  78. <!ENTITY % numeric "%precision; | %scale;">
  79. <!ENTITY % ordered "%bounds; | %numeric;">
  80. <!ENTITY % unordered "%pattern; | %enumeration; | %whiteSpace; | %length; | %maxLength; | %minLength;
  81.     | %encoding; | %period; | %duration;">
  82. <!ENTITY % facet "%ordered; | %unordered;">
  83. <!ENTITY % facetAttr "value CDATA #REQUIRED id ID #IMPLIED">
  84. <!ENTITY % fixedAttr "fixed %boolean; #IMPLIED">
  85. <!ENTITY % facetModel "(%annotation;)?">
  86. <!ELEMENT %simpleType; ((%annotation;)?, (%restriction; | %list; | %union;))>
  87. <!ATTLIST %simpleType;
  88.     name %NCName; #IMPLIED
  89.     id ID #IMPLIED
  90.     %simpleTypeAttrs; 
  91. >
  92. <!-- name is required at top level -->
  93. <!ELEMENT %restriction; ((%annotation;)?, (%restriction1; | ((%simpleType;)?, (%facet;)*)), (%attrDecls;))>
  94. <!ATTLIST %restriction;
  95.     base %QName; #IMPLIED
  96.     id ID #IMPLIED
  97.     %restrictionAttrs; 
  98. >
  99. <!-- base and simpleType child are mutually exclusive, one is required -->
  100. <!-- restriction is shared between simpleType and simpleContent and -->
  101. <!-- complexContent (in XMLSchema.xsd). restriction1 is for the latter -->
  102. <!-- cases, when this is restricting a complex type, as is attrDecls -->
  103. <!ELEMENT %list; ((%annotation;)?, (%simpleType;)?)>
  104. <!ATTLIST %list;
  105.     itemType %QName; #IMPLIED
  106.     id ID #IMPLIED
  107.     %listAttrs; 
  108. >
  109. <!-- itemType and simpleType child are mutually exclusive, one is required -->
  110. <!ELEMENT %union; ((%annotation;)?, (%simpleType;)*)>
  111. <!ATTLIST %union;
  112.     id ID #IMPLIED
  113.     memberTypes %QNames; #IMPLIED
  114.     %unionAttrs; 
  115. >
  116. <!-- At least one item in memberTypes or one simpleType child is required -->
  117. <!ELEMENT %maxExclusive; %facetModel;>
  118. <!ATTLIST %maxExclusive;
  119.     %facetAttr; 
  120.     %fixedAttr; 
  121.     %maxExclusiveAttrs; 
  122. >
  123. <!ELEMENT %minExclusive; %facetModel;>
  124. <!ATTLIST %minExclusive;
  125.     %facetAttr; 
  126.     %fixedAttr; 
  127.     %minExclusiveAttrs; 
  128. >
  129. <!ELEMENT %maxInclusive; %facetModel;>
  130. <!ATTLIST %maxInclusive;
  131.     %facetAttr; 
  132.     %fixedAttr; 
  133.     %maxInclusiveAttrs; 
  134. >
  135. <!ELEMENT %minInclusive; %facetModel;>
  136. <!ATTLIST %minInclusive;
  137.     %facetAttr; 
  138.     %fixedAttr; 
  139.     %minInclusiveAttrs; 
  140. >
  141. <!ELEMENT %precision; %facetModel;>
  142. <!ATTLIST %precision;
  143.     %facetAttr; 
  144.     %fixedAttr; 
  145.     %precisionAttrs; 
  146. >
  147. <!ELEMENT %scale; %facetModel;>
  148. <!ATTLIST %scale;
  149.     %facetAttr; 
  150.     %fixedAttr; 
  151.     %scaleAttrs; 
  152. >
  153. <!ELEMENT %length; %facetModel;>
  154. <!ATTLIST %length;
  155.     %facetAttr; 
  156.     %fixedAttr; 
  157.     %lengthAttrs; 
  158. >
  159. <!ELEMENT %minLength; %facetModel;>
  160. <!ATTLIST %minLength;
  161.     %facetAttr; 
  162.     %fixedAttr; 
  163.     %minLengthAttrs; 
  164. >
  165. <!ELEMENT %maxLength; %facetModel;>
  166. <!ATTLIST %maxLength;
  167.     %facetAttr; 
  168.     %fixedAttr; 
  169.     %maxLengthAttrs; 
  170. >
  171. <!-- This one can be repeated -->
  172. <!ELEMENT %enumeration; %facetModel;>
  173. <!ATTLIST %enumeration;
  174.     %facetAttr; 
  175.     %enumerationAttrs; 
  176. >
  177. <!ELEMENT %whiteSpace; %facetModel;>
  178. <!ATTLIST %whiteSpace;
  179.     %facetAttr; 
  180.     %whiteSpaceAttrs; 
  181. >
  182. <!-- This one can be repeated -->
  183. <!ELEMENT %pattern; %facetModel;>
  184. <!ATTLIST %pattern;
  185.     %facetAttr; 
  186.     %patternAttrs; 
  187. >
  188. <!ELEMENT %encoding; %facetModel;>
  189. <!ATTLIST %encoding;
  190.     %facetAttr; 
  191.     %fixedAttr; 
  192.     %encodingAttrs; 
  193. >
  194. <!ELEMENT %period; %facetModel;>
  195. <!ATTLIST %period;
  196.     %facetAttr; 
  197.     %fixedAttr; 
  198.     %periodAttrs; 
  199. >
  200. <!ELEMENT %duration; %facetModel;>
  201. <!ATTLIST %duration;
  202.     %facetAttr; 
  203.     %fixedAttr; 
  204.     %durationAttrs; 
  205. >
  206.