glossaryMod.xsd 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- ============================================================= -->
  3. <!-- HEADER -->
  4. <!-- ============================================================= -->
  5. <!-- MODULE: DITA Glossary XSD Module -->
  6. <!-- VERSION: 1.1 -->
  7. <!-- DATE: November 2006 -->
  8. <!-- -->
  9. <!-- ============================================================= -->
  10. <!-- ============================================================= -->
  11. <!-- SYSTEM: Darwin Information Typing Architecture (DITA) -->
  12. <!-- -->
  13. <!-- PURPOSE: W3C XML Schema to describe DITA concepts -->
  14. <!-- -->
  15. <!-- ORIGINAL CREATION DATE: -->
  16. <!-- June 2006 -->
  17. <!-- -->
  18. <!-- (C) Copyright OASIS-Open.org 2006 -->
  19. <!-- All Rights Reserved. -->
  20. <!-- ============================================================= -->
  21. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/">
  22. <!-- ==================== Import Section ======================= -->
  23. <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="urn:oasis:names:tc:dita:xsd:xml.xsd:1.1"/>
  24. <xs:import namespace="http://dita.oasis-open.org/architecture/2005/" schemaLocation="urn:oasis:names:tc:dita:xsd:ditaarch.xsd:1.1"/>
  25. <!--Embed concept to get specific elements -->
  26. <xs:element name="glossentry">
  27. <xs:annotation>
  28. <xs:documentation></xs:documentation>
  29. </xs:annotation>
  30. <xs:complexType>
  31. <xs:complexContent>
  32. <xs:extension base="glossentry.class">
  33. <xs:attribute ref="class" default="- topic/topic concept/concept glossentry/glossentry "/>
  34. </xs:extension>
  35. </xs:complexContent>
  36. </xs:complexType>
  37. </xs:element>
  38. <xs:element name="glossterm">
  39. <xs:annotation>
  40. <xs:documentation></xs:documentation>
  41. </xs:annotation>
  42. <xs:complexType mixed="true">
  43. <xs:complexContent>
  44. <xs:extension base="glossterm.class">
  45. <xs:attribute ref="class" default="- topic/title concept/title glossentry/glossterm "/>
  46. </xs:extension>
  47. </xs:complexContent>
  48. </xs:complexType>
  49. </xs:element>
  50. <xs:element name="glossdef">
  51. <xs:annotation>
  52. <xs:documentation></xs:documentation>
  53. </xs:annotation>
  54. <xs:complexType mixed="true">
  55. <xs:complexContent>
  56. <xs:extension base="glossdef.class">
  57. <xs:attribute ref="class" default="- topic/abstract concept/abstract glossentry/glossdef " />
  58. </xs:extension>
  59. </xs:complexContent>
  60. </xs:complexType>
  61. </xs:element>
  62. <xs:group name="glossentry-info-types">
  63. <xs:choice>
  64. <xs:group ref="no-topic-nesting"/>
  65. <xs:group ref="info-types"/>
  66. </xs:choice>
  67. </xs:group>
  68. <!-- Base type: topic.class -->
  69. <xs:complexType name="glossentry.class">
  70. <xs:sequence>
  71. <xs:group ref="glossterm"/>
  72. <xs:group ref="glossdef" />
  73. <xs:group ref="related-links" minOccurs="0"/>
  74. <xs:group ref="glossentry-info-types" minOccurs="0" maxOccurs="unbounded"/>
  75. </xs:sequence>
  76. <xs:attribute name="id" type="xs:ID" use="required"/>
  77. <xs:attribute name="conref" type="xs:string"/>
  78. <xs:attributeGroup ref="select-atts"/>
  79. <xs:attribute ref="ditaarch:DITAArchVersion" />
  80. <xs:attribute name="outputclass" type="xs:string"/>
  81. <xs:attributeGroup ref="localization-atts"/>
  82. <xs:attributeGroup ref="global-atts"/>
  83. </xs:complexType>
  84. <xs:complexType name="glossterm.class" mixed="true">
  85. <xs:choice minOccurs="0" maxOccurs="unbounded">
  86. <xs:group ref="title.cnt"/>
  87. </xs:choice>
  88. <xs:attribute name="outputclass" type="xs:string"/>
  89. <xs:attribute name="base" type="xs:string" />
  90. <xs:attributeGroup ref="base-attribute-extensions"/>
  91. <xs:attributeGroup ref="id-atts"/>
  92. <xs:attributeGroup ref="localization-atts"/>
  93. <xs:attributeGroup ref="global-atts"/>
  94. </xs:complexType>
  95. <xs:complexType name="glossdef.class" mixed="true">
  96. <xs:choice minOccurs="0" maxOccurs="unbounded">
  97. <xs:group ref="section.notitle.cnt"/>
  98. <xs:group ref="shortdesc"/>
  99. </xs:choice>
  100. <xs:attribute name="outputclass" type="xs:string"/>
  101. <xs:attributeGroup ref="univ-atts"/>
  102. <xs:attributeGroup ref="global-atts"/>
  103. </xs:complexType>
  104. </xs:schema>