toc.xsd 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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: toc.rnc 8931 2010-10-20 13:29:20Z 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. <xs:attributeGroup name="db.toc.pagenum.attribute">
  31. <xs:attribute name="pagenum" use="required"/>
  32. </xs:attributeGroup>
  33. <!-- ====================================================================== -->
  34. <xs:attributeGroup name="db.toc.role.attribute">
  35. <xs:attribute name="role" use="required"/>
  36. </xs:attributeGroup>
  37. <xs:attributeGroup name="db.toc.attlist">
  38. <xs:attribute name="role"/>
  39. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  40. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  41. </xs:attributeGroup>
  42. <xs:group name="db.toc.info">
  43. <xs:sequence>
  44. <xs:group ref="db:db._info.title.only"/>
  45. </xs:sequence>
  46. </xs:group>
  47. <xs:element name="toc">
  48. <xs:complexType>
  49. <xs:sequence>
  50. <xs:group ref="db:db.toc.info"/>
  51. <xs:group minOccurs="0" maxOccurs="unbounded" ref="db:db.all.blocks"/>
  52. <xs:choice minOccurs="0" maxOccurs="unbounded">
  53. <xs:element ref="db:tocdiv"/>
  54. <xs:element ref="db:tocentry"/>
  55. </xs:choice>
  56. </xs:sequence>
  57. <xs:attributeGroup ref="db:db.toc.attlist"/>
  58. </xs:complexType>
  59. </xs:element>
  60. <!-- ====================================================================== -->
  61. <xs:attributeGroup name="db.tocdiv.role.attribute">
  62. <xs:attribute name="role" use="required"/>
  63. </xs:attributeGroup>
  64. <xs:attributeGroup name="db.tocdiv.pagenum.attribute">
  65. <xs:attributeGroup ref="db:db.toc.pagenum.attribute"/>
  66. </xs:attributeGroup>
  67. <xs:attributeGroup name="db.tocdiv.attlist">
  68. <xs:attribute name="role"/>
  69. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  70. <xs:attribute name="pagenum"/>
  71. <xs:attribute name="linkend" type="xs:IDREF"/>
  72. </xs:attributeGroup>
  73. <xs:group name="db.tocdiv.info">
  74. <xs:sequence>
  75. <xs:group ref="db:db._info"/>
  76. </xs:sequence>
  77. </xs:group>
  78. <xs:element name="tocdiv">
  79. <xs:complexType>
  80. <xs:sequence>
  81. <xs:group ref="db:db.tocdiv.info"/>
  82. <xs:group minOccurs="0" maxOccurs="unbounded" ref="db:db.all.blocks"/>
  83. <xs:choice maxOccurs="unbounded">
  84. <xs:element ref="db:tocdiv"/>
  85. <xs:element ref="db:tocentry"/>
  86. </xs:choice>
  87. </xs:sequence>
  88. <xs:attributeGroup ref="db:db.tocdiv.attlist"/>
  89. </xs:complexType>
  90. </xs:element>
  91. <!-- ====================================================================== -->
  92. <xs:attributeGroup name="db.tocentry.role.attribute">
  93. <xs:attribute name="role" use="required"/>
  94. </xs:attributeGroup>
  95. <xs:attributeGroup name="db.tocentry.pagenum.attribute">
  96. <xs:attributeGroup ref="db:db.toc.pagenum.attribute"/>
  97. </xs:attributeGroup>
  98. <xs:attributeGroup name="db.tocentry.attlist">
  99. <xs:attribute name="role"/>
  100. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  101. <xs:attribute name="pagenum"/>
  102. <xs:attribute name="linkend" type="xs:IDREF"/>
  103. </xs:attributeGroup>
  104. <xs:element name="tocentry">
  105. <xs:complexType mixed="true">
  106. <xs:group minOccurs="0" maxOccurs="unbounded" ref="db:db.all.inlines"/>
  107. <xs:attributeGroup ref="db:db.tocentry.attlist"/>
  108. </xs:complexType>
  109. </xs:element>
  110. </xs:schema>