[eef46e9] | 1 |
|
---|
[4fe47e3] | 2 | namespace c = "http://schema.cross-lfs.org/book"
|
---|
[eef46e9] | 3 |
|
---|
[4fe47e3] | 4 | # We are building around the DocBook Schema
|
---|
| 5 | include "../../../docbook/4.5/rng/docbook.rnc" {
|
---|
| 6 | sect1 = (
|
---|
| 7 | element sect1 {
|
---|
| 8 | sect1.attlist,
|
---|
| 9 | sect1info?,
|
---|
| 10 | sect.title.content,
|
---|
| 11 | nav.class*,
|
---|
| 12 | ((divcomponent.mix+, (refentry.class* | sect2* | simplesect*))
|
---|
| 13 | | refentry.class+
|
---|
| 14 | | sect2+
|
---|
[5c560cb] | 15 | | simplesect+),
|
---|
| 16 | nav.class*
|
---|
| 17 | } | clfs.sect.package )
|
---|
[4fe47e3] | 18 | }
|
---|
| 19 |
|
---|
[d4c109d] | 20 | # Common Attributes
|
---|
| 21 | xml.attrib.base =
|
---|
| 22 | attribute xml:base {
|
---|
| 23 | text
|
---|
| 24 | }?
|
---|
| 25 | xml.attrib.id =
|
---|
| 26 | attribute id {
|
---|
| 27 | text
|
---|
| 28 | }
|
---|
| 29 |
|
---|
[4fe47e3] | 30 | # Extend the standard profiling attributes
|
---|
| 31 | local.effectivity.attrib &=
|
---|
| 32 | clfs.attrib.arch,
|
---|
| 33 | clfs.attrib.bits,
|
---|
| 34 | clfs.attrib.multilib
|
---|
| 35 |
|
---|
[5c560cb] | 36 | # Profiling Attributes
|
---|
[4fe47e3] | 37 | clfs.attrib.arch = attribute c:arch { text }?
|
---|
| 38 | clfs.attrib.bits = attribute c:bits { text }?
|
---|
| 39 | clfs.attrib.multilib = attribute c:multilib { "true" | "false" }?
|
---|
| 40 |
|
---|
[5c560cb] | 41 | # Inline Elements
|
---|
| 42 |
|
---|
| 43 | clfs.inline =
|
---|
[9db1668] | 44 | (clfs.inline.literal |
|
---|
| 45 | clfs.inline.replaceable |
|
---|
| 46 | clfs.inline.application |
|
---|
[5c560cb] | 47 | clfs.inline.dirname |
|
---|
| 48 | clfs.inline.filename |
|
---|
| 49 | clfs.inline.command |
|
---|
[9db1668] | 50 | text)*
|
---|
[5c560cb] | 51 |
|
---|
[9db1668] | 52 | clfs.inline.common.attrib =
|
---|
| 53 | clfs.attrib.arch,
|
---|
| 54 | clfs.attrib.bits,
|
---|
| 55 | clfs.attrib.multilib
|
---|
| 56 |
|
---|
| 57 | clfs.inline.literal =
|
---|
| 58 | element c:literal {
|
---|
| 59 | clfs.inline.common.attrib,
|
---|
[5c560cb] | 60 | clfs.inline
|
---|
| 61 | }
|
---|
[9db1668] | 62 | clfs.inline.replaceable =
|
---|
| 63 | element c:replaceable {
|
---|
| 64 | clfs.inline.common.attrib,
|
---|
[5c560cb] | 65 | clfs.inline
|
---|
| 66 | }
|
---|
[9db1668] | 67 | clfs.inline.application =
|
---|
| 68 | element c:application {
|
---|
| 69 | clfs.inline.common.attrib,
|
---|
| 70 | clfs.inline
|
---|
| 71 | }
|
---|
| 72 | clfs.inline.dirname =
|
---|
| 73 | element c:dirname {
|
---|
| 74 | clfs.inline.common.attrib,
|
---|
| 75 | clfs.inline
|
---|
| 76 | }
|
---|
[5c560cb] | 77 | clfs.inline.filename =
|
---|
| 78 | element c:filename {
|
---|
[9db1668] | 79 | clfs.inline.common.attrib,
|
---|
[5c560cb] | 80 | clfs.inline
|
---|
| 81 | }
|
---|
| 82 | clfs.inline.command =
|
---|
| 83 | element c:command {
|
---|
[9db1668] | 84 | clfs.inline.common.attrib,
|
---|
[5c560cb] | 85 | clfs.inline
|
---|
| 86 | }
|
---|
| 87 |
|
---|
| 88 | # Block Elements
|
---|
| 89 |
|
---|
[f59c2ec] | 90 | clfs.package.para =
|
---|
[5c560cb] | 91 | element c:para {
|
---|
[f59c2ec] | 92 | clfs.attrib.arch,
|
---|
| 93 | clfs.attrib.bits,
|
---|
| 94 | clfs.attrib.multilib,
|
---|
[5c560cb] | 95 | clfs.inline
|
---|
| 96 | }
|
---|
| 97 |
|
---|
[f59c2ec] | 98 | clfs.package.note =
|
---|
[5c560cb] | 99 | element c:note {
|
---|
[f59c2ec] | 100 | clfs.attrib.arch,
|
---|
| 101 | clfs.attrib.bits,
|
---|
| 102 | clfs.attrib.multilib,
|
---|
[babec4b] | 103 | (clfs.package.para | clfs.package.command)*
|
---|
| 104 | }
|
---|
| 105 |
|
---|
| 106 | clfs.package.warning =
|
---|
| 107 | element c:note {
|
---|
| 108 | clfs.attrib.arch,
|
---|
| 109 | clfs.attrib.bits,
|
---|
| 110 | clfs.attrib.multilib,
|
---|
| 111 | (clfs.package.para | clfs.package.command)*
|
---|
[5c560cb] | 112 | }
|
---|
| 113 |
|
---|
[f59c2ec] | 114 | clfs.package.command =
|
---|
[5c560cb] | 115 | element c:command {
|
---|
| 116 | clfs.attrib.arch,
|
---|
| 117 | clfs.attrib.bits,
|
---|
| 118 | clfs.attrib.multilib,
|
---|
| 119 | attribute c:nodump {
|
---|
| 120 | "true" | "false"
|
---|
| 121 | }?,
|
---|
| 122 | (element c:literal { text } | text)+
|
---|
| 123 | }
|
---|
| 124 |
|
---|
[1bdabc9] | 125 | clfs.package.title =
|
---|
| 126 | element c:title {
|
---|
| 127 | xml.attrib.base,
|
---|
| 128 | text
|
---|
| 129 | }
|
---|
| 130 |
|
---|
| 131 | clfs.package.version =
|
---|
| 132 | element c:version {
|
---|
| 133 | xml.attrib.base,
|
---|
| 134 | text
|
---|
| 135 | }
|
---|
| 136 |
|
---|
| 137 | clfs.package.variant =
|
---|
| 138 | element c:variant {
|
---|
| 139 | xml.attrib.base,
|
---|
| 140 | text
|
---|
| 141 | }?
|
---|
| 142 |
|
---|
| 143 | clfs.package.description =
|
---|
| 144 | element c:description {
|
---|
| 145 | xml.attrib.base,
|
---|
| 146 | clfs.inline
|
---|
| 147 | }
|
---|
| 148 |
|
---|
[5c560cb] | 149 | # The Package
|
---|
| 150 | clfs.sect.package =
|
---|
[4fe47e3] | 151 | element c:package {
|
---|
[d4c109d] | 152 | xml.attrib.base,
|
---|
| 153 | xml.attrib.id,
|
---|
[4fe47e3] | 154 | clfs.attrib.arch,
|
---|
| 155 | clfs.attrib.bits,
|
---|
| 156 | clfs.attrib.multilib,
|
---|
[5c560cb] | 157 | attribute c:multibuild {
|
---|
| 158 | "true" | "false"
|
---|
| 159 | },
|
---|
| 160 |
|
---|
[1bdabc9] | 161 | clfs.package.title,
|
---|
| 162 | clfs.package.version,
|
---|
| 163 | clfs.package.variant,
|
---|
| 164 | clfs.package.description,
|
---|
| 165 |
|
---|
[5c560cb] | 166 | element c:install {
|
---|
[f59c2ec] | 167 | (clfs.package.para |
|
---|
| 168 | clfs.package.command |
|
---|
[babec4b] | 169 | clfs.package.note |
|
---|
| 170 | clfs.package.warning)+
|
---|
[f67564c] | 171 | }?,
|
---|
[4f597816] | 172 |
|
---|
[a8c30a5] | 173 | element c:config {
|
---|
| 174 | (clfs.package.para |
|
---|
| 175 | clfs.package.command |
|
---|
| 176 | clfs.package.note |
|
---|
| 177 | clfs.package.warning)+
|
---|
| 178 | }?,
|
---|
| 179 |
|
---|
[4f597816] | 180 | element c:contents {
|
---|
| 181 | attribute c:ref {
|
---|
| 182 | text
|
---|
| 183 | } | (
|
---|
[1d86c775] | 184 | element c:program {
|
---|
[4f597816] | 185 | element c:name {
|
---|
| 186 | text
|
---|
| 187 | },
|
---|
| 188 | element c:description {
|
---|
| 189 | clfs.inline
|
---|
| 190 | }
|
---|
| 191 | }*,
|
---|
[1d86c775] | 192 | element c:library {
|
---|
[4f597816] | 193 | element c:name {
|
---|
| 194 | text
|
---|
| 195 | },
|
---|
| 196 | element c:description {
|
---|
| 197 | clfs.inline
|
---|
| 198 | }
|
---|
| 199 | }*,
|
---|
| 200 | element c:directory {
|
---|
| 201 | element c:name {
|
---|
| 202 | text
|
---|
| 203 | },
|
---|
| 204 | element c:description {
|
---|
| 205 | clfs.inline
|
---|
| 206 | }
|
---|
| 207 | }*
|
---|
| 208 | )
|
---|
| 209 | }?
|
---|
[4fe47e3] | 210 | }
|
---|