[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>
|
---|
| 51 | <!-- Extend the standard profiling attributes -->
|
---|
| 52 | <define name="local.effectivity.attrib" combine="interleave">
|
---|
| 53 | <ref name="clfs.attrib.arch"/>
|
---|
| 54 | <ref name="clfs.attrib.bits"/>
|
---|
| 55 | <ref name="clfs.attrib.multilib"/>
|
---|
| 56 | </define>
|
---|
[5c560cb] | 57 | <!-- Profiling Attributes -->
|
---|
[4fe47e3] | 58 | <define name="clfs.attrib.arch">
|
---|
| 59 | <optional>
|
---|
| 60 | <attribute name="c:arch"/>
|
---|
| 61 | </optional>
|
---|
| 62 | </define>
|
---|
| 63 | <define name="clfs.attrib.bits">
|
---|
| 64 | <optional>
|
---|
| 65 | <attribute name="c:bits"/>
|
---|
| 66 | </optional>
|
---|
| 67 | </define>
|
---|
| 68 | <define name="clfs.attrib.multilib">
|
---|
| 69 | <optional>
|
---|
| 70 | <attribute name="c:multilib">
|
---|
| 71 | <choice>
|
---|
| 72 | <value>true</value>
|
---|
| 73 | <value>false</value>
|
---|
| 74 | </choice>
|
---|
| 75 | </attribute>
|
---|
| 76 | </optional>
|
---|
| 77 | </define>
|
---|
[5c560cb] | 78 | <!-- Inline Elements -->
|
---|
| 79 | <define name="clfs.inline">
|
---|
[9db1668] | 80 | <zeroOrMore>
|
---|
[4fe47e3] | 81 | <choice>
|
---|
[9db1668] | 82 | <ref name="clfs.inline.literal"/>
|
---|
| 83 | <ref name="clfs.inline.replaceable"/>
|
---|
| 84 | <ref name="clfs.inline.application"/>
|
---|
[5c560cb] | 85 | <ref name="clfs.inline.dirname"/>
|
---|
| 86 | <ref name="clfs.inline.filename"/>
|
---|
| 87 | <ref name="clfs.inline.command"/>
|
---|
| 88 | <text/>
|
---|
[4fe47e3] | 89 | </choice>
|
---|
[9db1668] | 90 | </zeroOrMore>
|
---|
[4fe47e3] | 91 | </define>
|
---|
[9db1668] | 92 | <define name="clfs.inline.common.attrib">
|
---|
| 93 | <ref name="clfs.attrib.arch"/>
|
---|
| 94 | <ref name="clfs.attrib.bits"/>
|
---|
| 95 | <ref name="clfs.attrib.multilib"/>
|
---|
| 96 | </define>
|
---|
| 97 | <define name="clfs.inline.literal">
|
---|
| 98 | <element name="c:literal">
|
---|
| 99 | <ref name="clfs.inline.common.attrib"/>
|
---|
| 100 | <ref name="clfs.inline"/>
|
---|
| 101 | </element>
|
---|
| 102 | </define>
|
---|
| 103 | <define name="clfs.inline.replaceable">
|
---|
| 104 | <element name="c:replaceable">
|
---|
| 105 | <ref name="clfs.inline.common.attrib"/>
|
---|
| 106 | <ref name="clfs.inline"/>
|
---|
| 107 | </element>
|
---|
| 108 | </define>
|
---|
| 109 | <define name="clfs.inline.application">
|
---|
| 110 | <element name="c:application">
|
---|
| 111 | <ref name="clfs.inline.common.attrib"/>
|
---|
[5c560cb] | 112 | <ref name="clfs.inline"/>
|
---|
| 113 | </element>
|
---|
| 114 | </define>
|
---|
| 115 | <define name="clfs.inline.dirname">
|
---|
| 116 | <element name="c:dirname">
|
---|
[9db1668] | 117 | <ref name="clfs.inline.common.attrib"/>
|
---|
[5c560cb] | 118 | <ref name="clfs.inline"/>
|
---|
| 119 | </element>
|
---|
| 120 | </define>
|
---|
| 121 | <define name="clfs.inline.filename">
|
---|
| 122 | <element name="c:filename">
|
---|
[9db1668] | 123 | <ref name="clfs.inline.common.attrib"/>
|
---|
[5c560cb] | 124 | <ref name="clfs.inline"/>
|
---|
| 125 | </element>
|
---|
| 126 | </define>
|
---|
| 127 | <define name="clfs.inline.command">
|
---|
| 128 | <element name="c:command">
|
---|
[9db1668] | 129 | <ref name="clfs.inline.common.attrib"/>
|
---|
[5c560cb] | 130 | <ref name="clfs.inline"/>
|
---|
| 131 | </element>
|
---|
| 132 | </define>
|
---|
| 133 | <!-- Block Elements -->
|
---|
[f59c2ec] | 134 | <define name="clfs.package.para">
|
---|
[5c560cb] | 135 | <element name="c:para">
|
---|
[f59c2ec] | 136 | <ref name="clfs.attrib.arch"/>
|
---|
| 137 | <ref name="clfs.attrib.bits"/>
|
---|
| 138 | <ref name="clfs.attrib.multilib"/>
|
---|
[5c560cb] | 139 | <ref name="clfs.inline"/>
|
---|
| 140 | </element>
|
---|
| 141 | </define>
|
---|
[f59c2ec] | 142 | <define name="clfs.package.note">
|
---|
[5c560cb] | 143 | <element name="c:note">
|
---|
[f59c2ec] | 144 | <ref name="clfs.attrib.arch"/>
|
---|
| 145 | <ref name="clfs.attrib.bits"/>
|
---|
| 146 | <ref name="clfs.attrib.multilib"/>
|
---|
[5c560cb] | 147 | <zeroOrMore>
|
---|
[babec4b] | 148 | <choice>
|
---|
| 149 | <ref name="clfs.package.para"/>
|
---|
| 150 | <ref name="clfs.package.command"/>
|
---|
| 151 | </choice>
|
---|
| 152 | </zeroOrMore>
|
---|
| 153 | </element>
|
---|
| 154 | </define>
|
---|
| 155 | <define name="clfs.package.warning">
|
---|
| 156 | <element name="c:note">
|
---|
| 157 | <ref name="clfs.attrib.arch"/>
|
---|
| 158 | <ref name="clfs.attrib.bits"/>
|
---|
| 159 | <ref name="clfs.attrib.multilib"/>
|
---|
| 160 | <zeroOrMore>
|
---|
| 161 | <choice>
|
---|
| 162 | <ref name="clfs.package.para"/>
|
---|
| 163 | <ref name="clfs.package.command"/>
|
---|
| 164 | </choice>
|
---|
[5c560cb] | 165 | </zeroOrMore>
|
---|
| 166 | </element>
|
---|
| 167 | </define>
|
---|
[f59c2ec] | 168 | <define name="clfs.package.command">
|
---|
[5c560cb] | 169 | <element name="c:command">
|
---|
[4fe47e3] | 170 | <ref name="clfs.attrib.arch"/>
|
---|
| 171 | <ref name="clfs.attrib.bits"/>
|
---|
| 172 | <ref name="clfs.attrib.multilib"/>
|
---|
[5c560cb] | 173 | <optional>
|
---|
| 174 | <attribute name="c:nodump">
|
---|
| 175 | <choice>
|
---|
| 176 | <value>true</value>
|
---|
| 177 | <value>false</value>
|
---|
| 178 | </choice>
|
---|
| 179 | </attribute>
|
---|
| 180 | </optional>
|
---|
| 181 | <oneOrMore>
|
---|
| 182 | <choice>
|
---|
| 183 | <element name="c:literal">
|
---|
| 184 | <text/>
|
---|
| 185 | </element>
|
---|
| 186 | <text/>
|
---|
| 187 | </choice>
|
---|
| 188 | </oneOrMore>
|
---|
[4fe47e3] | 189 | </element>
|
---|
| 190 | </define>
|
---|
[5c560cb] | 191 | <!-- The Package -->
|
---|
| 192 | <define name="clfs.sect.package">
|
---|
| 193 | <element name="c:package">
|
---|
[e655c39d] | 194 | <optional>
|
---|
| 195 | <attribute name="xml:base"/>
|
---|
| 196 | </optional>
|
---|
[5c560cb] | 197 | <attribute name="id"/>
|
---|
| 198 | <ref name="clfs.attrib.arch"/>
|
---|
| 199 | <ref name="clfs.attrib.bits"/>
|
---|
| 200 | <ref name="clfs.attrib.multilib"/>
|
---|
| 201 | <attribute name="c:multibuild">
|
---|
| 202 | <choice>
|
---|
| 203 | <value>true</value>
|
---|
| 204 | <value>false</value>
|
---|
| 205 | </choice>
|
---|
| 206 | </attribute>
|
---|
| 207 | <element name="c:title">
|
---|
| 208 | <text/>
|
---|
| 209 | </element>
|
---|
| 210 | <element name="c:version">
|
---|
| 211 | <text/>
|
---|
[4fe47e3] | 212 | </element>
|
---|
[5c560cb] | 213 | <element name="c:description">
|
---|
| 214 | <ref name="clfs.inline"/>
|
---|
| 215 | </element>
|
---|
[f67564c] | 216 | <optional>
|
---|
[5c560cb] | 217 | <element name="c:install">
|
---|
| 218 | <oneOrMore>
|
---|
| 219 | <choice>
|
---|
[f59c2ec] | 220 | <ref name="clfs.package.para"/>
|
---|
| 221 | <ref name="clfs.package.command"/>
|
---|
| 222 | <ref name="clfs.package.note"/>
|
---|
[babec4b] | 223 | <ref name="clfs.package.warning"/>
|
---|
[5c560cb] | 224 | </choice>
|
---|
| 225 | </oneOrMore>
|
---|
| 226 | </element>
|
---|
[f67564c] | 227 | </optional>
|
---|
[a8c30a5] | 228 | <optional>
|
---|
| 229 | <element name="c:config">
|
---|
| 230 | <oneOrMore>
|
---|
| 231 | <choice>
|
---|
| 232 | <ref name="clfs.package.para"/>
|
---|
| 233 | <ref name="clfs.package.command"/>
|
---|
| 234 | <ref name="clfs.package.note"/>
|
---|
| 235 | <ref name="clfs.package.warning"/>
|
---|
| 236 | </choice>
|
---|
| 237 | </oneOrMore>
|
---|
| 238 | </element>
|
---|
| 239 | </optional>
|
---|
[4f597816] | 240 | <optional>
|
---|
| 241 | <element name="c:contents">
|
---|
| 242 | <choice>
|
---|
| 243 | <attribute name="c:ref"/>
|
---|
| 244 | <group>
|
---|
| 245 | <zeroOrMore>
|
---|
[1d86c775] | 246 | <element name="c:program">
|
---|
[4f597816] | 247 | <element name="c:name">
|
---|
| 248 | <text/>
|
---|
| 249 | </element>
|
---|
| 250 | <element name="c:description">
|
---|
| 251 | <ref name="clfs.inline"/>
|
---|
| 252 | </element>
|
---|
| 253 | </element>
|
---|
| 254 | </zeroOrMore>
|
---|
| 255 | <zeroOrMore>
|
---|
[1d86c775] | 256 | <element name="c:library">
|
---|
[4f597816] | 257 | <element name="c:name">
|
---|
| 258 | <text/>
|
---|
| 259 | </element>
|
---|
| 260 | <element name="c:description">
|
---|
| 261 | <ref name="clfs.inline"/>
|
---|
| 262 | </element>
|
---|
| 263 | </element>
|
---|
| 264 | </zeroOrMore>
|
---|
| 265 | <zeroOrMore>
|
---|
| 266 | <element name="c:directory">
|
---|
| 267 | <element name="c:name">
|
---|
| 268 | <text/>
|
---|
| 269 | </element>
|
---|
| 270 | <element name="c:description">
|
---|
| 271 | <ref name="clfs.inline"/>
|
---|
| 272 | </element>
|
---|
| 273 | </element>
|
---|
| 274 | </zeroOrMore>
|
---|
| 275 | </group>
|
---|
| 276 | </choice>
|
---|
| 277 | </element>
|
---|
| 278 | </optional>
|
---|
[4fe47e3] | 279 | </element>
|
---|
| 280 | </define>
|
---|
[eef46e9] | 281 | </grammar>
|
---|