reference.xsd 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- ============================================================= -->
  3. <!-- HEADER -->
  4. <!-- ============================================================= -->
  5. <!-- MODULE: DITA Reference XSD -->
  6. <!-- VERSION: 1.1 -->
  7. <!-- DATE: November 2006 -->
  8. <!-- -->
  9. <!-- ============================================================= -->
  10. <!-- ============================================================= -->
  11. <!-- SYSTEM: Darwin Information Typing Architecture (DITA) -->
  12. <!-- -->
  13. <!-- PURPOSE: W3C XML Schema to describe DITA References -->
  14. <!-- -->
  15. <!-- ORIGINAL CREATION DATE: -->
  16. <!-- March 2001 -->
  17. <!-- -->
  18. <!-- (C) Copyright OASIS-Open.org 2005, 2006 -->
  19. <!-- (C) Copyright IBM Corporation 2001, 2004. -->
  20. <!-- All Rights Reserved. -->
  21. <!-- ============================================================= -->
  22. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/">
  23. <!-- Add the domains to the base topic XML Schema -->
  24. <!-- ================ TOPIC DOMAINS ===================== -->
  25. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:programmingDomain.xsd:1.1"/>
  26. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:softwareDomain.xsd:1.1"/>
  27. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:highlightDomain.xsd:1.1"/>
  28. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:uiDomain.xsd:1.1"/>
  29. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:utilitiesDomain.xsd:1.1"/>
  30. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:indexingDomain.xsd:1.1"/>
  31. <!-- ================ GROUP DEFINITIONS ===================== -->
  32. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:referenceGrp.xsd:1.1" />
  33. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:metaDeclGrp.xsd:1.1"/>
  34. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:tblDeclGrp.xsd:1.1"/>
  35. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:topicGrp.xsd:1.1"/>
  36. <!-- ================= MODULE INLCUDE DEFINITION ================== -->
  37. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:commonElementMod.xsd:1.1"/>
  38. <!-- ======== Table elements ======== -->
  39. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:tblDeclMod.xsd:1.1"/>
  40. <!-- ======= MetaData elements, plus keyword and indexterm ======= -->
  41. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:metaDeclMod.xsd:1.1"/>
  42. <xs:redefine schemaLocation="urn:oasis:names:tc:dita:xsd:commonElementGrp.xsd:1.1">
  43. <xs:group name="keyword">
  44. <xs:choice>
  45. <xs:group ref="keyword"/>
  46. <xs:group ref="pr-d-keyword" />
  47. <xs:group ref="ui-d-keyword" />
  48. <xs:group ref="sw-d-keyword" />
  49. </xs:choice>
  50. </xs:group>
  51. <xs:group name="ph">
  52. <xs:choice>
  53. <xs:group ref="ph"/>
  54. <xs:group ref="pr-d-ph" />
  55. <xs:group ref="ui-d-ph" />
  56. <xs:group ref="hi-d-ph" />
  57. <xs:group ref="sw-d-ph" />
  58. </xs:choice>
  59. </xs:group>
  60. <xs:group name="pre">
  61. <xs:choice>
  62. <xs:group ref="pre"/>
  63. <xs:group ref="pr-d-pre" />
  64. <xs:group ref="ui-d-pre" />
  65. <xs:group ref="sw-d-pre" />
  66. </xs:choice>
  67. </xs:group>
  68. <xs:group name="dl">
  69. <xs:choice>
  70. <xs:group ref="dl"/>
  71. <xs:group ref="pr-d-dl"/>
  72. </xs:choice >
  73. </xs:group >
  74. <xs:group name="fig">
  75. <xs:choice>
  76. <xs:group ref="fig"/>
  77. <xs:group ref="pr-d-fig"/>
  78. <xs:group ref="ut-d-fig" />
  79. </xs:choice>
  80. </xs:group >
  81. <xs:group name="index-base">
  82. <xs:choice>
  83. <xs:group ref="index-base"/>
  84. <xs:group ref="indexing-d-index-base"/>
  85. </xs:choice>
  86. </xs:group>
  87. </xs:redefine>
  88. <!-- ================ INFO TYPES ===================== -->
  89. <xs:redefine schemaLocation="urn:oasis:names:tc:dita:xsd:topicMod.xsd:1.1" >
  90. <xs:complexType name="topic.class">
  91. <xs:complexContent>
  92. <xs:extension base="topic.class">
  93. <xs:attribute name="domains" type="xs:string" default="(topic ui-d) (topic hi-d) (topic sw-d) (topic pr-d) (topic ut-d) (topic indexing-d)"/>
  94. </xs:extension>
  95. </xs:complexContent>
  96. </xs:complexType>
  97. </xs:redefine>
  98. <xs:redefine schemaLocation="urn:oasis:names:tc:dita:xsd:referenceMod.xsd:1.1" >
  99. <xs:complexType name="reference.class">
  100. <xs:complexContent>
  101. <xs:extension base="reference.class">
  102. <xs:attribute name="domains" type="xs:string" default="(topic ui-d) (topic hi-d) (topic sw-d) (topic pr-d) (topic ut-d) (topic indexing-d)"/>
  103. </xs:extension>
  104. </xs:complexContent>
  105. </xs:complexType>
  106. </xs:redefine>
  107. <xs:group name="info-types">
  108. <xs:sequence/>
  109. </xs:group>
  110. </xs:schema>