/test/target/ok/table.sgml

http://txt2tags.googlecode.com/ · Unknown · 178 lines · 135 code · 43 blank · 0 comment · 0 complexity · 0d38865af3cb10f1fd6898fd43aaa24a MD5 · raw file

  1. <!doctype linuxdoc system>
  2. <article>
  3. <sect>Simple table<p>
  4. <table><tabular ca="lll">
  5. Cell 1-1<colsep>Cell 1-2<colsep>Cell 1-3<rowsep>
  6. Cell 2-1<colsep>Cell 2-2<colsep>Cell 2-3<rowsep>
  7. Cell 3-1<colsep>Cell 3-2<colsep>Cell 3-3
  8. </tabular></table>
  9. <sect>Simple table + border<p>
  10. <table><tabular ca="lll">
  11. Cell 1-1<colsep>Cell 1-2<colsep>Cell 1-3<rowsep>
  12. Cell 2-1<colsep>Cell 2-2<colsep>Cell 2-3<rowsep>
  13. Cell 3-1<colsep>Cell 3-2<colsep>Cell 3-3
  14. </tabular></table>
  15. <sect>Simple table + heading<p>
  16. <table><tabular ca="lll">
  17. Head 1-1<colsep>Head 1-2<colsep>Head 1-3<rowsep>
  18. Cell 1-1<colsep>Cell 1-2<colsep>Cell 1-3<rowsep>
  19. Cell 2-1<colsep>Cell 2-2<colsep>Cell 2-3<rowsep>
  20. Cell 3-1<colsep>Cell 3-2<colsep>Cell 3-3
  21. </tabular></table>
  22. <sect>Simple table + heading + border<p>
  23. <table><tabular ca="lll">
  24. Head 1-1<colsep>Head 1-2<colsep>Head 1-3<rowsep>
  25. Cell 1-1<colsep>Cell 1-2<colsep>Cell 1-3<rowsep>
  26. Cell 2-1<colsep>Cell 2-2<colsep>Cell 2-3<rowsep>
  27. Cell 3-1<colsep>Cell 3-2<colsep>Cell 3-3
  28. </tabular></table>
  29. <sect>Simple table + heading + border + footer<p>
  30. <table><tabular ca="lll">
  31. Head 1-1<colsep>Head 1-2<colsep>Head 1-3<rowsep>
  32. Cell 1-1<colsep>Cell 1-2<colsep>Cell 1-3<rowsep>
  33. Cell 2-1<colsep>Cell 2-2<colsep>Cell 2-3<rowsep>
  34. Cell 3-1<colsep>Cell 3-2<colsep>Cell 3-3<rowsep>
  35. Foot 1-1<colsep>Foot 1-2<colsep>Foot 1-3
  36. </tabular></table>
  37. <sect>Simple table + heading + border + centralized<p>
  38. <table><tabular ca="lll">
  39. Head 1-1<colsep>Head 1-2<colsep>Head 1-3<rowsep>
  40. Cell 1-1<colsep>Cell 1-2<colsep>Cell 1-3<rowsep>
  41. Cell 2-1<colsep>Cell 2-2<colsep>Cell 2-3<rowsep>
  42. Cell 3-1<colsep>Cell 3-2<colsep>Cell 3-3
  43. </tabular></table>
  44. <sect>Cell alignment<p>
  45. <table><tabular ca="ll">
  46. =======<colsep>=======<rowsep>
  47. &lt;<colsep>&gt;<rowsep>
  48. =<colsep>=<rowsep>
  49. &gt;<colsep>&lt;
  50. </tabular></table>
  51. <sect>Heading alignment<p>
  52. <table><tabular ca="ll">
  53. =======<colsep>=======<rowsep>
  54. &lt;<colsep>&gt;<rowsep>
  55. =<colsep>=<rowsep>
  56. &gt;<colsep>&lt;
  57. </tabular></table>
  58. <sect>Column span for cells<p>
  59. <table><tabular ca="llll">
  60. 1<colsep>2<colsep>3<colsep>4<rowsep>
  61. 1<colsep>2<colsep>3 + 4<rowsep>
  62. 1 + 2 + 3<colsep>4<rowsep>
  63. 1<colsep>2 + 3<colsep>4<rowsep>
  64. 1 + 2 + 3 + 4
  65. </tabular></table>
  66. <sect>Column span for headings<p>
  67. <table><tabular ca="llll">
  68. 1<colsep>2<colsep>3<colsep>4<rowsep>
  69. 1<colsep>2<colsep>3 + 4<rowsep>
  70. 1 + 2 + 3<colsep>4<rowsep>
  71. 1<colsep>2 + 3<colsep>4<rowsep>
  72. 1 + 2 + 3 + 4
  73. </tabular></table>
  74. <sect>Cell alignment + column span<p>
  75. <table><tabular ca="lll">
  76. =======<colsep>=======<colsep>=======<rowsep>
  77. &lt;<colsep>=<rowsep>
  78. =<rowsep>
  79. =<colsep>&gt;
  80. </tabular></table>
  81. <sect>Heading alignment + column span<p>
  82. <table><tabular ca="lll">
  83. =======<colsep>=======<colsep>=======<rowsep>
  84. &lt;<colsep>=<rowsep>
  85. =<rowsep>
  86. =<colsep>&gt;
  87. </tabular></table>
  88. <sect>Some empty cells<p>
  89. <table><tabular ca="lllll">
  90. A<colsep>B<colsep>C<colsep>D<colsep><rowsep>
  91. F<colsep>G<colsep>H<colsep><colsep>J<rowsep>
  92. K<colsep>L<colsep><colsep>N<colsep>O<rowsep>
  93. P<colsep><colsep>R<colsep>S<colsep>T<rowsep>
  94. <colsep>V<colsep>W<colsep>X<colsep>Y
  95. </tabular></table>
  96. <sect>Lines with different number of cells, increase<p>
  97. <table><tabular ca="l">
  98. 1<rowsep>
  99. 1<colsep>2<rowsep>
  100. 1<colsep>2<colsep>3<rowsep>
  101. 1<colsep>2<colsep>3<colsep>4<rowsep>
  102. 1<colsep>2<colsep>3<colsep>4<colsep>5
  103. </tabular></table>
  104. <sect>Lines with different number of cells, decrease<p>
  105. <table><tabular ca="lllll">
  106. 1<colsep>2<colsep>3<colsep>4<colsep>5<rowsep>
  107. 1<colsep>2<colsep>3<colsep>4<rowsep>
  108. 1<colsep>2<colsep>3<rowsep>
  109. 1<colsep>2<rowsep>
  110. 1
  111. </tabular></table>
  112. <sect>One cell table<p>
  113. <table><tabular ca="l">
  114. Cell 1
  115. </tabular></table>
  116. <sect>One cell table + border<p>
  117. <table><tabular ca="l">
  118. Cell 1
  119. </tabular></table>
  120. <sect>One cell table + heading<p>
  121. <table><tabular ca="l">
  122. Head 1
  123. </tabular></table>
  124. <sect>One cell table + heading + border<p>
  125. <table><tabular ca="l">
  126. Head 1
  127. </tabular></table>
  128. <sect>Empty lines<p>
  129. <table><tabular ca="l">
  130. <rowsep>
  131. <rowsep>
  132. </tabular></table>
  133. <!-- sgml code generated by txt2tags (http://txt2tags.org) -->
  134. <!-- cmdline: txt2tags -q -\-no-rc -i table.t2t -t sgml -->
  135. </article>