source: BOOK/schema/docbook/4.5/rng/calstblx.rnc@ 6243b1f

clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 6243b1f was da28cc3, checked in by Joe Ciccone <jciccone@…>, 14 years ago

Validate the book against relax-ng instead of the
standard DTD.

  • Property mode set to 100644
File size: 6.2 KB
Line 
1# ......................................................................
2
3# DocBook CALS Table Model V4.5 ........................................
4
5# File calstblx.mod ....................................................
6
7# Copyright 1992-2002 HaL Computer Systems, Inc.,
8# O'Reilly & Associates, Inc., ArborText, Inc., Fujitsu Software
9# Corporation, Norman Walsh, Sun Microsystems, Inc., and the
10# Organization for the Advancement of Structured Information
11# Standards (OASIS).
12#
13# This DTD is based on the CALS Table Model
14# PUBLIC "-//USA-DOD//DTD Table Model 951010//EN"
15#
16# $Id: calstblx.dtd 6340 2006-10-03 13:23:24Z nwalsh $
17#
18# Permission to use, copy, modify and distribute the DocBook DTD
19# and its accompanying documentation for any purpose and without fee
20# is hereby granted in perpetuity, provided that the above copyright
21# notice and this paragraph appear in all copies. The copyright
22# holders make no representation about the suitability of the DTD for
23# any purpose. It is provided "as is" without expressed or implied
24# warranty.
25#
26# If you modify the DocBook DTD in any way, except for declaring and
27# referencing additional sets of general entities and declaring
28# additional notations, label your DTD as a variant of DocBook. See
29# the maintenance documentation for more information.
30#
31# Please direct all questions, bug reports, or suggestions for
32# changes to the docbook@lists.oasis-open.org mailing list. For more
33# information, see http://www.oasis-open.org/docbook/.
34
35# ......................................................................
36
37# This module contains the definitions for the CALS Table Model
38# converted to XML. It has been modified slightly for use in the
39# combined HTML/CALS models supported by DocBook V4.5.
40
41# These definitions are not directly related to the table model, but are
42# used in the default CALS table model and are usually defined elsewhere
43# (and prior to the inclusion of this table module) in a CALS DTD.
44
45# no if zero(s),
46# yes if any other digits value
47
48yesorno = string
49titles = title?
50# default for use in entry content
51
52# The parameter entities as defined below provide the CALS table model
53# as published (as part of the Example DTD) in MIL-HDBK-28001.
54#
55# These following declarations provide the CALS-compliant default definitions
56# for these entities. However, these entities can and should be redefined
57# (by giving the appropriate parameter entity declaration(s) prior to the
58# reference to this Table Model declaration set entity) to fit the needs
59# of the current application.
60tbl.table-titles.mdl = titles
61tbl.table-main.mdl = tgroup+ | graphic+
62tbl.tgroup.mdl = colspec*, spanspec*, thead?, tfoot?, tbody
63tbl.tgroup.att = attribute tgroupstyle { text }?
64tbl.row.mdl = (entry | entrytbl)+
65tbl.entrytbl.mdl = colspec*, spanspec*, thead?, tbody
66# ===== Element and attribute declarations follow. =====
67
68# doc:A formal table in a document.
69table = element table { table.attlist, tbl.table.mdl }
70table.attlist &=
71 attribute frame { tbl.frame.attval }?,
72 attribute colsep { yesorno }?,
73 attribute rowsep { yesorno }?,
74 tbl.table.att,
75 bodyatt,
76 secur
77# doc:A wrapper for the main content of a table, or part of a table.
78tgroup = element tgroup { tgroup.attlist, tbl.tgroup.mdl }
79tgroup.attlist &=
80 attribute cols { text },
81 tbl.tgroup.att,
82 attribute colsep { yesorno }?,
83 attribute rowsep { yesorno }?,
84 attribute align { "left" | "right" | "center" | "justify" | "char" }?,
85 attribute char { text }?,
86 attribute charoff { text }?,
87 secur
88# doc:Specifications for a column in a table.
89colspec = element colspec { colspec.attlist, empty }
90colspec.attlist &=
91 attribute colnum { text }?,
92 attribute colname { text }?,
93 attribute colwidth { text }?,
94 attribute colsep { yesorno }?,
95 attribute rowsep { yesorno }?,
96 attribute align { "left" | "right" | "center" | "justify" | "char" }?,
97 attribute char { text }?,
98 attribute charoff { text }?
99# doc:Formatting information for a spanned column in a table.
100spanspec = element spanspec { spanspec.attlist, empty }
101spanspec.attlist &=
102 attribute namest { text },
103 attribute nameend { text },
104 attribute spanname { text },
105 attribute colsep { yesorno }?,
106 attribute rowsep { yesorno }?,
107 attribute align { "left" | "right" | "center" | "justify" | "char" }?,
108 attribute char { text }?,
109 attribute charoff { text }?
110# doc:A table header consisting of one or more rows.
111thead = element thead { thead.attlist, tbl.hdft.mdl }
112thead.attlist &=
113 attribute valign { "top" | "middle" | "bottom" }?,
114 secur
115# doc:A table footer consisting of one or more rows.
116tfoot = element tfoot { tfoot.attlist, tbl.hdft.mdl }
117tfoot.attlist &=
118 attribute valign { "top" | "middle" | "bottom" }?,
119 secur
120# doc:A wrapper for the rows of a table or informal table.
121tbody = element tbody { tbody.attlist, tbl.tbody.mdl }
122tbody.attlist &=
123 attribute valign { "top" | "middle" | "bottom" }?,
124 secur
125# doc:A row in a table.
126row = element row { row.attlist, tbl.row.mdl }
127row.attlist &=
128 attribute rowsep { yesorno }?,
129 attribute valign { "top" | "middle" | "bottom" }?,
130 secur
131# doc:A subtable appearing in place of an Entry in a table.
132entrytbl = element entrytbl { entrytbl.attlist, tbl.entrytbl.mdl }
133entrytbl.attlist &=
134 attribute cols { text },
135 tbl.tgroup.att,
136 attribute colname { text }?,
137 attribute spanname { text }?,
138 attribute namest { text }?,
139 attribute nameend { text }?,
140 attribute colsep { yesorno }?,
141 attribute rowsep { yesorno }?,
142 attribute align { "left" | "right" | "center" | "justify" | "char" }?,
143 attribute char { text }?,
144 attribute charoff { text }?,
145 secur
146# doc:A cell in a table.
147entry = element entry { entry.attlist, tbl.entry.mdl* }
148entry.attlist &=
149 attribute colname { text }?,
150 attribute namest { text }?,
151 attribute nameend { text }?,
152 attribute spanname { text }?,
153 attribute morerows { text }?,
154 attribute colsep { yesorno }?,
155 attribute rowsep { yesorno }?,
156 attribute align { "left" | "right" | "center" | "justify" | "char" }?,
157 attribute char { text }?,
158 attribute charoff { text }?,
159 attribute rotate { yesorno }?,
160 attribute valign { "top" | "middle" | "bottom" }?,
161 secur
162# End of DocBook CALS Table Model V4.5 .................................
163
164# ......................................................................
Note: See TracBrowser for help on using the repository browser.