admonitions.xsd 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. This file is part of DocBook V5.0
  4. Copyright 1992-2008 HaL Computer Systems, Inc.,
  5. O'Reilly & Associates, Inc., ArborText, Inc., Fujitsu Software
  6. Corporation, Norman Walsh, Sun Microsystems, Inc., and the
  7. Organization for the Advancement of Structured Information
  8. Standards (OASIS).
  9. Release: $Id: pool.rnc 7466 2007-09-27 14:03:55Z nwalsh $
  10. Permission to use, copy, modify and distribute the DocBook schema
  11. and its accompanying documentation for any purpose and without fee
  12. is hereby granted in perpetuity, provided that the above copyright
  13. notice and this paragraph appear in all copies. The copyright
  14. holders make no representation about the suitability of the schema
  15. for any purpose. It is provided "as is" without expressed or implied
  16. warranty.
  17. If you modify the DocBook schema in any way, label your schema as a
  18. variant of DocBook. See the reference documentation
  19. (http://docbook.org/tdg5/en/html/ch05.html#s-notdocbook)
  20. for more information.
  21. Please direct all questions, bug reports, or suggestions for changes
  22. to the docbook@lists.oasis-open.org mailing list. For more
  23. information, see http://www.oasis-open.org/docbook/.
  24. ======================================================================
  25. -->
  26. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://docbook.org/ns/docbook" xmlns:dbs="http://docbook.org/ns/docbook-slides" xmlns:db="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
  27. <xs:import namespace="http://docbook.org/ns/docbook-slides" schemaLocation="slides.xsd"/>
  28. <xs:import namespace="http://www.w3.org/1999/xlink" schemaLocation="xlink.xsd"/>
  29. <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
  30. <!-- ====================================================================== -->
  31. <xs:element name="db.admonition.blocks" abstract="true"/>
  32. <xs:complexType name="db.admonition.contentmodel">
  33. <xs:sequence>
  34. <xs:group ref="db:db._info.title.only"/>
  35. <xs:group maxOccurs="unbounded" ref="db:db.all.blocks"/>
  36. </xs:sequence>
  37. </xs:complexType>
  38. <!-- ====================================================================== -->
  39. <xs:attributeGroup name="db.caution.role.attribute">
  40. <xs:attribute name="role" use="required"/>
  41. </xs:attributeGroup>
  42. <xs:attributeGroup name="db.caution.attlist">
  43. <xs:attribute name="role"/>
  44. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  45. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  46. </xs:attributeGroup>
  47. <xs:element name="caution" substitutionGroup="db:db.admonition.blocks">
  48. <xs:complexType>
  49. <xs:complexContent>
  50. <xs:extension base="db:db.admonition.contentmodel">
  51. <xs:attributeGroup ref="db:db.caution.attlist"/>
  52. </xs:extension>
  53. </xs:complexContent>
  54. </xs:complexType>
  55. </xs:element>
  56. <!-- ====================================================================== -->
  57. <xs:attributeGroup name="db.important.role.attribute">
  58. <xs:attribute name="role" use="required"/>
  59. </xs:attributeGroup>
  60. <xs:attributeGroup name="db.important.attlist">
  61. <xs:attribute name="role"/>
  62. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  63. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  64. </xs:attributeGroup>
  65. <xs:element name="important" substitutionGroup="db:db.admonition.blocks">
  66. <xs:complexType>
  67. <xs:complexContent>
  68. <xs:extension base="db:db.admonition.contentmodel">
  69. <xs:attributeGroup ref="db:db.important.attlist"/>
  70. </xs:extension>
  71. </xs:complexContent>
  72. </xs:complexType>
  73. </xs:element>
  74. <!-- ====================================================================== -->
  75. <xs:attributeGroup name="db.note.role.attribute">
  76. <xs:attribute name="role" use="required"/>
  77. </xs:attributeGroup>
  78. <xs:attributeGroup name="db.note.attlist">
  79. <xs:attribute name="role"/>
  80. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  81. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  82. </xs:attributeGroup>
  83. <xs:element name="note" substitutionGroup="db:db.admonition.blocks">
  84. <xs:complexType>
  85. <xs:complexContent>
  86. <xs:extension base="db:db.admonition.contentmodel">
  87. <xs:attributeGroup ref="db:db.note.attlist"/>
  88. </xs:extension>
  89. </xs:complexContent>
  90. </xs:complexType>
  91. </xs:element>
  92. <!-- ====================================================================== -->
  93. <xs:attributeGroup name="db.tip.role.attribute">
  94. <xs:attribute name="role" use="required"/>
  95. </xs:attributeGroup>
  96. <xs:attributeGroup name="db.tip.attlist">
  97. <xs:attribute name="role"/>
  98. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  99. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  100. </xs:attributeGroup>
  101. <xs:element name="tip" substitutionGroup="db:db.admonition.blocks">
  102. <xs:complexType>
  103. <xs:complexContent>
  104. <xs:extension base="db:db.admonition.contentmodel">
  105. <xs:attributeGroup ref="db:db.tip.attlist"/>
  106. </xs:extension>
  107. </xs:complexContent>
  108. </xs:complexType>
  109. </xs:element>
  110. <!-- ====================================================================== -->
  111. <xs:attributeGroup name="db.warning.role.attribute">
  112. <xs:attribute name="role" use="required"/>
  113. </xs:attributeGroup>
  114. <xs:attributeGroup name="db.warning.attlist">
  115. <xs:attribute name="role"/>
  116. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  117. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  118. </xs:attributeGroup>
  119. <xs:element name="warning" substitutionGroup="db:db.admonition.blocks">
  120. <xs:complexType>
  121. <xs:complexContent>
  122. <xs:extension base="db:db.admonition.contentmodel">
  123. <xs:attributeGroup ref="db:db.warning.attlist"/>
  124. </xs:extension>
  125. </xs:complexContent>
  126. </xs:complexType>
  127. </xs:element>
  128. </xs:schema>