topicProcesy5.xsd 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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:choice>
  47. </xs:group>
  48. </xs:redefine>
  49. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:tblDeclMod.xsd:1.2"/>
  50. <!-- ======= MetaData elements, plus keyword and indexterm ======= -->
  51. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:metaDeclMod.xsd:1.2"/>
  52. <xs:redefine schemaLocation="urn:oasis:names:tc:dita:xsd:commonElementGrp.xsd:1.2">
  53. <xs:group name="keyword">
  54. <xs:choice>
  55. <xs:group ref="keyword"/>
  56. <xs:group ref="pr-d-keyword"/>
  57. <xs:group ref="ui-d-keyword"/>
  58. <xs:group ref="sw-d-keyword"/>
  59. </xs:choice>
  60. </xs:group>
  61. <xs:group name="ph">
  62. <xs:choice>
  63. <xs:group ref="ph"/>
  64. <xs:group ref="pr-d-ph"/>
  65. <xs:group ref="ui-d-ph"/>
  66. <xs:group ref="hi-d-ph"/>
  67. <xs:group ref="sw-d-ph"/>
  68. </xs:choice>
  69. </xs:group>
  70. <xs:group name="pre">
  71. <xs:choice>
  72. <xs:group ref="pre"/>
  73. <xs:group ref="pr-d-pre"/>
  74. <xs:group ref="ui-d-pre"/>
  75. <xs:group ref="sw-d-pre"/>
  76. </xs:choice>
  77. </xs:group>
  78. <xs:group name="dl">
  79. <xs:choice>
  80. <xs:group ref="dl"/>
  81. <xs:group ref="pr-d-dl"/>
  82. </xs:choice>
  83. </xs:group>
  84. <xs:group name="fig">
  85. <xs:choice>
  86. <xs:group ref="fig"/>
  87. <xs:group ref="pr-d-fig"/>
  88. <xs:group ref="ut-d-fig"/>
  89. </xs:choice>
  90. </xs:group>
  91. <xs:group name="index-base">
  92. <xs:choice>
  93. <xs:group ref="index-base"/>
  94. <xs:group ref="indexing-d-index-base"/>
  95. </xs:choice>
  96. </xs:group>
  97. <xs:group name="note">
  98. <xs:choice>
  99. <xs:group ref="note"/>
  100. <xs:group ref="hazard-d-note"/>
  101. </xs:choice>
  102. </xs:group>
  103. <xs:group name="term">
  104. <xs:choice>
  105. <xs:group ref="term"/>
  106. <xs:group ref="abbrev-d-term"/>
  107. </xs:choice>
  108. </xs:group>
  109. <xs:attributeGroup name="props-attribute-extensions">
  110. <xs:attributeGroup ref="props-attribute-extensions"/>
  111. <xs:attributeGroup ref="procesy5-dita-extensions"/>
  112. </xs:attributeGroup>
  113. <xs:attributeGroup name="base-attribute-extensions">
  114. <xs:attributeGroup ref="base-attribute-extensions"/>
  115. <xs:attributeGroup ref="procesy5-dita-extensions"/>
  116. </xs:attributeGroup>
  117. </xs:redefine>
  118. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:topicMod.xsd:1.2"/>
  119. <xs:group name="info-types">
  120. <xs:sequence/>
  121. </xs:group>
  122. <xs:attributeGroup name="domains-att">
  123. <xs:attribute name="domains" type="xs:string"
  124. 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)"
  125. />
  126. </xs:attributeGroup>
  127. <xs:attributeGroup name="procesy5-dita-extensions">
  128. <xs:attribute name="ID_PROCES"/>
  129. <xs:attribute name="ID_ZASOB"/>
  130. <xs:attribute name="ID_CRM_ASSOC"/>
  131. <xs:attribute name="FIELD"/>
  132. <xs:attribute name="typeName"/>
  133. <xs:attribute name="xpath"/>
  134. </xs:attributeGroup>
  135. <xs:element name="RelatedFeature">
  136. <xs:complexType mixed="true">
  137. <xs:choice>
  138. <xs:group ref="topic"/>
  139. <xs:choice maxOccurs="unbounded">
  140. <xs:group ref="ph"/>
  141. <xs:group ref="p"/>
  142. </xs:choice>
  143. </xs:choice>
  144. <xs:attribute name="typeName" use="required">
  145. <xs:annotation>
  146. <xs:documentation>ex: typeName="p5_default_db:BILLING_OWNER"</xs:documentation>
  147. </xs:annotation>
  148. <xs:simpleType>
  149. <xs:restriction base="xs:string">
  150. <xs:pattern value=".*:.*"/>
  151. </xs:restriction>
  152. </xs:simpleType>
  153. </xs:attribute>
  154. <xs:attribute name="xpath" type="xs:Name" use="required">
  155. <xs:annotation>
  156. <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>
  157. </xs:annotation>
  158. </xs:attribute>
  159. <xs:attribute name="xpath_value" type="xs:string">
  160. <xs:annotation>
  161. <xs:documentation>Wartosc do wstawienia w xpath, moze byc xpath. Jak nie ma, to nadpisac z template</xs:documentation>
  162. </xs:annotation>
  163. </xs:attribute>
  164. </xs:complexType>
  165. </xs:element>
  166. </xs:schema>