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