uiDomain.xsd 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- ============================================================= -->
  3. <!-- HEADER -->
  4. <!-- ============================================================= -->
  5. <!-- MODULE: DITA User Interface 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 User Interface 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. <!-- Import namespace for xml:space attribute for element screen -->
  25. <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="urn:oasis:names:tc:dita:xsd:xml.xsd:1.1"/>
  26. <xs:group name="ui-d-ph">
  27. <xs:choice>
  28. <xs:element ref="uicontrol" />
  29. <xs:element ref="menucascade" />
  30. </xs:choice>
  31. </xs:group>
  32. <xs:group name="ui-d-keyword">
  33. <xs:choice>
  34. <xs:element ref="wintitle" />
  35. </xs:choice>
  36. </xs:group>
  37. <xs:group name="ui-d-pre">
  38. <xs:choice>
  39. <xs:element ref="screen" />
  40. </xs:choice>
  41. </xs:group>
  42. <xs:group name="screen">
  43. <xs:choice>
  44. <xs:element ref="screen" />
  45. </xs:choice>
  46. </xs:group>
  47. <xs:group name="uicontrol">
  48. <xs:choice>
  49. <xs:element ref="uicontrol" />
  50. </xs:choice>
  51. </xs:group>
  52. <xs:group name="menucascade">
  53. <xs:choice>
  54. <xs:element ref="menucascade" />
  55. </xs:choice>
  56. </xs:group>
  57. <xs:group name="wintitle">
  58. <xs:choice>
  59. <xs:element ref="wintitle" />
  60. </xs:choice>
  61. </xs:group>
  62. <xs:element name="uicontrol">
  63. <xs:annotation>
  64. <xs:documentation>
  65. The user interface control (&lt;<keyword>uicontrol</keyword>&gt;) element represents
  66. a button, entry field, menu item, or other object that allows the user to
  67. control the interface. This could also include a menu or dialog. For example,
  68. use the &lt;<keyword>uicontrol</keyword>&gt; element inside a &lt;<keyword>menucascade</keyword>&gt; element
  69. when the menu item is nested, such as <menucascade>
  70. <uicontrol>File</uicontrol>
  71. <uicontrol>New</uicontrol>
  72. </menucascade>. This element is part
  73. of the DITA user interface domain, a special set of DITA elements designed
  74. to document user interface tasks, concepts and reference information.
  75. </xs:documentation>
  76. </xs:annotation>
  77. <xs:complexType mixed="true">
  78. <xs:complexContent>
  79. <xs:extension base="uicontrol.class">
  80. <xs:attribute ref="class" default="+ topic/ph ui-d/uicontrol "/>
  81. </xs:extension>
  82. </xs:complexContent>
  83. </xs:complexType>
  84. </xs:element>
  85. <xs:complexType name="uicontrol.class" mixed="true">
  86. <xs:choice minOccurs="0" maxOccurs="unbounded">
  87. <xs:element ref="image"/>
  88. <xs:element ref="shortcut"/>
  89. <xs:group ref="words.cnt"/>
  90. </xs:choice>
  91. <xs:attribute name="keyref" type="xs:string"/>
  92. <xs:attribute name="outputclass" type="xs:string"/>
  93. <xs:attributeGroup ref="global-atts"/>
  94. <xs:attributeGroup ref="univ-atts"/>
  95. </xs:complexType>
  96. <xs:element name="shortcut">
  97. <xs:annotation>
  98. <xs:documentation>
  99. The &lt;<keyword>shortcut</keyword>&gt; element identifies
  100. a keyboard shortcut for a menu or window action. This element is part of the
  101. DITA user interface domain, a special set of DITA elements designed to document
  102. user interface tasks, concepts and reference information.
  103. </xs:documentation>
  104. </xs:annotation>
  105. <xs:complexType mixed="true">
  106. <xs:complexContent>
  107. <xs:extension base="shortcut.class">
  108. <xs:attribute ref="class" default="+ topic/keyword ui-d/shortcut "/>
  109. </xs:extension>
  110. </xs:complexContent>
  111. </xs:complexType>
  112. </xs:element>
  113. <xs:complexType name="shortcut.class" mixed="true">
  114. <xs:attribute name="keyref" type="xs:string"/>
  115. <xs:attribute name="outputclass" type="xs:string"/>
  116. <xs:attributeGroup ref="global-atts"/>
  117. <xs:attributeGroup ref="univ-atts"/>
  118. </xs:complexType>
  119. <xs:element name="wintitle">
  120. <xs:annotation>
  121. <xs:documentation>
  122. The window title &lt;<keyword>wintitle</keyword>&gt; element represents the title
  123. text that appears at the top of a window or dialog, and applies to wizard
  124. titles, wizard page titles, and pane titles. This element is part of the DITA
  125. user interface domain, a special set of DITA elements designed to document
  126. user interface tasks, concepts and reference information.
  127. </xs:documentation>
  128. </xs:annotation>
  129. <xs:complexType mixed="true">
  130. <xs:complexContent>
  131. <xs:extension base="wintitle.class">
  132. <xs:attribute ref="class" default="+ topic/keyword ui-d/wintitle "/>
  133. </xs:extension>
  134. </xs:complexContent>
  135. </xs:complexType>
  136. </xs:element>
  137. <xs:complexType name="wintitle.class" mixed="true">
  138. <xs:attribute name="keyref" type="xs:string"/>
  139. <xs:attribute name="outputclass" type="xs:string"/>
  140. <xs:attributeGroup ref="global-atts"/>
  141. <xs:attributeGroup ref="univ-atts"/>
  142. </xs:complexType>
  143. <xs:element name="menucascade">
  144. <xs:annotation>
  145. <xs:documentation>
  146. The &lt;<keyword>menucascade</keyword>&gt; element is used to document
  147. a series of menu choices, or to show any choice on a menu from which the user
  148. needs to choose. The &lt;<keyword>menucascade</keyword>&gt; element contains
  149. one or more user interface control (&lt;<keyword>uicontrol</keyword>&gt;) elements,
  150. for example: <codeph>Start &gt; Programs &gt; Accessories &gt; Notepad</codeph>. If
  151. there is more than one &lt;<keyword>uicontrol</keyword>&gt; element, the formatter
  152. may show connecting characters between the menu items to represent the menu
  153. cascade. This element is part of the DITA user interface domain, a special
  154. set of DITA elements designed to document user interface tasks, concepts and
  155. reference information.
  156. </xs:documentation>
  157. </xs:annotation>
  158. <xs:complexType>
  159. <xs:complexContent>
  160. <xs:extension base="menucascade.class">
  161. <xs:attribute ref="class" default="+ topic/ph ui-d/menucascade "/>
  162. </xs:extension>
  163. </xs:complexContent>
  164. </xs:complexType>
  165. </xs:element>
  166. <xs:complexType name="menucascade.class">
  167. <xs:choice maxOccurs="unbounded">
  168. <xs:element ref="uicontrol" />
  169. </xs:choice>
  170. <xs:attribute name="keyref" type="xs:string"/>
  171. <xs:attribute name="outputclass" type="xs:string"/>
  172. <xs:attributeGroup ref="global-atts"/>
  173. <xs:attributeGroup ref="univ-atts"/>
  174. </xs:complexType>
  175. <xs:element name="screen">
  176. <xs:annotation>
  177. <xs:documentation>
  178. The &lt;<keyword>screen</keyword>&gt; element contains or refers to a textual representation
  179. of a computer screen or user interface panel (window).
  180. </xs:documentation>
  181. </xs:annotation>
  182. <xs:complexType mixed="true">
  183. <xs:complexContent>
  184. <xs:extension base="screen.class">
  185. <xs:attribute ref="class" default="+ topic/pre ui-d/screen "/>
  186. </xs:extension>
  187. </xs:complexContent>
  188. </xs:complexType>
  189. </xs:element>
  190. <xs:complexType name="screen.class" mixed="true">
  191. <xs:choice minOccurs="0" maxOccurs="unbounded">
  192. <xs:group ref="basic.ph.notm"/>
  193. <xs:group ref="txt.incl"/>
  194. <xs:choice minOccurs="0" maxOccurs="unbounded">
  195. <xs:group ref="data.element.incl"/>
  196. <xs:group ref="foreign.unknown.incl"/>
  197. </xs:choice>
  198. </xs:choice>
  199. <xs:attribute name="spectitle" type="xs:string"/>
  200. <xs:attribute name="outputclass" type="xs:string"/>
  201. <xs:attributeGroup ref="global-atts"/>
  202. <xs:attributeGroup ref="univ-atts"/>
  203. <xs:attributeGroup ref="display-atts"/>
  204. <xs:attribute ref="xml:space" fixed="preserve"/>
  205. </xs:complexType>
  206. </xs:schema>