[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>
|
---|
[1bdabc9] | 200 | <define name="clfs.package.title">
|
---|
| 201 | <element name="c:title">
|
---|
| 202 | <ref name="xml.attrib.base"/>
|
---|
| 203 | <text/>
|
---|
| 204 | </element>
|
---|
| 205 | </define>
|
---|
| 206 | <define name="clfs.package.version">
|
---|
| 207 | <element name="c:version">
|
---|
| 208 | <ref name="xml.attrib.base"/>
|
---|
| 209 | <text/>
|
---|
| 210 | </element>
|
---|
| 211 | </define>
|
---|
| 212 | <define name="clfs.package.variant">
|
---|
| 213 | <optional>
|
---|
| 214 | <element name="c:variant">
|
---|
| 215 | <ref name="xml.attrib.base"/>
|
---|
| 216 | <text/>
|
---|
| 217 | </element>
|
---|
| 218 | </optional>
|
---|
| 219 | </define>
|
---|
| 220 | <define name="clfs.package.description">
|
---|
| 221 | <element name="c:description">
|
---|
| 222 | <ref name="xml.attrib.base"/>
|
---|
| 223 | <ref name="clfs.inline"/>
|
---|
| 224 | </element>
|
---|
| 225 | </define>
|
---|
[5c560cb] | 226 | <!-- The Package -->
|
---|
| 227 | <define name="clfs.sect.package">
|
---|
| 228 | <element name="c:package">
|
---|
[d4c109d] | 229 | <ref name="xml.attrib.base"/>
|
---|
| 230 | <ref name="xml.attrib.id"/>
|
---|
[5c560cb] | 231 | <ref name="clfs.attrib.arch"/>
|
---|
| 232 | <ref name="clfs.attrib.bits"/>
|
---|
| 233 | <ref name="clfs.attrib.multilib"/>
|
---|
| 234 | <attribute name="c:multibuild">
|
---|
| 235 | <choice>
|
---|
| 236 | <value>true</value>
|
---|
| 237 | <value>false</value>
|
---|
| 238 | </choice>
|
---|
| 239 | </attribute>
|
---|
[1bdabc9] | 240 | <ref name="clfs.package.title"/>
|
---|
| 241 | <ref name="clfs.package.version"/>
|
---|
| 242 | <ref name="clfs.package.variant"/>
|
---|
| 243 | <ref name="clfs.package.description"/>
|
---|
[f67564c] | 244 | <optional>
|
---|
[5c560cb] | 245 | <element name="c:install">
|
---|
| 246 | <oneOrMore>
|
---|
| 247 | <choice>
|
---|
[f59c2ec] | 248 | <ref name="clfs.package.para"/>
|
---|
| 249 | <ref name="clfs.package.command"/>
|
---|
| 250 | <ref name="clfs.package.note"/>
|
---|
[babec4b] | 251 | <ref name="clfs.package.warning"/>
|
---|
[5c560cb] | 252 | </choice>
|
---|
| 253 | </oneOrMore>
|
---|
| 254 | </element>
|
---|
[f67564c] | 255 | </optional>
|
---|
[a8c30a5] | 256 | <optional>
|
---|
| 257 | <element name="c:config">
|
---|
| 258 | <oneOrMore>
|
---|
| 259 | <choice>
|
---|
| 260 | <ref name="clfs.package.para"/>
|
---|
| 261 | <ref name="clfs.package.command"/>
|
---|
| 262 | <ref name="clfs.package.note"/>
|
---|
| 263 | <ref name="clfs.package.warning"/>
|
---|
| 264 | </choice>
|
---|
| 265 | </oneOrMore>
|
---|
| 266 | </element>
|
---|
| 267 | </optional>
|
---|
[4f597816] | 268 | <optional>
|
---|
| 269 | <element name="c:contents">
|
---|
| 270 | <choice>
|
---|
| 271 | <attribute name="c:ref"/>
|
---|
| 272 | <group>
|
---|
| 273 | <zeroOrMore>
|
---|
[1d86c775] | 274 | <element name="c:program">
|
---|
[4f597816] | 275 | <element name="c:name">
|
---|
| 276 | <text/>
|
---|
| 277 | </element>
|
---|
| 278 | <element name="c:description">
|
---|
| 279 | <ref name="clfs.inline"/>
|
---|
| 280 | </element>
|
---|
| 281 | </element>
|
---|
| 282 | </zeroOrMore>
|
---|
| 283 | <zeroOrMore>
|
---|
[1d86c775] | 284 | <element name="c:library">
|
---|
[4f597816] | 285 | <element name="c:name">
|
---|
| 286 | <text/>
|
---|
| 287 | </element>
|
---|
| 288 | <element name="c:description">
|
---|
| 289 | <ref name="clfs.inline"/>
|
---|
| 290 | </element>
|
---|
| 291 | </element>
|
---|
| 292 | </zeroOrMore>
|
---|
| 293 | <zeroOrMore>
|
---|
| 294 | <element name="c:directory">
|
---|
| 295 | <element name="c:name">
|
---|
| 296 | <text/>
|
---|
| 297 | </element>
|
---|
| 298 | <element name="c:description">
|
---|
| 299 | <ref name="clfs.inline"/>
|
---|
| 300 | </element>
|
---|
| 301 | </element>
|
---|
| 302 | </zeroOrMore>
|
---|
| 303 | </group>
|
---|
| 304 | </choice>
|
---|
| 305 | </element>
|
---|
| 306 | </optional>
|
---|
[4fe47e3] | 307 | </element>
|
---|
| 308 | </define>
|
---|
[eef46e9] | 309 | </grammar>
|
---|