source: BOOK/schema/clfs/0.1/rng/clfs.rnc@ d240b159

Last change on this file since d240b159 was 3f2c36d, checked in by Joe Ciccone <jciccone@…>, 14 years ago

Add an inline element of c:emphasis.

  • Property mode set to 100644
File size: 4.3 KB
RevLine 
[eef46e9]1
[4fe47e3]2namespace c = "http://schema.cross-lfs.org/book"
[eef46e9]3
[4fe47e3]4# We are building around the DocBook Schema
5include "../../../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
21xml.attrib.base =
22 attribute xml:base {
23 text
24 }?
25xml.attrib.id =
26 attribute id {
27 text
28 }
29
[4fe47e3]30# Extend the standard profiling attributes
31local.effectivity.attrib &=
32 clfs.attrib.arch,
33 clfs.attrib.bits,
34 clfs.attrib.multilib
35
[5c560cb]36# Profiling Attributes
[4fe47e3]37clfs.attrib.arch = attribute c:arch { text }?
38clfs.attrib.bits = attribute c:bits { text }?
39clfs.attrib.multilib = attribute c:multilib { "true" | "false" }?
40
[8823a97]41clfs.attrib.r = attribute c:r { text }?
42
[5c560cb]43# Inline Elements
44
45clfs.inline =
[3f2c36d]46 (clfs.inline.emphasis |
47 clfs.inline.literal |
[9db1668]48 clfs.inline.replaceable |
49 clfs.inline.application |
[5c560cb]50 clfs.inline.dirname |
51 clfs.inline.filename |
52 clfs.inline.command |
[9db1668]53 text)*
[5c560cb]54
[9db1668]55clfs.inline.common.attrib =
56 clfs.attrib.arch,
57 clfs.attrib.bits,
58 clfs.attrib.multilib
59
[3f2c36d]60clfs.inline.emphasis =
61 element c:emphasis {
62 clfs.inline.common.attrib,
63 clfs.inline
64 }
65
[9db1668]66clfs.inline.literal =
67 element c:literal {
68 clfs.inline.common.attrib,
[5c560cb]69 clfs.inline
70 }
[9db1668]71clfs.inline.replaceable =
72 element c:replaceable {
73 clfs.inline.common.attrib,
[5c560cb]74 clfs.inline
75 }
[9db1668]76clfs.inline.application =
77 element c:application {
78 clfs.inline.common.attrib,
79 clfs.inline
80 }
81clfs.inline.dirname =
82 element c:dirname {
83 clfs.inline.common.attrib,
84 clfs.inline
85 }
[5c560cb]86clfs.inline.filename =
87 element c:filename {
[9db1668]88 clfs.inline.common.attrib,
[5c560cb]89 clfs.inline
90 }
91clfs.inline.command =
92 element c:command {
[9db1668]93 clfs.inline.common.attrib,
[5c560cb]94 clfs.inline
95 }
96
97# Block Elements
98
[f59c2ec]99clfs.package.para =
[5c560cb]100 element c:para {
[8823a97]101 xml.attrib.base,
[f59c2ec]102 clfs.attrib.arch,
103 clfs.attrib.bits,
104 clfs.attrib.multilib,
[8823a97]105 clfs.attrib.r,
[5c560cb]106 clfs.inline
107 }
108
[f59c2ec]109clfs.package.note =
[5c560cb]110 element c:note {
[8823a97]111 xml.attrib.base,
[f59c2ec]112 clfs.attrib.arch,
113 clfs.attrib.bits,
114 clfs.attrib.multilib,
[8823a97]115 clfs.attrib.r,
[babec4b]116 (clfs.package.para | clfs.package.command)*
117 }
118
119clfs.package.warning =
120 element c:note {
[8823a97]121 xml.attrib.base,
[babec4b]122 clfs.attrib.arch,
123 clfs.attrib.bits,
124 clfs.attrib.multilib,
[8823a97]125 clfs.attrib.r,
[babec4b]126 (clfs.package.para | clfs.package.command)*
[5c560cb]127 }
128
[f59c2ec]129clfs.package.command =
[5c560cb]130 element c:command {
[8823a97]131 xml.attrib.base,
[5c560cb]132 clfs.attrib.arch,
133 clfs.attrib.bits,
134 clfs.attrib.multilib,
[8823a97]135 clfs.attrib.r,
[5c560cb]136 attribute c:nodump {
137 "true" | "false"
138 }?,
139 (element c:literal { text } | text)+
140 }
141
[1bdabc9]142clfs.package.title =
143 element c:title {
144 xml.attrib.base,
145 text
146 }
147
148clfs.package.version =
149 element c:version {
150 xml.attrib.base,
151 text
152 }
153
154clfs.package.variant =
155 element c:variant {
156 xml.attrib.base,
157 text
158 }?
159
160clfs.package.description =
161 element c:description {
162 xml.attrib.base,
163 clfs.inline
164 }
165
[5c560cb]166# The Package
167clfs.sect.package =
[4fe47e3]168 element c:package {
[d4c109d]169 xml.attrib.base,
170 xml.attrib.id,
[4fe47e3]171 clfs.attrib.arch,
172 clfs.attrib.bits,
173 clfs.attrib.multilib,
[5c560cb]174 attribute c:multibuild {
175 "true" | "false"
176 },
177
[1bdabc9]178 clfs.package.title,
179 clfs.package.version,
180 clfs.package.variant,
181 clfs.package.description,
182
[5c560cb]183 element c:install {
[f59c2ec]184 (clfs.package.para |
185 clfs.package.command |
[babec4b]186 clfs.package.note |
187 clfs.package.warning)+
[f67564c]188 }?,
[4f597816]189
[a8c30a5]190 element c:config {
191 (clfs.package.para |
192 clfs.package.command |
193 clfs.package.note |
194 clfs.package.warning)+
195 }?,
196
[4f597816]197 element c:contents {
198 attribute c:ref {
199 text
200 } | (
[1d86c775]201 element c:program {
[4f597816]202 element c:name {
203 text
204 },
205 element c:description {
206 clfs.inline
207 }
208 }*,
[1d86c775]209 element c:library {
[4f597816]210 element c:name {
211 text
212 },
213 element c:description {
214 clfs.inline
215 }
216 }*,
217 element c:directory {
218 element c:name {
219 text
220 },
221 element c:description {
222 clfs.inline
223 }
224 }*
225 )
226 }?
[4fe47e3]227 }
Note: See TracBrowser for help on using the repository browser.