[eef46e9] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[4fe47e3] | 2 | <grammar xmlns:c="http://schema.cross-lfs.org/book" xmlns="http://relaxng.org/ns/structure/1.0">
|
---|
| 3 | <!-- We are building around the DocBook Schema -->
|
---|
| 4 | <include href="docbook.rng">
|
---|
| 5 | <define name="sect1">
|
---|
| 6 | <choice>
|
---|
| 7 | <element name="sect1">
|
---|
| 8 | <ref name="sect1.attlist"/>
|
---|
| 9 | <optional>
|
---|
| 10 | <ref name="sect1info"/>
|
---|
| 11 | </optional>
|
---|
| 12 | <ref name="sect.title.content"/>
|
---|
| 13 | <zeroOrMore>
|
---|
| 14 | <ref name="nav.class"/>
|
---|
| 15 | </zeroOrMore>
|
---|
| 16 | <choice>
|
---|
| 17 | <group>
|
---|
| 18 | <oneOrMore>
|
---|
| 19 | <ref name="divcomponent.mix"/>
|
---|
| 20 | </oneOrMore>
|
---|
| 21 | <choice>
|
---|
| 22 | <zeroOrMore>
|
---|
| 23 | <ref name="refentry.class"/>
|
---|
| 24 | </zeroOrMore>
|
---|
| 25 | <zeroOrMore>
|
---|
| 26 | <ref name="sect2"/>
|
---|
| 27 | </zeroOrMore>
|
---|
| 28 | <zeroOrMore>
|
---|
| 29 | <ref name="simplesect"/>
|
---|
| 30 | </zeroOrMore>
|
---|
| 31 | </choice>
|
---|
| 32 | </group>
|
---|
| 33 | <oneOrMore>
|
---|
| 34 | <ref name="refentry.class"/>
|
---|
| 35 | </oneOrMore>
|
---|
| 36 | <oneOrMore>
|
---|
| 37 | <ref name="sect2"/>
|
---|
| 38 | </oneOrMore>
|
---|
| 39 | <oneOrMore>
|
---|
| 40 | <ref name="simplesect"/>
|
---|
| 41 | </oneOrMore>
|
---|
| 42 | </choice>
|
---|
| 43 | <zeroOrMore>
|
---|
| 44 | <ref name="nav.class"/>
|
---|
| 45 | </zeroOrMore>
|
---|
| 46 | </element>
|
---|
[5c560cb] | 47 | <ref name="clfs.sect.package"/>
|
---|
[4fe47e3] | 48 | </choice>
|
---|
| 49 | </define>
|
---|
| 50 | </include>
|
---|
[d4c109d] | 51 | <!-- Common Attributes -->
|
---|
| 52 | <define name="xml.attrib.base">
|
---|
| 53 | <optional>
|
---|
| 54 | <attribute name="xml:base"/>
|
---|
| 55 | </optional>
|
---|
| 56 | </define>
|
---|
| 57 | <define name="xml.attrib.id">
|
---|
| 58 | <attribute name="id"/>
|
---|
| 59 | </define>
|
---|
[4fe47e3] | 60 | <!-- Extend the standard profiling attributes -->
|
---|
| 61 | <define name="local.effectivity.attrib" combine="interleave">
|
---|
| 62 | <ref name="clfs.attrib.arch"/>
|
---|
| 63 | <ref name="clfs.attrib.bits"/>
|
---|
| 64 | <ref name="clfs.attrib.multilib"/>
|
---|
| 65 | </define>
|
---|
[5c560cb] | 66 | <!-- Profiling Attributes -->
|
---|
[4fe47e3] | 67 | <define name="clfs.attrib.arch">
|
---|
| 68 | <optional>
|
---|
| 69 | <attribute name="c:arch"/>
|
---|
| 70 | </optional>
|
---|
| 71 | </define>
|
---|
| 72 | <define name="clfs.attrib.bits">
|
---|
| 73 | <optional>
|
---|
| 74 | <attribute name="c:bits"/>
|
---|
| 75 | </optional>
|
---|
| 76 | </define>
|
---|
| 77 | <define name="clfs.attrib.multilib">
|
---|
| 78 | <optional>
|
---|
| 79 | <attribute name="c:multilib">
|
---|
| 80 | <choice>
|
---|
| 81 | <value>true</value>
|
---|
| 82 | <value>false</value>
|
---|
| 83 | </choice>
|
---|
| 84 | </attribute>
|
---|
| 85 | </optional>
|
---|
| 86 | </define>
|
---|
[5c560cb] | 87 | <!-- Inline Elements -->
|
---|
| 88 | <define name="clfs.inline">
|
---|
[9db1668] | 89 | <zeroOrMore>
|
---|
[4fe47e3] | 90 | <choice>
|
---|
[9db1668] | 91 | <ref name="clfs.inline.literal"/>
|
---|
| 92 | <ref name="clfs.inline.replaceable"/>
|
---|
| 93 | <ref name="clfs.inline.application"/>
|
---|
[5c560cb] | 94 | <ref name="clfs.inline.dirname"/>
|
---|
| 95 | <ref name="clfs.inline.filename"/>
|
---|
| 96 | <ref name="clfs.inline.command"/>
|
---|
| 97 | <text/>
|
---|
[4fe47e3] | 98 | </choice>
|
---|
[9db1668] | 99 | </zeroOrMore>
|
---|
[4fe47e3] | 100 | </define>
|
---|
[9db1668] | 101 | <define name="clfs.inline.common.attrib">
|
---|
| 102 | <ref name="clfs.attrib.arch"/>
|
---|
| 103 | <ref name="clfs.attrib.bits"/>
|
---|
| 104 | <ref name="clfs.attrib.multilib"/>
|
---|
| 105 | </define>
|
---|
| 106 | <define name="clfs.inline.literal">
|
---|
| 107 | <element name="c:literal">
|
---|
| 108 | <ref name="clfs.inline.common.attrib"/>
|
---|
| 109 | <ref name="clfs.inline"/>
|
---|
| 110 | </element>
|
---|
| 111 | </define>
|
---|
| 112 | <define name="clfs.inline.replaceable">
|
---|
| 113 | <element name="c:replaceable">
|
---|
| 114 | <ref name="clfs.inline.common.attrib"/>
|
---|
| 115 | <ref name="clfs.inline"/>
|
---|
| 116 | </element>
|
---|
| 117 | </define>
|
---|
| 118 | <define name="clfs.inline.application">
|
---|
| 119 | <element name="c:application">
|
---|
| 120 | <ref name="clfs.inline.common.attrib"/>
|
---|
[5c560cb] | 121 | <ref name="clfs.inline"/>
|
---|
| 122 | </element>
|
---|
| 123 | </define>
|
---|
| 124 | <define name="clfs.inline.dirname">
|
---|
| 125 | <element name="c:dirname">
|
---|
[9db1668] | 126 | <ref name="clfs.inline.common.attrib"/>
|
---|
[5c560cb] | 127 | <ref name="clfs.inline"/>
|
---|
| 128 | </element>
|
---|
| 129 | </define>
|
---|
| 130 | <define name="clfs.inline.filename">
|
---|
| 131 | <element name="c:filename">
|
---|
[9db1668] | 132 | <ref name="clfs.inline.common.attrib"/>
|
---|
[5c560cb] | 133 | <ref name="clfs.inline"/>
|
---|
| 134 | </element>
|
---|
| 135 | </define>
|
---|
| 136 | <define name="clfs.inline.command">
|
---|
| 137 | <element name="c:command">
|
---|
[9db1668] | 138 | <ref name="clfs.inline.common.attrib"/>
|
---|
[5c560cb] | 139 | <ref name="clfs.inline"/>
|
---|
| 140 | </element>
|
---|
| 141 | </define>
|
---|
| 142 | <!-- Block Elements -->
|
---|
[f59c2ec] | 143 | <define name="clfs.package.para">
|
---|
[5c560cb] | 144 | <element name="c:para">
|
---|
[f59c2ec] | 145 | <ref name="clfs.attrib.arch"/>
|
---|
| 146 | <ref name="clfs.attrib.bits"/>
|
---|
| 147 | <ref name="clfs.attrib.multilib"/>
|
---|
[5c560cb] | 148 | <ref name="clfs.inline"/>
|
---|
| 149 | </element>
|
---|
| 150 | </define>
|
---|
[f59c2ec] | 151 | <define name="clfs.package.note">
|
---|
[5c560cb] | 152 | <element name="c:note">
|
---|
[f59c2ec] | 153 | <ref name="clfs.attrib.arch"/>
|
---|
| 154 | <ref name="clfs.attrib.bits"/>
|
---|
| 155 | <ref name="clfs.attrib.multilib"/>
|
---|
[5c560cb] | 156 | <zeroOrMore>
|
---|
[babec4b] | 157 | <choice>
|
---|
| 158 | <ref name="clfs.package.para"/>
|
---|
| 159 | <ref name="clfs.package.command"/>
|
---|
| 160 | </choice>
|
---|
| 161 | </zeroOrMore>
|
---|
| 162 | </element>
|
---|
| 163 | </define>
|
---|
| 164 | <define name="clfs.package.warning">
|
---|
| 165 | <element name="c:note">
|
---|
| 166 | <ref name="clfs.attrib.arch"/>
|
---|
| 167 | <ref name="clfs.attrib.bits"/>
|
---|
| 168 | <ref name="clfs.attrib.multilib"/>
|
---|
| 169 | <zeroOrMore>
|
---|
| 170 | <choice>
|
---|
| 171 | <ref name="clfs.package.para"/>
|
---|
| 172 | <ref name="clfs.package.command"/>
|
---|
| 173 | </choice>
|
---|
[5c560cb] | 174 | </zeroOrMore>
|
---|
| 175 | </element>
|
---|
| 176 | </define>
|
---|
[f59c2ec] | 177 | <define name="clfs.package.command">
|
---|
[5c560cb] | 178 | <element name="c:command">
|
---|
[4fe47e3] | 179 | <ref name="clfs.attrib.arch"/>
|
---|
| 180 | <ref name="clfs.attrib.bits"/>
|
---|
| 181 | <ref name="clfs.attrib.multilib"/>
|
---|
[5c560cb] | 182 | <optional>
|
---|
| 183 | <attribute name="c:nodump">
|
---|
| 184 | <choice>
|
---|
| 185 | <value>true</value>
|
---|
| 186 | <value>false</value>
|
---|
| 187 | </choice>
|
---|
| 188 | </attribute>
|
---|
| 189 | </optional>
|
---|
| 190 | <oneOrMore>
|
---|
| 191 | <choice>
|
---|
| 192 | <element name="c:literal">
|
---|
| 193 | <text/>
|
---|
| 194 | </element>
|
---|
| 195 | <text/>
|
---|
| 196 | </choice>
|
---|
| 197 | </oneOrMore>
|
---|
[4fe47e3] | 198 | </element>
|
---|
| 199 | </define>
|
---|
[5c560cb] | 200 | <!-- The Package -->
|
---|
| 201 | <define name="clfs.sect.package">
|
---|
| 202 | <element name="c:package">
|
---|
[d4c109d] | 203 | <ref name="xml.attrib.base"/>
|
---|
| 204 | <ref name="xml.attrib.id"/>
|
---|
[5c560cb] | 205 | <ref name="clfs.attrib.arch"/>
|
---|
| 206 | <ref name="clfs.attrib.bits"/>
|
---|
| 207 | <ref name="clfs.attrib.multilib"/>
|
---|
| 208 | <attribute name="c:multibuild">
|
---|
| 209 | <choice>
|
---|
| 210 | <value>true</value>
|
---|
| 211 | <value>false</value>
|
---|
| 212 | </choice>
|
---|
| 213 | </attribute>
|
---|
| 214 | <element name="c:title">
|
---|
[d4c109d] | 215 | <ref name="xml.attrib.base"/>
|
---|
[5c560cb] | 216 | <text/>
|
---|
| 217 | </element>
|
---|
| 218 | <element name="c:version">
|
---|
[d4c109d] | 219 | <ref name="xml.attrib.base"/>
|
---|
[5c560cb] | 220 | <text/>
|
---|
[4fe47e3] | 221 | </element>
|
---|
[b9c15a7] | 222 | <optional>
|
---|
| 223 | <element name="c:variant">
|
---|
[d4c109d] | 224 | <ref name="xml.attrib.base"/>
|
---|
[b9c15a7] | 225 | <text/>
|
---|
| 226 | </element>
|
---|
| 227 | </optional>
|
---|
[5c560cb] | 228 | <element name="c:description">
|
---|
[d4c109d] | 229 | <ref name="xml.attrib.base"/>
|
---|
[5c560cb] | 230 | <ref name="clfs.inline"/>
|
---|
| 231 | </element>
|
---|
[f67564c] | 232 | <optional>
|
---|
[5c560cb] | 233 | <element name="c:install">
|
---|
| 234 | <oneOrMore>
|
---|
| 235 | <choice>
|
---|
[f59c2ec] | 236 | <ref name="clfs.package.para"/>
|
---|
| 237 | <ref name="clfs.package.command"/>
|
---|
| 238 | <ref name="clfs.package.note"/>
|
---|
[babec4b] | 239 | <ref name="clfs.package.warning"/>
|
---|
[5c560cb] | 240 | </choice>
|
---|
| 241 | </oneOrMore>
|
---|
| 242 | </element>
|
---|
[f67564c] | 243 | </optional>
|
---|
[a8c30a5] | 244 | <optional>
|
---|
| 245 | <element name="c:config">
|
---|
| 246 | <oneOrMore>
|
---|
| 247 | <choice>
|
---|
| 248 | <ref name="clfs.package.para"/>
|
---|
| 249 | <ref name="clfs.package.command"/>
|
---|
| 250 | <ref name="clfs.package.note"/>
|
---|
| 251 | <ref name="clfs.package.warning"/>
|
---|
| 252 | </choice>
|
---|
| 253 | </oneOrMore>
|
---|
| 254 | </element>
|
---|
| 255 | </optional>
|
---|
[4f597816] | 256 | <optional>
|
---|
| 257 | <element name="c:contents">
|
---|
| 258 | <choice>
|
---|
| 259 | <attribute name="c:ref"/>
|
---|
| 260 | <group>
|
---|
| 261 | <zeroOrMore>
|
---|
[1d86c775] | 262 | <element name="c:program">
|
---|
[4f597816] | 263 | <element name="c:name">
|
---|
| 264 | <text/>
|
---|
| 265 | </element>
|
---|
| 266 | <element name="c:description">
|
---|
| 267 | <ref name="clfs.inline"/>
|
---|
| 268 | </element>
|
---|
| 269 | </element>
|
---|
| 270 | </zeroOrMore>
|
---|
| 271 | <zeroOrMore>
|
---|
[1d86c775] | 272 | <element name="c:library">
|
---|
[4f597816] | 273 | <element name="c:name">
|
---|
| 274 | <text/>
|
---|
| 275 | </element>
|
---|
| 276 | <element name="c:description">
|
---|
| 277 | <ref name="clfs.inline"/>
|
---|
| 278 | </element>
|
---|
| 279 | </element>
|
---|
| 280 | </zeroOrMore>
|
---|
| 281 | <zeroOrMore>
|
---|
| 282 | <element name="c:directory">
|
---|
| 283 | <element name="c:name">
|
---|
| 284 | <text/>
|
---|
| 285 | </element>
|
---|
| 286 | <element name="c:description">
|
---|
| 287 | <ref name="clfs.inline"/>
|
---|
| 288 | </element>
|
---|
| 289 | </element>
|
---|
| 290 | </zeroOrMore>
|
---|
| 291 | </group>
|
---|
| 292 | </choice>
|
---|
| 293 | </element>
|
---|
| 294 | </optional>
|
---|
[4fe47e3] | 295 | </element>
|
---|
| 296 | </define>
|
---|
[eef46e9] | 297 | </grammar>
|
---|