[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 |
|
---|
| 20 | # Extend the standard profiling attributes
|
---|
| 21 | local.effectivity.attrib &=
|
---|
| 22 | clfs.attrib.arch,
|
---|
| 23 | clfs.attrib.bits,
|
---|
| 24 | clfs.attrib.multilib
|
---|
| 25 |
|
---|
[5c560cb] | 26 | # Profiling Attributes
|
---|
[4fe47e3] | 27 | clfs.attrib.arch = attribute c:arch { text }?
|
---|
| 28 | clfs.attrib.bits = attribute c:bits { text }?
|
---|
| 29 | clfs.attrib.multilib = attribute c:multilib { "true" | "false" }?
|
---|
| 30 |
|
---|
[5c560cb] | 31 | # Inline Elements
|
---|
| 32 |
|
---|
| 33 | clfs.inline =
|
---|
[9db1668] | 34 | (clfs.inline.literal |
|
---|
| 35 | clfs.inline.replaceable |
|
---|
| 36 | clfs.inline.application |
|
---|
[5c560cb] | 37 | clfs.inline.dirname |
|
---|
| 38 | clfs.inline.filename |
|
---|
| 39 | clfs.inline.command |
|
---|
[9db1668] | 40 | text)*
|
---|
[5c560cb] | 41 |
|
---|
[9db1668] | 42 | clfs.inline.common.attrib =
|
---|
| 43 | clfs.attrib.arch,
|
---|
| 44 | clfs.attrib.bits,
|
---|
| 45 | clfs.attrib.multilib
|
---|
| 46 |
|
---|
| 47 | clfs.inline.literal =
|
---|
| 48 | element c:literal {
|
---|
| 49 | clfs.inline.common.attrib,
|
---|
[5c560cb] | 50 | clfs.inline
|
---|
| 51 | }
|
---|
[9db1668] | 52 | clfs.inline.replaceable =
|
---|
| 53 | element c:replaceable {
|
---|
| 54 | clfs.inline.common.attrib,
|
---|
[5c560cb] | 55 | clfs.inline
|
---|
| 56 | }
|
---|
[9db1668] | 57 | clfs.inline.application =
|
---|
| 58 | element c:application {
|
---|
| 59 | clfs.inline.common.attrib,
|
---|
| 60 | clfs.inline
|
---|
| 61 | }
|
---|
| 62 | clfs.inline.dirname =
|
---|
| 63 | element c:dirname {
|
---|
| 64 | clfs.inline.common.attrib,
|
---|
| 65 | clfs.inline
|
---|
| 66 | }
|
---|
[5c560cb] | 67 | clfs.inline.filename =
|
---|
| 68 | element c:filename {
|
---|
[9db1668] | 69 | clfs.inline.common.attrib,
|
---|
[5c560cb] | 70 | clfs.inline
|
---|
| 71 | }
|
---|
| 72 | clfs.inline.command =
|
---|
| 73 | element c:command {
|
---|
[9db1668] | 74 | clfs.inline.common.attrib,
|
---|
[5c560cb] | 75 | clfs.inline
|
---|
| 76 | }
|
---|
| 77 |
|
---|
| 78 | # Block Elements
|
---|
| 79 |
|
---|
[f59c2ec] | 80 | clfs.package.para =
|
---|
[5c560cb] | 81 | element c:para {
|
---|
[f59c2ec] | 82 | clfs.attrib.arch,
|
---|
| 83 | clfs.attrib.bits,
|
---|
| 84 | clfs.attrib.multilib,
|
---|
[5c560cb] | 85 | clfs.inline
|
---|
| 86 | }
|
---|
| 87 |
|
---|
[f59c2ec] | 88 | clfs.package.note =
|
---|
[5c560cb] | 89 | element c:note {
|
---|
[f59c2ec] | 90 | clfs.attrib.arch,
|
---|
| 91 | clfs.attrib.bits,
|
---|
| 92 | clfs.attrib.multilib,
|
---|
[babec4b] | 93 | (clfs.package.para | clfs.package.command)*
|
---|
| 94 | }
|
---|
| 95 |
|
---|
| 96 | clfs.package.warning =
|
---|
| 97 | element c:note {
|
---|
| 98 | clfs.attrib.arch,
|
---|
| 99 | clfs.attrib.bits,
|
---|
| 100 | clfs.attrib.multilib,
|
---|
| 101 | (clfs.package.para | clfs.package.command)*
|
---|
[5c560cb] | 102 | }
|
---|
| 103 |
|
---|
[f59c2ec] | 104 | clfs.package.command =
|
---|
[5c560cb] | 105 | element c:command {
|
---|
| 106 | clfs.attrib.arch,
|
---|
| 107 | clfs.attrib.bits,
|
---|
| 108 | clfs.attrib.multilib,
|
---|
| 109 | attribute c:nodump {
|
---|
| 110 | "true" | "false"
|
---|
| 111 | }?,
|
---|
| 112 | (element c:literal { text } | text)+
|
---|
| 113 | }
|
---|
| 114 |
|
---|
| 115 | # The Package
|
---|
| 116 | clfs.sect.package =
|
---|
[4fe47e3] | 117 | element c:package {
|
---|
| 118 | attribute id { text },
|
---|
| 119 | clfs.attrib.arch,
|
---|
| 120 | clfs.attrib.bits,
|
---|
| 121 | clfs.attrib.multilib,
|
---|
[5c560cb] | 122 | attribute c:multibuild {
|
---|
| 123 | "true" | "false"
|
---|
| 124 | },
|
---|
| 125 |
|
---|
| 126 | element c:title { text },
|
---|
| 127 | element c:version { text },
|
---|
| 128 | element c:description { clfs.inline },
|
---|
| 129 |
|
---|
| 130 | element c:install {
|
---|
[f59c2ec] | 131 | (clfs.package.para |
|
---|
| 132 | clfs.package.command |
|
---|
[babec4b] | 133 | clfs.package.note |
|
---|
| 134 | clfs.package.warning)+
|
---|
[4f597816] | 135 | }+,
|
---|
| 136 |
|
---|
| 137 | element c:contents {
|
---|
| 138 | attribute c:ref {
|
---|
| 139 | text
|
---|
| 140 | } | (
|
---|
[1d86c775] | 141 | element c:program {
|
---|
[4f597816] | 142 | element c:name {
|
---|
| 143 | text
|
---|
| 144 | },
|
---|
| 145 | element c:description {
|
---|
| 146 | clfs.inline
|
---|
| 147 | }
|
---|
| 148 | }*,
|
---|
[1d86c775] | 149 | element c:library {
|
---|
[4f597816] | 150 | element c:name {
|
---|
| 151 | text
|
---|
| 152 | },
|
---|
| 153 | element c:description {
|
---|
| 154 | clfs.inline
|
---|
| 155 | }
|
---|
| 156 | }*,
|
---|
| 157 | element c:directory {
|
---|
| 158 | element c:name {
|
---|
| 159 | text
|
---|
| 160 | },
|
---|
| 161 | element c:description {
|
---|
| 162 | clfs.inline
|
---|
| 163 | }
|
---|
| 164 | }*
|
---|
| 165 | )
|
---|
| 166 | }?
|
---|
[4fe47e3] | 167 | }
|
---|