~ubuntu-branches/ubuntu/raring/docbook-xml/raring

« back to all changes in this revision

Viewing changes to 4.4/htmltblx.mod

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Leidert (dale), Daniel Leidert
  • Date: 2007-04-18 20:53:41 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070418205341-21oyzu6b9wevm1yu
Tags: 4.5-2
* Adding the Debian XML/SGML group and myself as co-maintainers closes:
  #358520. Simply forgot it.

[ Daniel Leidert ]
* catalog: Added system IDs too for DOCTYPE declarations only containing a
  system ID.
* docbook-4.0/docbook.cat: Likewise.
* debian/patches/06_add_system_identifiers_to_catalog.dpatch: Likewise.
* debian/docbook-xml.examples: Fixed examples location: will re-add them
  back to the package.
* debian/docbook-xml.xmlcatalogs.in: Added entry for "-//OASIS//DTD XML
  Exchange Table Model 19990315//EN" FPI to the root catalog.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!-- ...................................................................... -->
2
 
<!-- DocBook XML HTML Table Module V4.4 ................................... -->
3
 
<!-- File htmltblx.mod .................................................... -->
4
 
 
5
 
<!-- Copyright 2003, 2004 ArborText, Inc., Norman Walsh, Sun Microsystems,
6
 
     Inc., and the Organization for the Advancement of Structured Information
7
 
     Standards (OASIS).
8
 
 
9
 
     $Id: htmltblx.mod,v 1.23 2005/01/27 13:52:00 nwalsh Exp $
10
 
 
11
 
     Permission to use, copy, modify and distribute the DocBook XML DTD
12
 
     and its accompanying documentation for any purpose and without fee
13
 
     is hereby granted in perpetuity, provided that the above copyright
14
 
     notice and this paragraph appear in all copies.  The copyright
15
 
     holders make no representation about the suitability of the DTD for
16
 
     any purpose.  It is provided "as is" without expressed or implied
17
 
     warranty.
18
 
 
19
 
     If you modify the DocBook XML DTD in any way, except for declaring and
20
 
     referencing additional sets of general entities and declaring
21
 
     additional notations, label your DTD as a variant of DocBook.  See
22
 
     the maintenance documentation for more information.
23
 
 
24
 
     Please direct all questions, bug reports, or suggestions for
25
 
     changes to the docbook@lists.oasis-open.org mailing list. For more
26
 
     information, see http://www.oasis-open.org/docbook/.
27
 
-->
28
 
 
29
 
<!-- ...................................................................... -->
30
 
 
31
 
<!-- This module contains the definitions for elements that are
32
 
     isomorphic to the HTML elements. One could argue we should
33
 
     instead have based ourselves on the XHTML Table Module, but the
34
 
     HTML one is more like what browsers are likely to accept today
35
 
     and users are likely to use.
36
 
 
37
 
     This module has been developed for use with the DocBook V4.4
38
 
     "union table model" in which elements and attlists common to both
39
 
     models are defined (as the union) in the CALS table module by
40
 
     setting various parameter entities appropriately in this file.
41
 
 
42
 
     In DTD driver files referring to this module, please use an entity
43
 
     declaration that uses the public identifier shown below:
44
 
 
45
 
     <!ENTITY % htmltbl PUBLIC
46
 
     "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.4//EN"
47
 
     "htmltblx.mod">
48
 
     %htmltbl;
49
 
 
50
 
     See the documentation for detailed information on the parameter
51
 
     entity and module scheme used in DocBook, customizing DocBook and
52
 
     planning for interchange, and changes made since the last release
53
 
     of DocBook.
54
 
-->
55
 
 
56
 
<!--======================= XHTML Tables =======================================-->
57
 
 
58
 
<!ENTITY % html.coreattrs
59
 
 "id          ID             #IMPLIED
60
 
  class       CDATA          #IMPLIED
61
 
  style       CDATA          #IMPLIED
62
 
  title       CDATA         #IMPLIED"
63
 
  >
64
 
 
65
 
<!-- Does not contain lang or dir because they are in %common.attribs -->
66
 
<![%sgml.features;[
67
 
<!ENTITY % i18n "">
68
 
]]>
69
 
<!ENTITY % i18n
70
 
 "xml:lang    NMTOKEN        #IMPLIED"
71
 
  >
72
 
 
73
 
<!ENTITY % events
74
 
 "onclick     CDATA       #IMPLIED
75
 
  ondblclick  CDATA       #IMPLIED
76
 
  onmousedown CDATA       #IMPLIED
77
 
  onmouseup   CDATA       #IMPLIED
78
 
  onmouseover CDATA       #IMPLIED
79
 
  onmousemove CDATA       #IMPLIED
80
 
  onmouseout  CDATA       #IMPLIED
81
 
  onkeypress  CDATA       #IMPLIED
82
 
  onkeydown   CDATA       #IMPLIED
83
 
  onkeyup     CDATA       #IMPLIED"
84
 
  >
85
 
 
86
 
<!ENTITY % attrs "%html.coreattrs; %i18n; %events;">
87
 
 
88
 
<!ENTITY % cellhalign
89
 
  "align      (left|center|right|justify|char) #IMPLIED
90
 
   char       CDATA    #IMPLIED
91
 
   charoff    CDATA       #IMPLIED"
92
 
  >
93
 
 
94
 
<!ENTITY % cellvalign
95
 
  "valign     (top|middle|bottom|baseline) #IMPLIED"
96
 
  >
97
 
 
98
 
<!ELEMENT colgroup %ho; (col)*>
99
 
<!ELEMENT col      %ho; EMPTY>
100
 
<!ELEMENT tr       %ho; (th|td)+>
101
 
<!ELEMENT th       %ho; (%para.char.mix; | %tabentry.mix; | table | informaltable)*>
102
 
<!ELEMENT td       %ho; (%para.char.mix; | %tabentry.mix; | table | informaltable)*>
103
 
 
104
 
<!ATTLIST colgroup
105
 
  %attrs;
106
 
  span        CDATA       "1"
107
 
  width       CDATA  #IMPLIED
108
 
  %cellhalign;
109
 
  %cellvalign;
110
 
  >
111
 
 
112
 
<!ATTLIST col
113
 
  %attrs;
114
 
  span        CDATA       "1"
115
 
  width       CDATA  #IMPLIED
116
 
  %cellhalign;
117
 
  %cellvalign;
118
 
  >
119
 
 
120
 
<!ATTLIST tr
121
 
  %attrs;
122
 
  %cellhalign;
123
 
  %cellvalign;
124
 
  bgcolor     CDATA        #IMPLIED
125
 
  >
126
 
 
127
 
<!ATTLIST th
128
 
  %attrs;
129
 
  abbr        CDATA         #IMPLIED
130
 
  axis        CDATA          #IMPLIED
131
 
  headers     IDREFS         #IMPLIED
132
 
  scope       (row|col|rowgroup|colgroup)   #IMPLIED
133
 
  rowspan     CDATA       "1"
134
 
  colspan     CDATA       "1"
135
 
  %cellhalign;
136
 
  %cellvalign;
137
 
  nowrap      (nowrap)       #IMPLIED
138
 
  bgcolor     CDATA         #IMPLIED
139
 
  width       CDATA       #IMPLIED
140
 
  height      CDATA       #IMPLIED
141
 
  >
142
 
 
143
 
<!ATTLIST td
144
 
  %attrs;
145
 
  abbr        CDATA         #IMPLIED
146
 
  axis        CDATA          #IMPLIED
147
 
  headers     IDREFS         #IMPLIED
148
 
  scope       (row|col|rowgroup|colgroup)   #IMPLIED
149
 
  rowspan     CDATA       "1"
150
 
  colspan     CDATA       "1"
151
 
  %cellhalign;
152
 
  %cellvalign;
153
 
  nowrap      (nowrap)       #IMPLIED
154
 
  bgcolor     CDATA         #IMPLIED
155
 
  width       CDATA       #IMPLIED
156
 
  height      CDATA       #IMPLIED
157
 
  >
158
 
 
159
 
<!-- ====================================================== -->
160
 
<!--        Set up to read in the CALS model configured to
161
 
            merge with the XHTML table model                -->
162
 
<!-- ====================================================== -->
163
 
 
164
 
<!ENTITY % tables.role.attrib "%role.attrib;">
165
 
 
166
 
<!-- Add label and role attributes to table and informaltable -->
167
 
<!ENTITY % bodyatt "
168
 
                floatstyle      CDATA                   #IMPLIED
169
 
                rowheader       (firstcol|norowheader)  #IMPLIED
170
 
                %label.attrib;"
171
 
>
172
 
 
173
 
<!-- Add common attributes to Table, TGroup, TBody, THead, TFoot, Row, 
174
 
     EntryTbl, and Entry (and InformalTable element). -->
175
 
 
176
 
<!ENTITY % secur "
177
 
        %common.attrib;
178
 
        class       CDATA          #IMPLIED
179
 
        style       CDATA          #IMPLIED
180
 
        title       CDATA         #IMPLIED
181
 
        %i18n;
182
 
        %events;
183
 
        %tables.role.attrib;">
184
 
 
185
 
<!ENTITY % common.table.attribs
186
 
        "%bodyatt;
187
 
        %secur;">
188
 
 
189
 
<!-- Content model for Table (that also allows HTML tables) -->
190
 
<!ENTITY % tbl.table.mdl
191
 
        "((blockinfo?,
192
 
           (%formalobject.title.content;),
193
 
           (%ndxterm.class;)*,
194
 
           textobject*,
195
 
           (graphic+|mediaobject+|tgroup+))
196
 
         |(caption, (col*|colgroup*), thead?, tfoot?, (tbody+|tr+)))">
197
 
 
198
 
<!ENTITY % informal.tbl.table.mdl
199
 
        "(textobject*,
200
 
          (graphic+|mediaobject+|tgroup+))
201
 
         | ((col*|colgroup*), thead?, tfoot?, (tbody+|tr+))">
202
 
 
203
 
<!-- Attributes for Table (including HTML ones) -->
204
 
 
205
 
<!-- N.B. rules = (none | groups | rows | cols | all) but it can't be spec'd -->
206
 
<!-- that way because 'all' already occurs in a different enumeration in -->
207
 
<!-- CALS tables (frame). -->
208
 
 
209
 
<!ENTITY % tbl.table.att        '
210
 
    tabstyle    CDATA           #IMPLIED
211
 
    tocentry    %yesorno.attvals;       #IMPLIED
212
 
    shortentry  %yesorno.attvals;       #IMPLIED
213
 
    orient      (port|land)     #IMPLIED
214
 
    pgwide      %yesorno.attvals;       #IMPLIED 
215
 
    summary     CDATA          #IMPLIED
216
 
    width       CDATA        #IMPLIED
217
 
    border      CDATA        #IMPLIED
218
 
    rules       CDATA           #IMPLIED
219
 
    cellspacing CDATA        #IMPLIED
220
 
    cellpadding CDATA        #IMPLIED
221
 
    align       (left|center|right)   #IMPLIED
222
 
    bgcolor     CDATA         #IMPLIED
223
 
'>
224
 
 
225
 
<!ENTITY % tbl.frame.attval "void|above|below|hsides|lhs|rhs|vsides|box|border|
226
 
top|bottom|topbot|all|sides|none">
227
 
 
228
 
<!-- Allow either objects or inlines; beware of REs between elements. -->
229
 
<!ENTITY % tbl.entry.mdl "%para.char.mix; | %tabentry.mix;">
230
 
 
231
 
<!-- thead, tfoot, and tbody are defined in both table models,
232
 
     so we set up parameter entities to define union models for them
233
 
 -->
234
 
 
235
 
<!ENTITY % tbl.hdft.mdl        "(tr+|(colspec*,row+))">
236
 
<!ENTITY % tbl.tbody.mdl       "(tr+|row+)">
237
 
<!ENTITY % tbl.valign.attval   "top|middle|bottom|baseline">
238
 
 
239
 
<!-- End of DocBook XML HTML Table Module V4.4 ............................ -->
240
 
<!-- ...................................................................... -->