topic.xsd 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- ============================================================= -->
  3. <!-- HEADER -->
  4. <!-- ============================================================= -->
  5. <!-- MODULE: DITA Topic 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 Topics -->
  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:uiDomain.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:programmingDomain.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:metaDeclGrp.xsd:1.1"/>
  33. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:tblDeclGrp.xsd:1.1"/>
  34. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:topicGrp.xsd:1.1"/>
  35. <!-- ================= MODULE INLCUDE DEFINITION ================== -->
  36. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:commonElementMod.xsd:1.1"/>
  37. <!-- ======== Table elements ======== -->
  38. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:tblDeclMod.xsd:1.1"/>
  39. <!-- ======= MetaData elements, plus keyword and indexterm ======= -->
  40. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:metaDeclMod.xsd:1.1"/>
  41. <xs:redefine schemaLocation="urn:oasis:names:tc:dita:xsd:commonElementGrp.xsd:1.1">
  42. <xs:group name="keyword">
  43. <xs:choice>
  44. <xs:group ref="keyword"/>
  45. <xs:group ref="pr-d-keyword" />
  46. <xs:group ref="ui-d-keyword" />
  47. <xs:group ref="sw-d-keyword" />
  48. </xs:choice>
  49. </xs:group>
  50. <xs:group name="ph">
  51. <xs:choice>
  52. <xs:group ref="ph"/>
  53. <xs:group ref="pr-d-ph" />
  54. <xs:group ref="ui-d-ph" />
  55. <xs:group ref="hi-d-ph" />
  56. <xs:group ref="sw-d-ph" />
  57. </xs:choice>
  58. </xs:group>
  59. <xs:group name="pre">
  60. <xs:choice>
  61. <xs:group ref="pre"/>
  62. <xs:group ref="pr-d-pre" />
  63. <xs:group ref="ui-d-pre" />
  64. <xs:group ref="sw-d-pre" />
  65. </xs:choice>
  66. </xs:group>
  67. <xs:group name="dl">
  68. <xs:choice>
  69. <xs:group ref="dl"/>
  70. <xs:group ref="pr-d-dl"/>
  71. </xs:choice >
  72. </xs:group >
  73. <xs:group name="fig">
  74. <xs:choice>
  75. <xs:group ref="fig"/>
  76. <xs:group ref="pr-d-fig"/>
  77. <xs:group ref="ut-d-fig" />
  78. </xs:choice>
  79. </xs:group >
  80. <xs:group name="index-base">
  81. <xs:choice>
  82. <xs:group ref="index-base"/>
  83. <xs:group ref="indexing-d-index-base"/>
  84. </xs:choice>
  85. </xs:group >
  86. </xs:redefine>
  87. <xs:redefine schemaLocation="urn:oasis:names:tc:dita:xsd:topicMod.xsd:1.1">
  88. <xs:complexType name="topic.class">
  89. <xs:complexContent>
  90. <xs:extension base="topic.class">
  91. <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)"/>
  92. </xs:extension>
  93. </xs:complexContent>
  94. </xs:complexType>
  95. </xs:redefine>
  96. <xs:group name="info-types">
  97. <xs:sequence/>
  98. </xs:group>
  99. </xs:schema>