highlightDomain.xsd 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- ============================================================= -->
  3. <!-- HEADER -->
  4. <!-- ============================================================= -->
  5. <!-- MODULE: DITA Highlight 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 Highlight 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. <xs:group name="hi-d-ph">
  25. <xs:choice>
  26. <xs:element ref="sup" />
  27. <xs:element ref="sub" />
  28. <xs:element ref="tt" />
  29. <xs:element ref="b" />
  30. <xs:element ref="u" />
  31. <xs:element ref="i" />
  32. </xs:choice>
  33. </xs:group>
  34. <xs:group name="sup">
  35. <xs:choice>
  36. <xs:element ref="sup"/>
  37. </xs:choice>
  38. </xs:group>
  39. <xs:group name="sub">
  40. <xs:choice>
  41. <xs:element ref="sub"/>
  42. </xs:choice>
  43. </xs:group>
  44. <xs:group name="tt">
  45. <xs:choice>
  46. <xs:element ref="tt"/>
  47. </xs:choice>
  48. </xs:group>
  49. <xs:group name="b">
  50. <xs:choice>
  51. <xs:element ref="b"/>
  52. </xs:choice>
  53. </xs:group>
  54. <xs:group name="u">
  55. <xs:choice>
  56. <xs:element ref="u"/>
  57. </xs:choice>
  58. </xs:group>
  59. <xs:group name="i">
  60. <xs:choice>
  61. <xs:element ref="i"/>
  62. </xs:choice>
  63. </xs:group>
  64. <!-- Basic form: Single Effect Formatting Phrases -->
  65. <xs:element name="sup">
  66. <xs:annotation>
  67. <xs:documentation>
  68. The superscript (&lt;<keyword>sup</keyword>&gt;) element indicates that text should
  69. be superscripted, or vertically raised in relationship to the surrounding
  70. text. Superscripts are usually a smaller font than the surrounding text.
  71. Use this element only when there is not some other more proper tag. For example,
  72. for specific items such as GUI controls, use the <ph>
  73. <xref href="uicontrol.xml">uicontrol</xref>
  74. </ph> tag. This element is part of the DITA highlighting
  75. domain.
  76. </xs:documentation>
  77. </xs:annotation>
  78. <xs:complexType mixed="true">
  79. <xs:complexContent>
  80. <xs:extension base="sup.class">
  81. <xs:attribute ref="class" default="+ topic/ph hi-d/sup "/>
  82. </xs:extension>
  83. </xs:complexContent>
  84. </xs:complexType>
  85. </xs:element>
  86. <xs:complexType name="sup.class" mixed="true">
  87. <xs:choice minOccurs="0" maxOccurs="unbounded">
  88. <xs:group ref="basic.ph"/>
  89. <xs:group ref="data.element.incl"/>
  90. <xs:group ref="foreign.unknown.incl"/>
  91. </xs:choice>
  92. <xs:attributeGroup ref="global-atts"/>
  93. <xs:attributeGroup ref="univ-atts"/>
  94. <xs:attribute name="outputclass" type="xs:string"/>
  95. </xs:complexType>
  96. <xs:element name="sub">
  97. <xs:annotation>
  98. <xs:documentation>
  99. A subscript (&lt;<keyword>sub</keyword>&gt;) indicates that text should be subscripted,
  100. or placed lower in relationship to the surrounding text. Subscripted text
  101. is often a smaller font than the surrounding text. Formatting may vary depending
  102. on your output process. This element is part of the DITA highlighting domain.
  103. </xs:documentation>
  104. </xs:annotation>
  105. <xs:complexType mixed="true">
  106. <xs:complexContent>
  107. <xs:extension base="sub.class">
  108. <xs:attribute ref="class" default="+ topic/ph hi-d/sub "/>
  109. </xs:extension>
  110. </xs:complexContent>
  111. </xs:complexType>
  112. </xs:element>
  113. <xs:complexType name="sub.class" mixed="true">
  114. <xs:choice minOccurs="0" maxOccurs="unbounded">
  115. <xs:group ref="basic.ph"/>
  116. <xs:group ref="data.element.incl"/>
  117. <xs:group ref="foreign.unknown.incl"/>
  118. </xs:choice>
  119. <xs:attributeGroup ref="global-atts"/>
  120. <xs:attributeGroup ref="univ-atts"/>
  121. <xs:attribute name="outputclass" type="xs:string"/>
  122. </xs:complexType>
  123. <xs:element name="tt">
  124. <xs:annotation>
  125. <xs:documentation>
  126. The teletype (&lt;<keyword>tt</keyword>&gt;) element is used to apply monospaced
  127. highlighting to the content of the element. Use this element only when there
  128. is not some other more proper tag. For example, for specific items such as
  129. GUI controls, use the <ph>
  130. <xref href="uicontrol.xml">uicontrol</xref>
  131. </ph> tag.
  132. This element is part of the DITA highlighting domain.
  133. </xs:documentation>
  134. </xs:annotation>
  135. <xs:complexType mixed="true">
  136. <xs:complexContent>
  137. <xs:extension base="tt.class">
  138. <xs:attribute ref="class" default="+ topic/ph hi-d/tt "/>
  139. </xs:extension>
  140. </xs:complexContent>
  141. </xs:complexType>
  142. </xs:element>
  143. <xs:complexType name="tt.class" mixed="true">
  144. <xs:choice minOccurs="0" maxOccurs="unbounded">
  145. <xs:group ref="basic.ph"/>
  146. <xs:group ref="data.element.incl"/>
  147. <xs:group ref="foreign.unknown.incl"/>
  148. </xs:choice>
  149. <xs:attributeGroup ref="global-atts"/>
  150. <xs:attributeGroup ref="univ-atts"/>
  151. <xs:attribute name="outputclass" type="xs:string"/>
  152. </xs:complexType>
  153. <xs:element name="b">
  154. <xs:annotation>
  155. <xs:documentation>
  156. The bold (&lt;<keyword>b</keyword>&gt;) element is used to apply bold highlighting
  157. to the content of the element. Use this element only when there is not some
  158. other more proper tag. For example, for specific items such as GUI controls,
  159. use the <ph>
  160. <xref href="uicontrol.xml">uicontrol</xref>
  161. </ph> tag.
  162. This element is part of the DITA highlighting domain.
  163. </xs:documentation>
  164. </xs:annotation>
  165. <xs:complexType mixed="true">
  166. <xs:complexContent>
  167. <xs:extension base="b.class">
  168. <xs:attribute ref="class" default="+ topic/ph hi-d/b "/>
  169. </xs:extension>
  170. </xs:complexContent>
  171. </xs:complexType>
  172. </xs:element>
  173. <xs:complexType name="b.class" mixed="true">
  174. <xs:choice minOccurs="0" maxOccurs="unbounded">
  175. <xs:group ref="basic.ph"/>
  176. <xs:group ref="data.element.incl"/>
  177. <xs:group ref="foreign.unknown.incl"/>
  178. </xs:choice>
  179. <xs:attributeGroup ref="global-atts"/>
  180. <xs:attributeGroup ref="univ-atts"/>
  181. <xs:attribute name="outputclass" type="xs:string"/>
  182. </xs:complexType>
  183. <xs:element name="u">
  184. <xs:annotation>
  185. <xs:documentation>
  186. The underline (&lt;<keyword>u</keyword>&gt;) element is used to apply
  187. underline highlighting to the content of the element. Use this element only
  188. when there is not some other more proper tag. For example, for specific items
  189. such as GUI controls, use the <ph>
  190. <xref href="uicontrol.xml">uicontrol</xref>
  191. </ph> tag.
  192. This element is part of the DITA highlighting domain.
  193. </xs:documentation>
  194. </xs:annotation>
  195. <xs:complexType mixed="true">
  196. <xs:complexContent>
  197. <xs:extension base="u.class">
  198. <xs:attribute ref="class" default="+ topic/ph hi-d/u "/>
  199. </xs:extension>
  200. </xs:complexContent>
  201. </xs:complexType>
  202. </xs:element>
  203. <xs:complexType name="u.class" mixed="true">
  204. <xs:choice minOccurs="0" maxOccurs="unbounded">
  205. <xs:group ref="basic.ph"/>
  206. <xs:group ref="data.element.incl"/>
  207. <xs:group ref="foreign.unknown.incl"/>
  208. </xs:choice>
  209. <xs:attributeGroup ref="global-atts"/>
  210. <xs:attributeGroup ref="univ-atts"/>
  211. <xs:attribute name="outputclass" type="xs:string"/>
  212. </xs:complexType>
  213. <xs:element name="i">
  214. <xs:annotation>
  215. <xs:documentation>
  216. The italic (&lt;i&gt;) element is used to apply italic highlighting
  217. to the content of the element. Use this element only when there
  218. is not some other more proper tag. For example, for specific items such as
  219. GUI controls, use the <ph>
  220. <xref href="uicontrol.xml">uicontrol</xref>
  221. </ph> tag.
  222. Italic highlighting generally means a font that is slanted for emphasis, but
  223. this may vary depending on your output formatting process. This element is
  224. part of the DITA highlighting domain.
  225. </xs:documentation>
  226. </xs:annotation>
  227. <xs:complexType mixed="true">
  228. <xs:complexContent>
  229. <xs:extension base="i.class">
  230. <xs:attribute ref="class" default="+ topic/ph hi-d/i "/>
  231. </xs:extension>
  232. </xs:complexContent>
  233. </xs:complexType>
  234. </xs:element>
  235. <xs:complexType name="i.class" mixed="true">
  236. <xs:choice minOccurs="0" maxOccurs="unbounded">
  237. <xs:group ref="basic.ph"/>
  238. <xs:group ref="data.element.incl"/>
  239. <xs:group ref="foreign.unknown.incl"/>
  240. </xs:choice>
  241. <xs:attributeGroup ref="global-atts"/>
  242. <xs:attributeGroup ref="univ-atts"/>
  243. <xs:attribute name="outputclass" type="xs:string"/>
  244. </xs:complexType>
  245. </xs:schema>