Last change
on this file since d4c109d was d4c109d, checked in by Joe Ciccone <jciccone@…>, 14 years ago |
Add xml:base to items that may be included in another page using an xi:include.
|
-
Property mode
set to
100644
|
File size:
3.8 KB
|
Rev | Line | |
---|
[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 |
|
---|
| 125 | # The Package
|
---|
| 126 | clfs.sect.package =
|
---|
[4fe47e3] | 127 | element c:package {
|
---|
[d4c109d] | 128 | xml.attrib.base,
|
---|
| 129 | xml.attrib.id,
|
---|
[4fe47e3] | 130 | clfs.attrib.arch,
|
---|
| 131 | clfs.attrib.bits,
|
---|
| 132 | clfs.attrib.multilib,
|
---|
[5c560cb] | 133 | attribute c:multibuild {
|
---|
| 134 | "true" | "false"
|
---|
| 135 | },
|
---|
| 136 |
|
---|
[d4c109d] | 137 | element c:title {
|
---|
| 138 | xml.attrib.base,
|
---|
| 139 | text
|
---|
| 140 | },
|
---|
| 141 | element c:version {
|
---|
| 142 | xml.attrib.base,
|
---|
| 143 | text
|
---|
| 144 | },
|
---|
| 145 | element c:variant {
|
---|
| 146 | xml.attrib.base,
|
---|
| 147 | text
|
---|
| 148 | }?,
|
---|
| 149 | element c:description {
|
---|
| 150 | xml.attrib.base,
|
---|
| 151 | clfs.inline
|
---|
| 152 | },
|
---|
[5c560cb] | 153 |
|
---|
| 154 | element c:install {
|
---|
[f59c2ec] | 155 | (clfs.package.para |
|
---|
| 156 | clfs.package.command |
|
---|
[babec4b] | 157 | clfs.package.note |
|
---|
| 158 | clfs.package.warning)+
|
---|
[f67564c] | 159 | }?,
|
---|
[4f597816] | 160 |
|
---|
[a8c30a5] | 161 | element c:config {
|
---|
| 162 | (clfs.package.para |
|
---|
| 163 | clfs.package.command |
|
---|
| 164 | clfs.package.note |
|
---|
| 165 | clfs.package.warning)+
|
---|
| 166 | }?,
|
---|
| 167 |
|
---|
[4f597816] | 168 | element c:contents {
|
---|
| 169 | attribute c:ref {
|
---|
| 170 | text
|
---|
| 171 | } | (
|
---|
[1d86c775] | 172 | element c:program {
|
---|
[4f597816] | 173 | element c:name {
|
---|
| 174 | text
|
---|
| 175 | },
|
---|
| 176 | element c:description {
|
---|
| 177 | clfs.inline
|
---|
| 178 | }
|
---|
| 179 | }*,
|
---|
[1d86c775] | 180 | element c:library {
|
---|
[4f597816] | 181 | element c:name {
|
---|
| 182 | text
|
---|
| 183 | },
|
---|
| 184 | element c:description {
|
---|
| 185 | clfs.inline
|
---|
| 186 | }
|
---|
| 187 | }*,
|
---|
| 188 | element c:directory {
|
---|
| 189 | element c:name {
|
---|
| 190 | text
|
---|
| 191 | },
|
---|
| 192 | element c:description {
|
---|
| 193 | clfs.inline
|
---|
| 194 | }
|
---|
| 195 | }*
|
---|
| 196 | )
|
---|
| 197 | }?
|
---|
[4fe47e3] | 198 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.