[15c7d39] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
| 2 | <!--
|
---|
| 3 | This file is part of DocBook V5.0
|
---|
| 4 |
|
---|
| 5 | Copyright 1992-2008 HaL Computer Systems, Inc.,
|
---|
| 6 | O'Reilly & Associates, Inc., ArborText, Inc., Fujitsu Software
|
---|
| 7 | Corporation, Norman Walsh, Sun Microsystems, Inc., and the
|
---|
| 8 | Organization for the Advancement of Structured Information
|
---|
| 9 | Standards (OASIS).
|
---|
| 10 |
|
---|
| 11 | Release: $Id: pool.rnc 7466 2007-09-27 14:03:55Z nwalsh $
|
---|
| 12 |
|
---|
| 13 | Permission to use, copy, modify and distribute the DocBook schema
|
---|
| 14 | and its accompanying documentation for any purpose and without fee
|
---|
| 15 | is hereby granted in perpetuity, provided that the above copyright
|
---|
| 16 | notice and this paragraph appear in all copies. The copyright
|
---|
| 17 | holders make no representation about the suitability of the schema
|
---|
| 18 | for any purpose. It is provided "as is" without expressed or implied
|
---|
| 19 | warranty.
|
---|
| 20 |
|
---|
| 21 | If you modify the DocBook schema in any way, label your schema as a
|
---|
| 22 | variant of DocBook. See the reference documentation
|
---|
| 23 | (http://docbook.org/tdg5/en/html/ch05.html#s-notdocbook)
|
---|
| 24 | for more information.
|
---|
| 25 |
|
---|
| 26 | Please direct all questions, bug reports, or suggestions for changes
|
---|
| 27 | to the docbook@lists.oasis-open.org mailing list. For more
|
---|
| 28 | information, see http://www.oasis-open.org/docbook/.
|
---|
| 29 |
|
---|
| 30 | ======================================================================
|
---|
| 31 | -->
|
---|
| 32 | <grammar ns="http://docbook.org/ns/docbook" xmlns:db="http://docbook.org/ns/docbook" xmlns:s="http://purl.oclc.org/dsdl/schematron" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:ctrl="http://nwalsh.com/xmlns/schema-control/" xmlns="http://relaxng.org/ns/structure/1.0">
|
---|
| 33 | <start combine="choice">
|
---|
| 34 | <ref name="db.admonition.blocks"/>
|
---|
| 35 | </start>
|
---|
| 36 | <define name="db.nopara.blocks" combine="choice">
|
---|
| 37 | <ref name="db.admonition.blocks"/>
|
---|
| 38 | </define>
|
---|
| 39 | <!-- ====================================================================== -->
|
---|
| 40 | <ctrl:exclude from="db.formal.blocks" exclude="db.admonition.blocks"/>
|
---|
| 41 | <ctrl:exclude from="db.admonition.blocks" exclude="db.admonition.blocks"/>
|
---|
| 42 | <ctrl:exclude from="db.footnote" exclude="db.admonition.blocks"/>
|
---|
| 43 | <ctrl:exclude from="db.caption" exclude="db.admonition.blocks"/>
|
---|
| 44 | <define name="db.admonition.blocks">
|
---|
| 45 | <choice>
|
---|
| 46 | <ref name="db.caution"/>
|
---|
| 47 | <ref name="db.important"/>
|
---|
| 48 | <ref name="db.note"/>
|
---|
| 49 | <ref name="db.tip"/>
|
---|
| 50 | <ref name="db.warning"/>
|
---|
| 51 | </choice>
|
---|
| 52 | </define>
|
---|
| 53 | <define name="db.admonition.contentmodel">
|
---|
| 54 | <ref name="db._info.title.only"/>
|
---|
| 55 | <oneOrMore>
|
---|
| 56 | <ref name="db.all.blocks"/>
|
---|
| 57 | </oneOrMore>
|
---|
| 58 | </define>
|
---|
| 59 | <!-- ====================================================================== -->
|
---|
| 60 | <div>
|
---|
| 61 | <db:refname>caution</db:refname>
|
---|
| 62 | <db:refpurpose>A note of caution</db:refpurpose>
|
---|
| 63 | <define name="db.caution.role.attribute">
|
---|
| 64 | <attribute name="role"/>
|
---|
| 65 | </define>
|
---|
| 66 | <define name="db.caution.attlist">
|
---|
| 67 | <interleave>
|
---|
| 68 | <optional>
|
---|
| 69 | <ref name="db.caution.role.attribute"/>
|
---|
| 70 | </optional>
|
---|
| 71 | <ref name="db.common.attributes"/>
|
---|
| 72 | <ref name="db.common.linking.attributes"/>
|
---|
| 73 | </interleave>
|
---|
| 74 | </define>
|
---|
| 75 | <define name="db.caution">
|
---|
| 76 | <element name="caution">
|
---|
| 77 | <ref name="db.caution.attlist"/>
|
---|
| 78 | <ref name="db.admonition.contentmodel"/>
|
---|
| 79 | </element>
|
---|
| 80 | </define>
|
---|
| 81 | </div>
|
---|
| 82 | <!-- ====================================================================== -->
|
---|
| 83 | <div>
|
---|
| 84 | <db:refname>important</db:refname>
|
---|
| 85 | <db:refpurpose>An admonition set off from the text</db:refpurpose>
|
---|
| 86 | <define name="db.important.role.attribute">
|
---|
| 87 | <attribute name="role"/>
|
---|
| 88 | </define>
|
---|
| 89 | <define name="db.important.attlist">
|
---|
| 90 | <interleave>
|
---|
| 91 | <optional>
|
---|
| 92 | <ref name="db.important.role.attribute"/>
|
---|
| 93 | </optional>
|
---|
| 94 | <ref name="db.common.attributes"/>
|
---|
| 95 | <ref name="db.common.linking.attributes"/>
|
---|
| 96 | </interleave>
|
---|
| 97 | </define>
|
---|
| 98 | <define name="db.important">
|
---|
| 99 | <element name="important">
|
---|
| 100 | <ref name="db.important.attlist"/>
|
---|
| 101 | <ref name="db.admonition.contentmodel"/>
|
---|
| 102 | </element>
|
---|
| 103 | </define>
|
---|
| 104 | </div>
|
---|
| 105 | <!-- ====================================================================== -->
|
---|
| 106 | <div>
|
---|
| 107 | <db:refname>note</db:refname>
|
---|
| 108 | <db:refpurpose>A message set off from the text</db:refpurpose>
|
---|
| 109 | <define name="db.note.role.attribute">
|
---|
| 110 | <attribute name="role"/>
|
---|
| 111 | </define>
|
---|
| 112 | <define name="db.note.attlist">
|
---|
| 113 | <interleave>
|
---|
| 114 | <optional>
|
---|
| 115 | <ref name="db.note.role.attribute"/>
|
---|
| 116 | </optional>
|
---|
| 117 | <ref name="db.common.attributes"/>
|
---|
| 118 | <ref name="db.common.linking.attributes"/>
|
---|
| 119 | </interleave>
|
---|
| 120 | </define>
|
---|
| 121 | <define name="db.note">
|
---|
| 122 | <element name="note">
|
---|
| 123 | <ref name="db.note.attlist"/>
|
---|
| 124 | <ref name="db.admonition.contentmodel"/>
|
---|
| 125 | </element>
|
---|
| 126 | </define>
|
---|
| 127 | </div>
|
---|
| 128 | <!-- ====================================================================== -->
|
---|
| 129 | <div>
|
---|
| 130 | <db:refname>tip</db:refname>
|
---|
| 131 | <db:refpurpose>A suggestion to the user, set off from the text</db:refpurpose>
|
---|
| 132 | <define name="db.tip.role.attribute">
|
---|
| 133 | <attribute name="role"/>
|
---|
| 134 | </define>
|
---|
| 135 | <define name="db.tip.attlist">
|
---|
| 136 | <interleave>
|
---|
| 137 | <optional>
|
---|
| 138 | <ref name="db.tip.role.attribute"/>
|
---|
| 139 | </optional>
|
---|
| 140 | <ref name="db.common.attributes"/>
|
---|
| 141 | <ref name="db.common.linking.attributes"/>
|
---|
| 142 | </interleave>
|
---|
| 143 | </define>
|
---|
| 144 | <define name="db.tip">
|
---|
| 145 | <element name="tip">
|
---|
| 146 | <ref name="db.tip.attlist"/>
|
---|
| 147 | <ref name="db.admonition.contentmodel"/>
|
---|
| 148 | </element>
|
---|
| 149 | </define>
|
---|
| 150 | </div>
|
---|
| 151 | <!-- ====================================================================== -->
|
---|
| 152 | <div>
|
---|
| 153 | <db:refname>warning</db:refname>
|
---|
| 154 | <db:refpurpose>An admonition set off from the text</db:refpurpose>
|
---|
| 155 | <define name="db.warning.role.attribute">
|
---|
| 156 | <attribute name="role"/>
|
---|
| 157 | </define>
|
---|
| 158 | <define name="db.warning.attlist">
|
---|
| 159 | <interleave>
|
---|
| 160 | <optional>
|
---|
| 161 | <ref name="db.warning.role.attribute"/>
|
---|
| 162 | </optional>
|
---|
| 163 | <ref name="db.common.attributes"/>
|
---|
| 164 | <ref name="db.common.linking.attributes"/>
|
---|
| 165 | </interleave>
|
---|
| 166 | </define>
|
---|
| 167 | <define name="db.warning">
|
---|
| 168 | <element name="warning">
|
---|
| 169 | <ref name="db.warning.attlist"/>
|
---|
| 170 | <ref name="db.admonition.contentmodel"/>
|
---|
| 171 | </element>
|
---|
| 172 | </define>
|
---|
| 173 | </div>
|
---|
| 174 | </grammar>
|
---|