calstbl.rng 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. This file is part of DocBook V5.0
  4. Copyright 1992-2008 HaL Computer Systems, Inc.,
  5. O'Reilly & Associates, Inc., ArborText, Inc., Fujitsu Software
  6. Corporation, Norman Walsh, Sun Microsystems, Inc., and the
  7. Organization for the Advancement of Structured Information
  8. Standards (OASIS).
  9. Release: $Id: calstbl.rnc 8931 2010-10-20 13:29:20Z nwalsh $
  10. Permission to use, copy, modify and distribute the DocBook schema
  11. and its accompanying documentation for any purpose and without fee
  12. is hereby granted in perpetuity, provided that the above copyright
  13. notice and this paragraph appear in all copies. The copyright
  14. holders make no representation about the suitability of the schema
  15. for any purpose. It is provided "as is" without expressed or implied
  16. warranty.
  17. If you modify the DocBook schema in any way, label your schema as a
  18. variant of DocBook. See the reference documentation
  19. (http://docbook.org/tdg5/en/html/ch05.html#s-notdocbook)
  20. for more information.
  21. Please direct all questions, bug reports, or suggestions for changes
  22. to the docbook@lists.oasis-open.org mailing list. For more
  23. information, see http://www.oasis-open.org/docbook/.
  24. ======================================================================
  25. -->
  26. <grammar ns="http://docbook.org/ns/docbook" xmlns:db="http://docbook.org/ns/docbook" xmlns:s="http://purl.oclc.org/dsdl/schematron" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:ctrl="http://nwalsh.com/xmlns/schema-control/" xmlns:dbx="http://sourceforge.net/projects/docbook/defguide/schema/extra-markup" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
  27. <define name="db.table.choice" combine="choice">
  28. <ref name="db.cals.table"/>
  29. </define>
  30. <define name="db.informaltable.choice" combine="choice">
  31. <ref name="db.cals.informaltable"/>
  32. </define>
  33. <define name="db.char.attribute">
  34. <attribute name="char">
  35. <db:refpurpose>Specifies the alignment character when <db:tag class="attribute">align</db:tag>
  36. is set to <db:quote>char</db:quote>
  37. .</db:refpurpose>
  38. </attribute>
  39. </define>
  40. <define name="db.charoff.attribute">
  41. <attribute name="charoff">
  42. <db:refpurpose>Specifies the percentage of the column's total width that should appear to the left of the first occurance of the character identified in <db:tag class="attribute">char</db:tag>
  43. when <db:tag class="attribute">align</db:tag>
  44. is set to <db:quote>char</db:quote>
  45. .</db:refpurpose>
  46. <data type="decimal">
  47. <param name="minExclusive">0</param>
  48. <param name="maxExclusive">100</param>
  49. </data>
  50. </attribute>
  51. </define>
  52. <define name="db.frame.attribute">
  53. <attribute name="frame">
  54. <db:refpurpose>Specifies how the table is to be framed. Note that there is no way to obtain a border on only the starting edge (left, in left-to-right writing systems) of the table.</db:refpurpose>
  55. <choice>
  56. <value>all</value>
  57. <a:documentation>Frame all four sides of the table. In some environments with limited control over table border formatting, such as HTML, this may imply additional borders.</a:documentation>
  58. <value>bottom</value>
  59. <a:documentation>Frame only the bottom of the table.</a:documentation>
  60. <value>none</value>
  61. <a:documentation>Place no border on the table. In some environments with limited control over table border formatting, such as HTML, this may disable other borders as well.</a:documentation>
  62. <value>sides</value>
  63. <a:documentation>Frame the left and right sides of the table.</a:documentation>
  64. <value>top</value>
  65. <a:documentation>Frame the top of the table.</a:documentation>
  66. <value>topbot</value>
  67. <a:documentation>Frame the top and bottom of the table.</a:documentation>
  68. </choice>
  69. </attribute>
  70. </define>
  71. <define name="db.colsep.attribute">
  72. <attribute name="colsep">
  73. <db:refpurpose>Specifies the presence or absence of the column separator</db:refpurpose>
  74. <dbx:description>
  75. <db:para>A rule will be drawn to the right of all cells for which<db:tag class="attribute">colsep</db:tag>
  76. has the value 1 (true). Note, however, that the rule to the right of the last column in the table is controlled by the <db:tag class="attribute">frame</db:tag>
  77. attribute, not <db:tag class="attribute">colsep</db:tag>
  78. .</db:para>
  79. </dbx:description>
  80. <choice>
  81. <value>0</value>
  82. <a:documentation>No column separator rule.</a:documentation>
  83. <value>1</value>
  84. <a:documentation>Provide a column separator rule on the right</a:documentation>
  85. </choice>
  86. </attribute>
  87. </define>
  88. <define name="db.rowsep.attribute">
  89. <attribute name="rowsep">
  90. <db:refpurpose>Specifies the presence or absence of the row separator</db:refpurpose>
  91. <dbx:description>
  92. <db:para>A rule will be drawn below all cells for which<db:tag class="attribute">rowsep</db:tag>
  93. has the value 1 (true). Note, however, that the rule below the last row in the table is controlled by the <db:tag class="attribute">frame</db:tag>
  94. attribute, not <db:tag class="attribute">rowsep</db:tag>
  95. .</db:para>
  96. </dbx:description>
  97. <choice>
  98. <value>0</value>
  99. <a:documentation>No row separator rule.</a:documentation>
  100. <value>1</value>
  101. <a:documentation>Provide a row separator rule below</a:documentation>
  102. </choice>
  103. </attribute>
  104. </define>
  105. <define name="db.orient.attribute">
  106. <attribute name="orient">
  107. <db:refpurpose>Specifies the orientation of the table</db:refpurpose>
  108. <choice>
  109. <value>land</value>
  110. <a:documentation>90 degrees counter-clockwise from the rest of the text flow.</a:documentation>
  111. <value>port</value>
  112. <a:documentation>The same orientation as the rest of the text flow.</a:documentation>
  113. </choice>
  114. </attribute>
  115. </define>
  116. <define name="db.tabstyle.attribute">
  117. <attribute name="tabstyle">
  118. <db:refpurpose>Specifies the table style</db:refpurpose>
  119. <dbx:description>
  120. <db:para>The <db:tag class="attribute">tabstyle</db:tag>
  121. attribute holds the name of a table style defined in a stylesheet that will be used to process this document.</db:para>
  122. </dbx:description>
  123. </attribute>
  124. </define>
  125. <define name="db.rowheader.attribute">
  126. <attribute name="rowheader">
  127. <db:refpurpose>Indicates whether or not the entries in the first column should be considered row headers</db:refpurpose>
  128. <choice>
  129. <value>firstcol</value>
  130. <a:documentation>Indicates that entries in the first column of the table are functionally row headers (analogous to the way that a thead provides column headers).</a:documentation>
  131. <value>norowheader</value>
  132. <a:documentation>Indicates that entries in the first column have no special significance with respect to column headers.</a:documentation>
  133. </choice>
  134. </attribute>
  135. </define>
  136. <define name="db.align.attribute">
  137. <attribute name="align">
  138. <db:refpurpose>Specifies the horizontal alignment of text in an entry.</db:refpurpose>
  139. <choice>
  140. <value>center</value>
  141. <a:documentation>Centered.</a:documentation>
  142. <value>char</value>
  143. <a:documentation>Aligned on a particular character.</a:documentation>
  144. <value>justify</value>
  145. <a:documentation>Left and right justified.</a:documentation>
  146. <value>left</value>
  147. <a:documentation>Left justified.</a:documentation>
  148. <value>right</value>
  149. <a:documentation>Right justified.</a:documentation>
  150. </choice>
  151. </attribute>
  152. </define>
  153. <define name="db.valign.attribute">
  154. <attribute name="valign">
  155. <db:refpurpose>Specifies the vertical alignment of text in an entry.</db:refpurpose>
  156. <choice>
  157. <value>bottom</value>
  158. <a:documentation>Aligned on the bottom of the entry.</a:documentation>
  159. <value>middle</value>
  160. <a:documentation>Aligned in the middle.</a:documentation>
  161. <value>top</value>
  162. <a:documentation>Aligned at the top of the entry.</a:documentation>
  163. </choice>
  164. </attribute>
  165. </define>
  166. <define name="db.specify-col-by-colname.attributes">
  167. <attribute name="colname">
  168. <db:refpurpose>Specifies a column specification by name.</db:refpurpose>
  169. </attribute>
  170. </define>
  171. <define name="db.specify-col-by-namest.attributes">
  172. <attribute name="namest">
  173. <db:refpurpose>Specifies a starting column by name.</db:refpurpose>
  174. </attribute>
  175. </define>
  176. <define name="db.specify-span-by-spanspec.attributes">
  177. <attribute name="spanname">
  178. <db:refpurpose>Specifies a span by name.</db:refpurpose>
  179. </attribute>
  180. </define>
  181. <define name="db.specify-span-directly.attributes">
  182. <interleave>
  183. <attribute name="namest">
  184. <db:refpurpose>Specifies a starting column by name.</db:refpurpose>
  185. </attribute>
  186. <attribute name="nameend">
  187. <db:refpurpose>Specifies an ending column by name.</db:refpurpose>
  188. </attribute>
  189. </interleave>
  190. </define>
  191. <define name="db.column-spec.attributes">
  192. <choice>
  193. <ref name="db.specify-col-by-colname.attributes"/>
  194. <ref name="db.specify-col-by-namest.attributes"/>
  195. <ref name="db.specify-span-by-spanspec.attributes"/>
  196. <ref name="db.specify-span-directly.attributes"/>
  197. </choice>
  198. </define>
  199. <define name="db.colname.attribute">
  200. <attribute name="colname">
  201. <db:refpurpose>Provides a name for a column specification.</db:refpurpose>
  202. </attribute>
  203. </define>
  204. <define name="db.spanname.attribute">
  205. <attribute name="spanname">
  206. <db:refpurpose>Provides a name for a span specification.</db:refpurpose>
  207. </attribute>
  208. </define>
  209. <!-- ====================================================================== -->
  210. <div>
  211. <db:refname>tgroup</db:refname>
  212. <db:refpurpose>A wrapper for the main content of a table, or part of a table</db:refpurpose>
  213. <define name="db.tgroup.role.attribute">
  214. <attribute name="role"/>
  215. </define>
  216. <define name="db.tgroup.tgroupstyle.attribute">
  217. <attribute name="tgroupstyle">
  218. <db:refpurpose>Additional style information for downstream processing; typically the name of a style.</db:refpurpose>
  219. </attribute>
  220. </define>
  221. <define name="db.tgroup.cols.attribute">
  222. <attribute name="cols">
  223. <db:refpurpose>The number of columns in the table. Must be an integer greater than zero.</db:refpurpose>
  224. <data type="positiveInteger"/>
  225. </attribute>
  226. </define>
  227. <define name="db.tgroup.attlist">
  228. <interleave>
  229. <optional>
  230. <ref name="db.tgroup.role.attribute"/>
  231. </optional>
  232. <ref name="db.common.attributes"/>
  233. <ref name="db.common.linking.attributes"/>
  234. <optional>
  235. <ref name="db.char.attribute"/>
  236. </optional>
  237. <optional>
  238. <ref name="db.charoff.attribute"/>
  239. </optional>
  240. <optional>
  241. <ref name="db.tgroup.tgroupstyle.attribute"/>
  242. </optional>
  243. <ref name="db.tgroup.cols.attribute"/>
  244. <optional>
  245. <ref name="db.colsep.attribute"/>
  246. </optional>
  247. <optional>
  248. <ref name="db.rowsep.attribute"/>
  249. </optional>
  250. <optional>
  251. <ref name="db.align.attribute"/>
  252. </optional>
  253. </interleave>
  254. </define>
  255. <define name="db.tgroup">
  256. <element name="tgroup">
  257. <ref name="db.tgroup.attlist"/>
  258. <zeroOrMore>
  259. <ref name="db.colspec"/>
  260. </zeroOrMore>
  261. <zeroOrMore>
  262. <ref name="db.spanspec"/>
  263. </zeroOrMore>
  264. <optional>
  265. <ref name="db.cals.thead"/>
  266. </optional>
  267. <optional>
  268. <ref name="db.cals.tfoot"/>
  269. </optional>
  270. <ref name="db.cals.tbody"/>
  271. </element>
  272. </define>
  273. </div>
  274. <!-- ====================================================================== -->
  275. <div>
  276. <db:refname>colspec</db:refname>
  277. <db:refpurpose>Specifications for a column in a table</db:refpurpose>
  278. <define name="db.colspec.role.attribute">
  279. <attribute name="role"/>
  280. </define>
  281. <define name="db.colspec.colnum.attribute">
  282. <attribute name="colnum">
  283. <db:refpurpose>The number of the column to which this specification applies. Must be greater than any preceding column number. Defaults to one more than the number of the preceding column, if there is one, or one.</db:refpurpose>
  284. <data type="positiveInteger"/>
  285. </attribute>
  286. </define>
  287. <define name="db.colspec.colwidth.attribute">
  288. <attribute name="colwidth">
  289. <db:refpurpose>Specifies the width of the column.</db:refpurpose>
  290. </attribute>
  291. </define>
  292. <define name="db.colspec.attlist">
  293. <interleave>
  294. <optional>
  295. <ref name="db.colspec.role.attribute"/>
  296. </optional>
  297. <ref name="db.common.attributes"/>
  298. <ref name="db.common.linking.attributes"/>
  299. <optional>
  300. <ref name="db.colspec.colnum.attribute"/>
  301. </optional>
  302. <optional>
  303. <ref name="db.char.attribute"/>
  304. </optional>
  305. <optional>
  306. <ref name="db.colsep.attribute"/>
  307. </optional>
  308. <optional>
  309. <ref name="db.colspec.colwidth.attribute"/>
  310. </optional>
  311. <optional>
  312. <ref name="db.charoff.attribute"/>
  313. </optional>
  314. <optional>
  315. <ref name="db.colname.attribute"/>
  316. </optional>
  317. <optional>
  318. <ref name="db.rowsep.attribute"/>
  319. </optional>
  320. <optional>
  321. <ref name="db.align.attribute"/>
  322. </optional>
  323. </interleave>
  324. </define>
  325. <define name="db.colspec">
  326. <element name="colspec">
  327. <ref name="db.colspec.attlist"/>
  328. <empty/>
  329. </element>
  330. </define>
  331. </div>
  332. <!-- ====================================================================== -->
  333. <div>
  334. <db:refname>spanspec</db:refname>
  335. <db:refpurpose>Formatting information for a spanned column in a table</db:refpurpose>
  336. <define name="db.spanspec.role.attribute">
  337. <attribute name="role"/>
  338. </define>
  339. <define name="db.spanspec.namest.attribute">
  340. <attribute name="namest">
  341. <db:refpurpose>Specifies a starting column by name.</db:refpurpose>
  342. </attribute>
  343. </define>
  344. <define name="db.spanspec.nameend.attribute">
  345. <attribute name="nameend">
  346. <db:refpurpose>Specifies an ending column by name.</db:refpurpose>
  347. </attribute>
  348. </define>
  349. <define name="db.spanspec.attlist">
  350. <interleave>
  351. <optional>
  352. <ref name="db.spanspec.role.attribute"/>
  353. </optional>
  354. <ref name="db.common.attributes"/>
  355. <ref name="db.common.linking.attributes"/>
  356. <ref name="db.spanname.attribute"/>
  357. <ref name="db.spanspec.namest.attribute"/>
  358. <ref name="db.spanspec.nameend.attribute"/>
  359. <optional>
  360. <ref name="db.char.attribute"/>
  361. </optional>
  362. <optional>
  363. <ref name="db.colsep.attribute"/>
  364. </optional>
  365. <optional>
  366. <ref name="db.charoff.attribute"/>
  367. </optional>
  368. <optional>
  369. <ref name="db.rowsep.attribute"/>
  370. </optional>
  371. <optional>
  372. <ref name="db.align.attribute"/>
  373. </optional>
  374. </interleave>
  375. </define>
  376. <define name="db.spanspec">
  377. <element name="spanspec">
  378. <ref name="db.spanspec.attlist"/>
  379. <empty/>
  380. </element>
  381. </define>
  382. </div>
  383. <!-- ====================================================================== -->
  384. <div>
  385. <db:refname>thead</db:refname>
  386. <db:refpurpose>A table header consisting of one or more rows</db:refpurpose>
  387. <define name="db.cals.thead.role.attribute">
  388. <attribute name="role"/>
  389. </define>
  390. <define name="db.cals.thead.attlist">
  391. <interleave>
  392. <optional>
  393. <ref name="db.cals.thead.role.attribute"/>
  394. </optional>
  395. <ref name="db.common.attributes"/>
  396. <ref name="db.common.linking.attributes"/>
  397. <optional>
  398. <ref name="db.valign.attribute"/>
  399. </optional>
  400. </interleave>
  401. </define>
  402. <define name="db.cals.thead">
  403. <element name="thead">
  404. <ref name="db.cals.thead.attlist"/>
  405. <zeroOrMore>
  406. <ref name="db.colspec"/>
  407. </zeroOrMore>
  408. <oneOrMore>
  409. <ref name="db.row"/>
  410. </oneOrMore>
  411. </element>
  412. </define>
  413. </div>
  414. <!-- ====================================================================== -->
  415. <div>
  416. <db:refname>tfoot</db:refname>
  417. <db:refpurpose>A table footer consisting of one or more rows</db:refpurpose>
  418. <define name="db.cals.tfoot.role.attribute">
  419. <attribute name="role"/>
  420. </define>
  421. <define name="db.cals.tfoot.attlist">
  422. <interleave>
  423. <optional>
  424. <ref name="db.cals.tfoot.role.attribute"/>
  425. </optional>
  426. <ref name="db.common.attributes"/>
  427. <ref name="db.common.linking.attributes"/>
  428. <optional>
  429. <ref name="db.valign.attribute"/>
  430. </optional>
  431. </interleave>
  432. </define>
  433. <define name="db.cals.tfoot">
  434. <element name="tfoot">
  435. <ref name="db.cals.tfoot.attlist"/>
  436. <zeroOrMore>
  437. <ref name="db.colspec"/>
  438. </zeroOrMore>
  439. <oneOrMore>
  440. <ref name="db.row"/>
  441. </oneOrMore>
  442. </element>
  443. </define>
  444. </div>
  445. <!-- ====================================================================== -->
  446. <div>
  447. <db:refname>tbody</db:refname>
  448. <db:refpurpose>A wrapper for the rows of a table or informal table</db:refpurpose>
  449. <define name="db.cals.tbody.role.attribute">
  450. <attribute name="role"/>
  451. </define>
  452. <define name="db.cals.tbody.attlist">
  453. <interleave>
  454. <optional>
  455. <ref name="db.cals.tbody.role.attribute"/>
  456. </optional>
  457. <ref name="db.common.attributes"/>
  458. <ref name="db.common.linking.attributes"/>
  459. <optional>
  460. <ref name="db.valign.attribute"/>
  461. </optional>
  462. </interleave>
  463. </define>
  464. <define name="db.cals.tbody">
  465. <element name="tbody">
  466. <ref name="db.cals.tbody.attlist"/>
  467. <oneOrMore>
  468. <ref name="db.row"/>
  469. </oneOrMore>
  470. </element>
  471. </define>
  472. </div>
  473. <!-- ====================================================================== -->
  474. <div>
  475. <db:refname>row</db:refname>
  476. <db:refpurpose>A row in a table</db:refpurpose>
  477. <define name="db.row.role.attribute">
  478. <attribute name="role"/>
  479. </define>
  480. <define name="db.row.attlist">
  481. <interleave>
  482. <optional>
  483. <ref name="db.row.role.attribute"/>
  484. </optional>
  485. <ref name="db.common.attributes"/>
  486. <ref name="db.common.linking.attributes"/>
  487. <optional>
  488. <ref name="db.rowsep.attribute"/>
  489. </optional>
  490. <optional>
  491. <ref name="db.valign.attribute"/>
  492. </optional>
  493. </interleave>
  494. </define>
  495. <define name="db.row">
  496. <element name="row">
  497. <ref name="db.row.attlist"/>
  498. <oneOrMore>
  499. <choice>
  500. <ref name="db.entry"/>
  501. <ref name="db.entrytbl"/>
  502. </choice>
  503. </oneOrMore>
  504. </element>
  505. </define>
  506. </div>
  507. <!-- ====================================================================== -->
  508. <div>
  509. <db:refname>entry</db:refname>
  510. <db:refpurpose>A cell in a table</db:refpurpose>
  511. <ctrl:exclude from="db.entry" exclude="db.cals.table"/>
  512. <ctrl:exclude from="db.entry" exclude="db.cals.informaltable"/>
  513. <define name="db.entry.role.attribute">
  514. <attribute name="role"/>
  515. </define>
  516. <define name="db.entry.morerows.attribute">
  517. <attribute name="morerows">
  518. <db:refpurpose>Specifies the number of additional rows which this entry occupies. Defaults to zero.</db:refpurpose>
  519. <data type="integer"/>
  520. </attribute>
  521. </define>
  522. <define name="db.entry.rotate.attribute">
  523. <attribute name="rotate">
  524. <db:refpurpose>Specifies the rotation of this entry. A value of 1 (true) rotates the cell 90 degrees counter-clockwise. A value of 0 (false) leaves the cell unrotated.</db:refpurpose>
  525. <choice>
  526. <value>0</value>
  527. <a:documentation>Do not rotate the cell.</a:documentation>
  528. <value>1</value>
  529. <a:documentation>Rotate the cell 90 degrees counter-clockwise.</a:documentation>
  530. </choice>
  531. </attribute>
  532. </define>
  533. <define name="db.entry.attlist">
  534. <interleave>
  535. <optional>
  536. <ref name="db.entry.role.attribute"/>
  537. </optional>
  538. <ref name="db.common.attributes"/>
  539. <ref name="db.common.linking.attributes"/>
  540. <optional>
  541. <ref name="db.valign.attribute"/>
  542. </optional>
  543. <optional>
  544. <ref name="db.char.attribute"/>
  545. </optional>
  546. <optional>
  547. <ref name="db.colsep.attribute"/>
  548. </optional>
  549. <optional>
  550. <ref name="db.charoff.attribute"/>
  551. </optional>
  552. <optional>
  553. <ref name="db.entry.morerows.attribute"/>
  554. </optional>
  555. <optional>
  556. <ref name="db.column-spec.attributes"/>
  557. </optional>
  558. <optional>
  559. <ref name="db.rowsep.attribute"/>
  560. </optional>
  561. <optional>
  562. <ref name="db.entry.rotate.attribute"/>
  563. </optional>
  564. <optional>
  565. <ref name="db.align.attribute"/>
  566. </optional>
  567. </interleave>
  568. </define>
  569. <define name="db.entry">
  570. <element name="entry">
  571. <ref name="db.entry.attlist"/>
  572. <choice>
  573. <zeroOrMore>
  574. <ref name="db.all.inlines"/>
  575. </zeroOrMore>
  576. <zeroOrMore>
  577. <ref name="db.all.blocks"/>
  578. </zeroOrMore>
  579. </choice>
  580. </element>
  581. </define>
  582. </div>
  583. <!-- ====================================================================== -->
  584. <div>
  585. <db:refname>entrytbl</db:refname>
  586. <db:refpurpose>A subtable appearing in place of an entry in a table</db:refpurpose>
  587. <define name="db.entrytbl.role.attribute">
  588. <attribute name="role"/>
  589. </define>
  590. <define name="db.entrytbl.tgroupstyle.attribute">
  591. <attribute name="tgroupstyle">
  592. <db:refpurpose>Additional style information for downstream processing; typically the name of a style.</db:refpurpose>
  593. </attribute>
  594. </define>
  595. <define name="db.entrytbl.cols.attribute">
  596. <attribute name="cols">
  597. <db:refpurpose>The number of columns in the entry table. Must be an integer greater than zero.</db:refpurpose>
  598. <data type="positiveInteger"/>
  599. </attribute>
  600. </define>
  601. <define name="db.entrytbl.attlist">
  602. <interleave>
  603. <optional>
  604. <ref name="db.entrytbl.role.attribute"/>
  605. </optional>
  606. <ref name="db.common.attributes"/>
  607. <ref name="db.common.linking.attributes"/>
  608. <optional>
  609. <ref name="db.char.attribute"/>
  610. </optional>
  611. <optional>
  612. <ref name="db.charoff.attribute"/>
  613. </optional>
  614. <optional>
  615. <ref name="db.column-spec.attributes"/>
  616. </optional>
  617. <optional>
  618. <ref name="db.entrytbl.tgroupstyle.attribute"/>
  619. </optional>
  620. <optional>
  621. <ref name="db.entrytbl.cols.attribute"/>
  622. </optional>
  623. <optional>
  624. <ref name="db.colsep.attribute"/>
  625. </optional>
  626. <optional>
  627. <ref name="db.rowsep.attribute"/>
  628. </optional>
  629. <optional>
  630. <ref name="db.align.attribute"/>
  631. </optional>
  632. </interleave>
  633. </define>
  634. <define name="db.entrytbl">
  635. <element name="entrytbl">
  636. <ref name="db.entrytbl.attlist"/>
  637. <zeroOrMore>
  638. <ref name="db.colspec"/>
  639. </zeroOrMore>
  640. <zeroOrMore>
  641. <ref name="db.spanspec"/>
  642. </zeroOrMore>
  643. <optional>
  644. <ref name="db.cals.entrytbl.thead"/>
  645. </optional>
  646. <ref name="db.cals.entrytbl.tbody"/>
  647. </element>
  648. </define>
  649. </div>
  650. <!-- ====================================================================== -->
  651. <div>
  652. <db:refname>thead</db:refname>
  653. <db:refpurpose>A table header consisting of one or more rows</db:refpurpose>
  654. <define name="db.cals.entrytbl.thead.role.attribute">
  655. <attribute name="role"/>
  656. </define>
  657. <define name="db.cals.entrytbl.thead.attlist">
  658. <interleave>
  659. <optional>
  660. <ref name="db.cals.entrytbl.thead.role.attribute"/>
  661. </optional>
  662. <ref name="db.common.attributes"/>
  663. <ref name="db.common.linking.attributes"/>
  664. <optional>
  665. <ref name="db.valign.attribute"/>
  666. </optional>
  667. </interleave>
  668. </define>
  669. <define name="db.cals.entrytbl.thead">
  670. <element name="thead">
  671. <ref name="db.cals.entrytbl.thead.attlist"/>
  672. <zeroOrMore>
  673. <ref name="db.colspec"/>
  674. </zeroOrMore>
  675. <oneOrMore>
  676. <ref name="db.entrytbl.row"/>
  677. </oneOrMore>
  678. </element>
  679. </define>
  680. </div>
  681. <!-- ====================================================================== -->
  682. <div>
  683. <db:refname>tbody</db:refname>
  684. <db:refpurpose>A wrapper for the rows of a table or informal table</db:refpurpose>
  685. <define name="db.cals.entrytbl.tbody.role.attribute">
  686. <attribute name="role"/>
  687. </define>
  688. <define name="db.cals.entrytbl.tbody.attlist">
  689. <interleave>
  690. <optional>
  691. <ref name="db.cals.entrytbl.tbody.role.attribute"/>
  692. </optional>
  693. <ref name="db.common.attributes"/>
  694. <ref name="db.common.linking.attributes"/>
  695. <optional>
  696. <ref name="db.valign.attribute"/>
  697. </optional>
  698. </interleave>
  699. </define>
  700. <define name="db.cals.entrytbl.tbody">
  701. <element name="tbody">
  702. <ref name="db.cals.entrytbl.tbody.attlist"/>
  703. <oneOrMore>
  704. <ref name="db.entrytbl.row"/>
  705. </oneOrMore>
  706. </element>
  707. </define>
  708. </div>
  709. <!-- ====================================================================== -->
  710. <div>
  711. <db:refname>row</db:refname>
  712. <db:refpurpose>A row in a table</db:refpurpose>
  713. <define name="db.entrytbl.row.role.attribute">
  714. <attribute name="role"/>
  715. </define>
  716. <define name="db.entrytbl.row.attlist">
  717. <interleave>
  718. <optional>
  719. <ref name="db.entrytbl.row.role.attribute"/>
  720. </optional>
  721. <ref name="db.common.attributes"/>
  722. <ref name="db.common.linking.attributes"/>
  723. <optional>
  724. <ref name="db.rowsep.attribute"/>
  725. </optional>
  726. <optional>
  727. <ref name="db.valign.attribute"/>
  728. </optional>
  729. </interleave>
  730. </define>
  731. <define name="db.entrytbl.row">
  732. <element name="row">
  733. <ref name="db.entrytbl.row.attlist"/>
  734. <oneOrMore>
  735. <ref name="db.entry"/>
  736. </oneOrMore>
  737. </element>
  738. </define>
  739. </div>
  740. <!-- ====================================================================== -->
  741. <div>
  742. <db:refname>table</db:refname>
  743. <db:refpurpose>A formal table in a document</db:refpurpose>
  744. <define name="db.cals.table.role.attribute">
  745. <attribute name="role"/>
  746. </define>
  747. <define name="db.cals.table.label.attribute">
  748. <ref name="db.label.attribute"/>
  749. </define>
  750. <define name="db.cals.table.attlist">
  751. <interleave>
  752. <optional>
  753. <ref name="db.cals.table.role.attribute"/>
  754. </optional>
  755. <optional>
  756. <ref name="db.cals.table.label.attribute"/>
  757. </optional>
  758. <ref name="db.common.attributes"/>
  759. <ref name="db.common.linking.attributes"/>
  760. <optional>
  761. <ref name="db.tabstyle.attribute"/>
  762. </optional>
  763. <optional>
  764. <ref name="db.floatstyle.attribute"/>
  765. </optional>
  766. <optional>
  767. <ref name="db.orient.attribute"/>
  768. </optional>
  769. <optional>
  770. <ref name="db.colsep.attribute"/>
  771. </optional>
  772. <optional>
  773. <ref name="db.rowsep.attribute"/>
  774. </optional>
  775. <optional>
  776. <ref name="db.frame.attribute"/>
  777. </optional>
  778. <optional>
  779. <ref name="db.pgwide.attribute"/>
  780. </optional>
  781. <optional>
  782. <attribute name="shortentry">
  783. <db:refpurpose>Indicates if the short or long title should be used in a List of Tables</db:refpurpose>
  784. <choice>
  785. <value>0</value>
  786. <a:documentation>Indicates that the full title should be used.</a:documentation>
  787. <value>1</value>
  788. <a:documentation>Indicates that the short short title (titleabbrev) should be used.</a:documentation>
  789. </choice>
  790. </attribute>
  791. </optional>
  792. <optional>
  793. <attribute name="tocentry">
  794. <db:refpurpose>Indicates if the table should appear in a List of Tables</db:refpurpose>
  795. <choice>
  796. <value>0</value>
  797. <a:documentation>Indicates that the table should not occur in the List of Tables.</a:documentation>
  798. <value>1</value>
  799. <a:documentation>Indicates that the table should appear in the List of Tables.</a:documentation>
  800. </choice>
  801. </attribute>
  802. </optional>
  803. <optional>
  804. <ref name="db.rowheader.attribute"/>
  805. </optional>
  806. </interleave>
  807. </define>
  808. <define name="db.cals.table.info">
  809. <ref name="db._info.title.onlyreq"/>
  810. </define>
  811. <define name="db.cals.table">
  812. <element name="table">
  813. <ref name="db.cals.table.attlist"/>
  814. <ref name="db.cals.table.info"/>
  815. <interleave>
  816. <optional>
  817. <ref name="db.alt"/>
  818. </optional>
  819. <zeroOrMore>
  820. <ref name="db.indexing.inlines"/>
  821. </zeroOrMore>
  822. <zeroOrMore>
  823. <ref name="db.textobject"/>
  824. </zeroOrMore>
  825. </interleave>
  826. <choice>
  827. <oneOrMore>
  828. <ref name="db.mediaobject"/>
  829. </oneOrMore>
  830. <oneOrMore>
  831. <ref name="db.tgroup"/>
  832. </oneOrMore>
  833. </choice>
  834. <optional>
  835. <ref name="db.caption"/>
  836. </optional>
  837. </element>
  838. </define>
  839. </div>
  840. <!-- ====================================================================== -->
  841. <div>
  842. <db:refname>informaltable</db:refname>
  843. <db:refpurpose>A table without a title</db:refpurpose>
  844. <define name="db.cals.informaltable.role.attribute">
  845. <attribute name="role"/>
  846. </define>
  847. <define name="db.cals.informaltable.attlist">
  848. <interleave>
  849. <optional>
  850. <ref name="db.cals.informaltable.role.attribute"/>
  851. </optional>
  852. <ref name="db.common.attributes"/>
  853. <ref name="db.common.linking.attributes"/>
  854. <optional>
  855. <ref name="db.tabstyle.attribute"/>
  856. </optional>
  857. <optional>
  858. <ref name="db.floatstyle.attribute"/>
  859. </optional>
  860. <optional>
  861. <ref name="db.orient.attribute"/>
  862. </optional>
  863. <optional>
  864. <ref name="db.colsep.attribute"/>
  865. </optional>
  866. <optional>
  867. <ref name="db.rowsep.attribute"/>
  868. </optional>
  869. <optional>
  870. <ref name="db.frame.attribute"/>
  871. </optional>
  872. <optional>
  873. <ref name="db.pgwide.attribute"/>
  874. </optional>
  875. <optional>
  876. <ref name="db.rowheader.attribute"/>
  877. </optional>
  878. </interleave>
  879. </define>
  880. <define name="db.cals.informaltable.info">
  881. <ref name="db._info.title.forbidden"/>
  882. </define>
  883. <define name="db.cals.informaltable">
  884. <element name="informaltable">
  885. <ref name="db.cals.informaltable.attlist"/>
  886. <ref name="db.cals.informaltable.info"/>
  887. <interleave>
  888. <optional>
  889. <ref name="db.alt"/>
  890. </optional>
  891. <zeroOrMore>
  892. <ref name="db.indexing.inlines"/>
  893. </zeroOrMore>
  894. <zeroOrMore>
  895. <ref name="db.textobject"/>
  896. </zeroOrMore>
  897. </interleave>
  898. <choice>
  899. <oneOrMore>
  900. <ref name="db.mediaobject"/>
  901. </oneOrMore>
  902. <oneOrMore>
  903. <ref name="db.tgroup"/>
  904. </oneOrMore>
  905. </choice>
  906. <optional>
  907. <ref name="db.caption"/>
  908. </optional>
  909. </element>
  910. </define>
  911. </div>
  912. </grammar>