topicProcesy5.xsd 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- ============================================================= -->
  3. <!-- HEADER -->
  4. <!-- ============================================================= -->
  5. <!-- MODULE: DITA Topic XSD -->
  6. <!-- VERSION: 1.2 -->
  7. <!-- DATE: November 2009 -->
  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, 2009 -->
  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"
  23. attributeFormDefault="unqualified" xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/">
  24. <!-- Add the domains to the base topic XML Schema -->
  25. <!-- ================ TOPIC DOMAINS ===================== -->
  26. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:uiDomain.xsd:1.2"/>
  27. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:softwareDomain.xsd:1.2"/>
  28. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:highlightDomain.xsd:1.2"/>
  29. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:programmingDomain.xsd:1.2"/>
  30. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:utilitiesDomain.xsd:1.2"/>
  31. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:indexingDomain.xsd:1.2"/>
  32. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:hazardstatementDomain.xsd:1.2"/>
  33. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:abbreviateDomain.xsd:1.2"/>
  34. <!-- ================ GROUP DEFINITIONS ===================== -->
  35. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:metaDeclGrp.xsd:1.2"/>
  36. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:tblDeclGrp.xsd:1.2"/>
  37. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:topicGrp.xsd:1.2"/>
  38. <!-- ================= MODULE INLCUDE DEFINITION ================== -->
  39. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:commonElementMod.xsd:1.2"/>
  40. <!-- ======== Table elements ======== -->
  41. <xs:redefine schemaLocation="urn:oasis:names:tc:dita:xsd:commonElementMod.xsd:1.2">
  42. <xs:group name="stentry.content">
  43. <xs:choice>
  44. <xs:group ref="stentry.content"/>
  45. <xs:element ref="RelatedFeature"/>
  46. <xs:element ref="RelatedFeaturesForEach"/>
  47. </xs:choice>
  48. </xs:group>
  49. <xs:group name="p.content">
  50. <xs:choice>
  51. <xs:group ref="p.content"/>
  52. <xs:element ref="RelatedFeaturesForEach"/>
  53. </xs:choice>
  54. </xs:group>
  55. </xs:redefine>
  56. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:tblDeclMod.xsd:1.2"/>
  57. <!-- ======= MetaData elements, plus keyword and indexterm ======= -->
  58. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:metaDeclMod.xsd:1.2"/>
  59. <xs:redefine schemaLocation="urn:oasis:names:tc:dita:xsd:commonElementGrp.xsd:1.2">
  60. <xs:group name="keyword">
  61. <xs:choice>
  62. <xs:group ref="keyword"/>
  63. <xs:group ref="pr-d-keyword"/>
  64. <xs:group ref="ui-d-keyword"/>
  65. <xs:group ref="sw-d-keyword"/>
  66. </xs:choice>
  67. </xs:group>
  68. <xs:group name="ph">
  69. <xs:choice>
  70. <xs:group ref="ph"/>
  71. <xs:group ref="pr-d-ph"/>
  72. <xs:group ref="ui-d-ph"/>
  73. <xs:group ref="hi-d-ph"/>
  74. <xs:group ref="sw-d-ph"/>
  75. </xs:choice>
  76. </xs:group>
  77. <xs:group name="pre">
  78. <xs:choice>
  79. <xs:group ref="pre"/>
  80. <xs:group ref="pr-d-pre"/>
  81. <xs:group ref="ui-d-pre"/>
  82. <xs:group ref="sw-d-pre"/>
  83. </xs:choice>
  84. </xs:group>
  85. <xs:group name="dl">
  86. <xs:choice>
  87. <xs:group ref="dl"/>
  88. <xs:group ref="pr-d-dl"/>
  89. </xs:choice>
  90. </xs:group>
  91. <xs:group name="fig">
  92. <xs:choice>
  93. <xs:group ref="fig"/>
  94. <xs:group ref="pr-d-fig"/>
  95. <xs:group ref="ut-d-fig"/>
  96. </xs:choice>
  97. </xs:group>
  98. <xs:group name="index-base">
  99. <xs:choice>
  100. <xs:group ref="index-base"/>
  101. <xs:group ref="indexing-d-index-base"/>
  102. </xs:choice>
  103. </xs:group>
  104. <xs:group name="note">
  105. <xs:choice>
  106. <xs:group ref="note"/>
  107. <xs:group ref="hazard-d-note"/>
  108. </xs:choice>
  109. </xs:group>
  110. <xs:group name="term">
  111. <xs:choice>
  112. <xs:group ref="term"/>
  113. <xs:group ref="abbrev-d-term"/>
  114. </xs:choice>
  115. </xs:group>
  116. <xs:attributeGroup name="props-attribute-extensions">
  117. <xs:attributeGroup ref="props-attribute-extensions"/>
  118. <xs:attributeGroup ref="procesy5-dita-extensions"/>
  119. </xs:attributeGroup>
  120. <xs:attributeGroup name="base-attribute-extensions">
  121. <xs:attributeGroup ref="base-attribute-extensions"/>
  122. <xs:attributeGroup ref="procesy5-dita-extensions"/>
  123. </xs:attributeGroup>
  124. </xs:redefine>
  125. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:topicMod.xsd:1.2"/>
  126. <xs:group name="info-types">
  127. <xs:sequence/>
  128. </xs:group>
  129. <xs:attributeGroup name="domains-att">
  130. <xs:attribute name="domains" type="xs:string"
  131. default="(topic abbrev-d) (topic hazard-d) (topic hi-d) (topic indexing-d) (topic pr-d) (topic sw-d) (topic ui-d) (topic ut-d)"
  132. />
  133. </xs:attributeGroup>
  134. <xs:attributeGroup name="procesy5-dita-extensions">
  135. <xs:attribute name="ID_PROCES"/>
  136. <xs:attribute name="ID_ZASOB"/>
  137. <xs:attribute name="ID_CRM_ASSOC"/>
  138. <xs:attribute name="FIELD"/>
  139. <xs:attribute name="typeName"/>
  140. <xs:attribute name="xpath"/>
  141. </xs:attributeGroup>
  142. <xs:element name="RelatedFeature">
  143. <xs:complexType mixed="true">
  144. <xs:choice>
  145. <xs:group ref="topic"/>
  146. <xs:choice maxOccurs="unbounded">
  147. <xs:group ref="ph"/>
  148. <xs:group ref="p"/>
  149. </xs:choice>
  150. </xs:choice>
  151. <xs:attribute name="typeName" use="required">
  152. <xs:annotation>
  153. <xs:documentation>ex: typeName="p5_default_db:BILLING_OWNER"</xs:documentation>
  154. </xs:annotation>
  155. <xs:simpleType>
  156. <xs:restriction base="xs:string">
  157. <xs:pattern value=".*:.*"/>
  158. </xs:restriction>
  159. </xs:simpleType>
  160. </xs:attribute>
  161. <xs:attribute name="xpath" type="xs:Name" use="required">
  162. <xs:annotation>
  163. <xs:documentation>Like ID_BILLING_OWNER to show that (in some xpath meaning) current()/ID_BILLING_OWNER = node()[@typeName]/node()[type()='primary_key']</xs:documentation>
  164. </xs:annotation>
  165. </xs:attribute>
  166. <xs:attribute name="xpath_value" type="xs:string">
  167. <xs:annotation>
  168. <xs:documentation>Wartosc do wstawienia w xpath, moze byc xpath. Jak nie ma, to nadpisac z template</xs:documentation>
  169. </xs:annotation>
  170. </xs:attribute>
  171. </xs:complexType>
  172. </xs:element>
  173. <xs:element name="RelatedFeaturesForEach">
  174. <xs:complexType>
  175. <xs:choice>
  176. <xs:group ref="topic"/>
  177. <xs:choice maxOccurs="unbounded">
  178. <xs:group ref="ph"/>
  179. <xs:group ref="p"/>
  180. </xs:choice>
  181. </xs:choice>
  182. <xs:attribute name="typeName" use="required">
  183. <xs:annotation>
  184. <xs:documentation>ex: typeName="p5_default_db:BILLING_OWNER"</xs:documentation>
  185. </xs:annotation>
  186. <xs:simpleType>
  187. <xs:restriction base="xs:string">
  188. <xs:pattern value=".*:.*"/>
  189. </xs:restriction>
  190. </xs:simpleType>
  191. </xs:attribute>
  192. <xs:attribute name="xpath" type="xs:Name" use="required">
  193. <xs:annotation>
  194. <xs:documentation>Like ID_BILLING_OWNER to show that (in some xpath meaning) current()/ID_BILLING_OWNER = node()[@typeName]/node()[type()='primary_key']</xs:documentation>
  195. </xs:annotation>
  196. </xs:attribute>
  197. <xs:attribute name="xpath_value" type="xs:string">
  198. <xs:annotation>
  199. <xs:documentation>Wartosc do wstawienia w xpath, moze byc xpath. Jak nie ma, to nadpisac z template</xs:documentation>
  200. </xs:annotation>
  201. </xs:attribute>
  202. </xs:complexType>
  203. </xs:element>
  204. </xs:schema>