Note that RELAX NG is also ISO/IEC 19757-2.
[bpt/emacs.git] / etc / schema / calstbl.rnc
CommitLineData
8cd39fb3
MH
1# This file was generated automatically by Trang, and then manually
2# edited to add back definitions for overridden parameter entities and
3# undefined elements, specifically: bodyatt, secur, paracon,
4# tbl.table.mdl, tbl.entry.mdl, caution, graphic, legend, note, para,
5# title, warning. This makes the semantics of this module as close as
6# possible to the original DTD and also allows this schema to be used
7# independently of DocBook.
8
9# ......................................................................
10
11# DocBook CALS Table Model V4.2 ........................................
12
13# File calstblx.mod ....................................................
14
15# Copyright 1992-2002 HaL Computer Systems, Inc.,
16# O'Reilly & Associates, Inc., ArborText, Inc., Fujitsu Software
17# Corporation, Norman Walsh, Sun Microsystems, Inc., and the
18# Organization for the Advancement of Structured Information
19# Standards (OASIS).
20#
21# This DTD is based on the CALS Table Model
22# PUBLIC "-//USA-DOD//DTD Table Model 951010//EN"
23#
24# $Id: calstbl.rnc,v 1.2 2003/08/30 06:04:02 jjc Exp $
25#
26# Permission to use, copy, modify and distribute the DocBook DTD
27# and its accompanying documentation for any purpose and without fee
28# is hereby granted in perpetuity, provided that the above copyright
29# notice and this paragraph appear in all copies. The copyright
30# holders make no representation about the suitability of the DTD for
31# any purpose. It is provided "as is" without expressed or implied
32# warranty.
33#
34# If you modify the DocBook DTD in any way, except for declaring and
35# referencing additional sets of general entities and declaring
36# additional notations, label your DTD as a variant of DocBook. See
37# the maintenance documentation for more information.
38#
39# Please direct all questions, bug reports, or suggestions for
40# changes to the docbook@lists.oasis-open.org mailing list. For more
41# information, see http://www.oasis-open.org/docbook/.
42
43# ......................................................................
44
45# This module contains the definitions for the CALS Table Model
46# converted to XML.
47
48# These definitions are not directly related to the table model, but are
49# used in the default CALS table model and are usually defined elsewhere
50# (and prior to the inclusion of this table module) in a CALS DTD.
51
52bodyatt = empty
53secur = empty
54
55# no if zero(s),
56# yes if any other digits value
57
58yesorno = string
59titles = title?
60# default for use in entry content
61paracon = text
62
63# The parameter entities as defined below provide the CALS table model
64# as published (as part of the Example DTD) in MIL-HDBK-28001.
65#
66# These following declarations provide the CALS-compliant default definitions
67# for these entities. However, these entities can and should be redefined
68# (by giving the appropriate parameter entity declaration(s) prior to the
69# reference to this Table Model declaration set entity) to fit the needs
70# of the current application.
71tbl.table-titles.mdl = titles
72tbl.table-main.mdl = tgroup+ | graphic+
73tbl.table.mdl = tbl.table-titles.mdl | tbl.table-main.mdl
74tbl.table.att =
75 attribute tabstyle { text }?,
76 attribute tocentry { yesorno }?,
77 attribute shortentry { yesorno }?,
78 attribute orient { "port" | "land" }?,
79 attribute pgwide { yesorno }?
80tbl.tgroup.mdl = colspec*, spanspec*, thead?, tfoot?, tbody
81tbl.tgroup.att = attribute tgroupstyle { text }?
82tbl.hdft.mdl = colspec*, row+
83tbl.row.mdl = (entry | entrytbl)+
84tbl.entrytbl.mdl = colspec*, spanspec*, thead?, tbody
85tbl.entry.mdl = paracon | para | warning | caution | note | legend
86# ===== Element and attribute declarations follow. =====
87start = table
88table = element table { table.attlist, tbl.table.mdl }
89table.attlist &=
90 attribute frame {
91 "top" | "bottom" | "topbot" | "all" | "sides" | "none"
92 }?,
93 attribute colsep { yesorno }?,
94 attribute rowsep { yesorno }?,
95 tbl.table.att,
96 bodyatt,
97 secur
98tgroup = element tgroup { tgroup.attlist, tbl.tgroup.mdl }
99tgroup.attlist &=
100 attribute cols { text },
101 tbl.tgroup.att,
102 attribute colsep { yesorno }?,
103 attribute rowsep { yesorno }?,
104 attribute align { "left" | "right" | "center" | "justify" | "char" }?,
105 attribute char { text }?,
106 attribute charoff { text }?,
107 secur
108colspec = element colspec { colspec.attlist, empty }
109colspec.attlist &=
110 attribute colnum { text }?,
111 attribute colname { text }?,
112 attribute colwidth { text }?,
113 attribute colsep { yesorno }?,
114 attribute rowsep { yesorno }?,
115 attribute align { "left" | "right" | "center" | "justify" | "char" }?,
116 attribute char { text }?,
117 attribute charoff { text }?
118spanspec = element spanspec { spanspec.attlist, empty }
119spanspec.attlist &=
120 attribute namest { text },
121 attribute nameend { text },
122 attribute spanname { text },
123 attribute colsep { yesorno }?,
124 attribute rowsep { yesorno }?,
125 attribute align { "left" | "right" | "center" | "justify" | "char" }?,
126 attribute char { text }?,
127 attribute charoff { text }?
128thead = element thead { thead.attlist, tbl.hdft.mdl }
129thead.attlist &=
130 attribute valign { "top" | "middle" | "bottom" }?,
131 secur
132tfoot = element tfoot { tfoot.attlist, tbl.hdft.mdl }
133tfoot.attlist &=
134 attribute valign { "top" | "middle" | "bottom" }?,
135 secur
136tbody = element tbody { tbody.attlist, row+ }
137tbody.attlist &=
138 attribute valign { "top" | "middle" | "bottom" }?,
139 secur
140row = element row { row.attlist, tbl.row.mdl }
141row.attlist &=
142 attribute rowsep { yesorno }?,
143 attribute valign { "top" | "middle" | "bottom" }?,
144 secur
145entrytbl = element entrytbl { entrytbl.attlist, tbl.entrytbl.mdl }
146entrytbl.attlist &=
147 attribute cols { text },
148 tbl.tgroup.att,
149 attribute colname { text }?,
150 attribute spanname { text }?,
151 attribute namest { text }?,
152 attribute nameend { text }?,
153 attribute colsep { yesorno }?,
154 attribute rowsep { yesorno }?,
155 attribute align { "left" | "right" | "center" | "justify" | "char" }?,
156 attribute char { text }?,
157 attribute charoff { text }?,
158 secur
159entry = element entry { entry.attlist, tbl.entry.mdl* }
160entry.attlist &=
161 attribute colname { text }?,
162 attribute namest { text }?,
163 attribute nameend { text }?,
164 attribute spanname { text }?,
165 attribute morerows { text }?,
166 attribute colsep { yesorno }?,
167 attribute rowsep { yesorno }?,
168 attribute align { "left" | "right" | "center" | "justify" | "char" }?,
169 attribute char { text }?,
170 attribute charoff { text }?,
171 attribute rotate { yesorno }?,
172 attribute valign { "top" | "middle" | "bottom" }?,
173 secur
174caution |= notAllowed
175graphic |= notAllowed
176legend |= notAllowed
177note |= notAllowed
178para |= notAllowed
179title |= notAllowed
180warning |= notAllowed
181
182# End of DocBook CALS Table Model V4.2 .................................
183
184# ......................................................................