mapGroupMod.xsd 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- ============================================================= -->
  3. <!-- HEADER -->
  4. <!-- ============================================================= -->
  5. <!-- MODULE: DITA Map Group Domain -->
  6. <!-- VERSION: 1.1 -->
  7. <!-- DATE: November 2006 -->
  8. <!-- -->
  9. <!-- ============================================================= -->
  10. <!-- ============================================================= -->
  11. <!-- SYSTEM: Darwin Information Typing Architecture (DITA) -->
  12. <!-- -->
  13. <!-- PURPOSE: Define elements and specialization attributes -->
  14. <!-- for Map Group Domain -->
  15. <!-- -->
  16. <!-- ORIGINAL CREATION DATE: -->
  17. <!-- March 2001 -->
  18. <!-- -->
  19. <!-- (C) Copyright OASIS-Open.org 2005, 2006 -->
  20. <!-- (C) Copyright IBM Corporation 2001, 2004. -->
  21. <!-- All Rights Reserved. -->
  22. <!-- ============================================================= -->
  23. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
  24. <!--<!ENTITY mapgroup-d-att "(map mapgroup-d)" >-->
  25. <xs:group name="mapgroup-d-topicref">
  26. <xs:choice>
  27. <xs:element ref="topichead"/>
  28. <xs:element ref="topicgroup"/>
  29. </xs:choice>
  30. </xs:group>
  31. <xs:group name="topichead">
  32. <xs:choice>
  33. <xs:element ref="topichead"/>
  34. </xs:choice>
  35. </xs:group>
  36. <xs:group name="topicgroup">
  37. <xs:choice>
  38. <xs:element ref="topicgroup"/>
  39. </xs:choice>
  40. </xs:group>
  41. <xs:element name="topichead">
  42. <xs:annotation>
  43. <xs:documentation>The &lt;<keyword>topichead</keyword>> element provides a title-only
  44. entry in a navigation map, as an alternative to the fully-linked title provided
  45. by the &lt;<keyword>topicref</keyword>> element.
  46. </xs:documentation>
  47. </xs:annotation>
  48. <xs:complexType>
  49. <xs:complexContent>
  50. <xs:extension base="topichead.class">
  51. <xs:attribute ref="class" default="+ map/topicref mapgroup-d/topichead " />
  52. </xs:extension>
  53. </xs:complexContent>
  54. </xs:complexType>
  55. </xs:element>
  56. <xs:complexType name="topichead.class">
  57. <xs:sequence>
  58. <xs:element ref="topicmeta" minOccurs="0" />
  59. <xs:choice minOccurs="0" maxOccurs="unbounded">
  60. <xs:group ref="navref" />
  61. <xs:group ref="anchor" />
  62. <xs:group ref="topicref" />
  63. <xs:group ref="data.element.incl"/>
  64. </xs:choice>
  65. </xs:sequence>
  66. <xs:attribute name="navtitle" type="xs:string" use="required"/>
  67. <xs:attribute name="outputclass" type="xs:string"/>
  68. <xs:attributeGroup ref="topicref-atts" />
  69. <xs:attributeGroup ref="univ-atts"/>
  70. <xs:attributeGroup ref="global-atts" />
  71. </xs:complexType>
  72. <xs:element name="topicgroup">
  73. <xs:annotation>
  74. <xs:documentation>The &lt;<keyword>topicgroup</keyword>> element is for creating
  75. groups of &lt;<keyword>topicref</keyword>> elements without affecting the
  76. hierarchy, as opposed to nested &lt;<keyword>topicref</keyword>> elements
  77. within a &lt;<keyword>topicref</keyword>>, which does imply a structural hierarchy.
  78. It is typically used outside a hierarchy to identify groups for linking without
  79. affecting the resulting toc/navigation output.
  80. </xs:documentation>
  81. </xs:annotation>
  82. <xs:complexType>
  83. <xs:complexContent>
  84. <xs:extension base="topicgroup.class">
  85. <xs:attribute ref="class" default="+ map/topicref mapgroup-d/topicgroup " />
  86. </xs:extension>
  87. </xs:complexContent>
  88. </xs:complexType>
  89. </xs:element>
  90. <xs:complexType name="topicgroup.class">
  91. <xs:sequence>
  92. <xs:group ref="topicmeta" minOccurs="0" />
  93. <xs:choice minOccurs="0" maxOccurs="unbounded">
  94. <xs:group ref="navref" />
  95. <xs:group ref="anchor" />
  96. <xs:group ref="topicref" />
  97. <xs:group ref="data.element.incl"/>
  98. </xs:choice>
  99. </xs:sequence>
  100. <xs:attribute name="outputclass" type="xs:string"/>
  101. <xs:attributeGroup ref="topicref-atts" />
  102. <xs:attributeGroup ref="univ-atts"/>
  103. <xs:attributeGroup ref="global-atts" />
  104. </xs:complexType>
  105. </xs:schema>