1 namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0"
2 namespace rng = "http://relaxng.org/ns/structure/1.0"
4 # Emacs Muse RELAX NG Schema v. 1.1
5 # Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
7 # Author: Brad Collins (brad AT chenla DOT org)
8 # Maintainer: Michael Olson (mwolson AT gnu DOT org)
10 # This is free software; you can redistribute it and/or modify it
11 # under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; either version 3 of the License, or
13 # (at your option) any later version. This material is distributed in
14 # the hope that it will be useful, but WITHOUT ANY WARRANTY; without
15 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
16 # PARTICULAR PURPOSE. See the GNU General Public License for more
17 # details.You should have received a copy of the GNU General Public
18 # License along with this file; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
24 # RelaxNG Compact syntax can be converted into RelaxNG XML Syntax,
25 # DTD format and XML Schema language using free tools.
27 # Emacs users are encouraged to use James Clarke's nxml-mode for
28 # editing and validating XML files. If you are in nxml-mode use the
29 # command C-c C-s C-f to point to this schema file, say yes if you
30 # are asked if you want to copy the file to your location, and then
31 # C-c C-s C-a can be used to reload the schema if you make changes
37 # - Original version by Brad Collins.
40 # - Hacked it to the point of working with Muse's QuickStart
44 # - Permit lists to be nested.
47 # - Permit paragraph-level markup, such as links, to appear in
49 # - Support multiple definitions in a definition list.
50 # - Permit a list to be nested inside of a definition.
51 # - Permit a link to be inside of a title.
52 # - Permit emphasis to be inside of other emphasis.
55 # - Add the <cite> tag.
66 muse.element.pageinfo?
67 & muse.element.section*
69 & muse.element.blockquote*
74 & muse.element.example*
78 # ------------------------------------------------
80 # ------------------------------------------------
81 ## pageinfo element used for metadata
83 muse.element.pageinfo = element pageinfo {
85 & muse.element.author?
86 & muse.element.maintainer?
87 & muse.element.pubdate? }?
90 muse.element.title = element title {
94 ## page author element
95 muse.element.author = element author { text }?
97 ## page maintainer element
98 muse.element.maintainer = element maintainer { text }?
100 ## page publication date element
101 muse.element.pubdate = element pubdate { text }?
103 # ------------------------------------------------
105 # ------------------------------------------------
107 muse.element.section = element section {
109 & muse.attribute.level?
110 & muse.element.section*
111 & muse.element.title*
113 & muse.element.blockquote*
114 & muse.element.table*
117 & muse.element.image*
118 & muse.element.example*
119 & muse.element.verse*
122 ## blockquote element
123 muse.element.blockquote = element blockquote {
128 muse.element.p = element p {
131 & muse.element.format*
132 & muse.element.image*
134 & muse.element.image*
135 & muse.element.anchor*
136 & muse.element.footnote*
140 muse.element.example = element example { text }?
143 muse.element.verse = element verse {
144 muse.element.line* }?
146 ## verse line element
147 muse.element.line = element line {
150 & muse.element.format*
151 & muse.element.image*
153 & muse.element.image*
154 & muse.element.anchor*
155 & muse.element.footnote*
158 # ------------------------------------------------
159 # Unordered list elements
160 # ------------------------------------------------
162 muse.element.list = element list {
164 & muse.element.item* }?
166 muse.element.item = element item {
168 & muse.element.definition*
171 & muse.element.format*
172 & muse.element.image*
175 & muse.element.blockquote*
176 & muse.element.table*
177 & muse.element.example*
178 & muse.element.verse*
182 # ------------------------------------------------
183 # Definition list elements
184 # ------------------------------------------------
186 muse.element.term = element term {
189 & muse.element.format*
190 & muse.element.image*
192 & muse.element.image*
196 muse.element.definition = element definition {
199 & muse.element.format*
200 & muse.element.image*
202 & muse.element.image*
206 # ------------------------------------------------
208 # ------------------------------------------------
211 ## used for emphasis, underlining, and centering paragraphs
212 muse.element.format = element format {
214 & muse.attribute.level?
217 & muse.element.format*
221 ## used for citing sources
222 muse.element.cite = element cite {
227 ## used for small pieces of monospace text, like commands
228 muse.element.code = element code { text }?
230 muse.element.image = element image { muse.attribute.href? }?
232 ## horizontal rule element
233 muse.element.hr = element hr { empty }?
236 muse.element.footnote = element footnote { text }?
239 muse.element.anchor = element anchor { muse.attribute.id }?
242 muse.element.link = element link {
244 & muse.attribute.href
247 # ------------------------------------------------
249 # ------------------------------------------------
252 muse.attribute.type = attribute type { text }?
255 muse.attribute.level = attribute level { text }?
257 ## href attribute -- must have valid URI
258 muse.attribute.href = attribute href { xsd:anyURI }?
261 muse.attribute.id = attribute id { text }?
263 # ------------------------------------------------
265 # ------------------------------------------------
268 muse.element.table = element table {
270 & muse.element.thead*
271 & muse.element.tfoot* }?
273 ## table body element
274 muse.element.tbody = element tbody { muse.element.tr* }?
276 ## table header element
277 muse.element.thead = element thead { muse.element.tr* }?
279 ## table footer element
280 muse.element.tfoot = element tfoot { muse.element.tr* }?
283 muse.element.tr = element tr {
285 & muse.element.th* }?
288 muse.element.td = element td {
291 & muse.element.format*
292 & muse.element.image*
294 & muse.element.image*
295 & muse.element.anchor*
296 & muse.element.footnote*
300 muse.element.th = element th {
303 & muse.element.format*
304 & muse.element.image*
306 & muse.element.image*
307 & muse.element.anchor*
308 & muse.element.footnote*