tables-attr.xsl 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. <?xml version="1.0"?>
  2. <!--
  3. Copyright © 2004-2006 by Idiom Technologies, Inc. All rights reserved.
  4. IDIOM is a registered trademark of Idiom Technologies, Inc. and WORLDSERVER
  5. and WORLDSTART are trademarks of Idiom Technologies, Inc. All other
  6. trademarks are the property of their respective owners.
  7. IDIOM TECHNOLOGIES, INC. IS DELIVERING THE SOFTWARE &quot;AS IS,&quot; WITH
  8. ABSOLUTELY NO WARRANTIES WHATSOEVER, WHETHER EXPRESS OR IMPLIED, AND IDIOM
  9. TECHNOLOGIES, INC. DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
  10. BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  11. PURPOSE AND WARRANTY OF NON-INFRINGEMENT. IDIOM TECHNOLOGIES, INC. SHALL NOT
  12. BE LIABLE FOR INDIRECT, INCIDENTAL, SPECIAL, COVER, PUNITIVE, EXEMPLARY,
  13. RELIANCE, OR CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT LIMITED TO LOSS OF
  14. ANTICIPATED PROFIT), ARISING FROM ANY CAUSE UNDER OR RELATED TO OR ARISING
  15. OUT OF THE USE OF OR INABILITY TO USE THE SOFTWARE, EVEN IF IDIOM
  16. TECHNOLOGIES, INC. HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
  17. Idiom Technologies, Inc. and its licensors shall not be liable for any
  18. damages suffered by any person as a result of using and/or modifying the
  19. Software or its derivatives. In no event shall Idiom Technologies, Inc.&apos;s
  20. liability for any damages hereunder exceed the amounts received by Idiom
  21. Technologies, Inc. as a result of this transaction.
  22. These terms and conditions supersede the terms and conditions in any
  23. licensing agreement to the extent that such terms and conditions conflict
  24. with those set forth herein.
  25. This file is part of the DITA Open Toolkit project hosted on Sourceforge.net.
  26. See the accompanying license.txt file for applicable licenses.
  27. -->
  28. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" version="2.0">
  29. <!-- contents of table entries or similer structures -->
  30. <xsl:attribute-set name="common.table.body.entry">
  31. <xsl:attribute name="space-before">3pt</xsl:attribute>
  32. <xsl:attribute name="space-before.conditionality">retain</xsl:attribute>
  33. <xsl:attribute name="space-after">3pt</xsl:attribute>
  34. <xsl:attribute name="space-after.conditionality">retain</xsl:attribute>
  35. <xsl:attribute name="start-indent">3pt</xsl:attribute>
  36. <xsl:attribute name="end-indent">3pt</xsl:attribute>
  37. </xsl:attribute-set>
  38. <xsl:attribute-set name="common.table.head.entry">
  39. <xsl:attribute name="font-weight">bold</xsl:attribute>
  40. </xsl:attribute-set>
  41. <xsl:attribute-set name="table.title" use-attribute-sets="base-font common.title">
  42. <xsl:attribute name="font-weight">bold</xsl:attribute>
  43. <xsl:attribute name="space-before">10pt</xsl:attribute>
  44. <xsl:attribute name="space-after">10pt</xsl:attribute>
  45. <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
  46. </xsl:attribute-set>
  47. <xsl:attribute-set name="__tableframe__none"/>
  48. <xsl:attribute-set name="__tableframe__top" use-attribute-sets="common.border__top">
  49. </xsl:attribute-set>
  50. <xsl:attribute-set name="__tableframe__bottom" use-attribute-sets="common.border__bottom">
  51. <xsl:attribute name="border-after-width.conditionality">retain</xsl:attribute>
  52. </xsl:attribute-set>
  53. <xsl:attribute-set name="thead__tableframe__bottom" use-attribute-sets="common.border__bottom">
  54. </xsl:attribute-set>
  55. <xsl:attribute-set name="__tableframe__left" use-attribute-sets="common.border__left">
  56. </xsl:attribute-set>
  57. <xsl:attribute-set name="__tableframe__right" use-attribute-sets="common.border__right">
  58. </xsl:attribute-set>
  59. <xsl:attribute-set name="table__container">
  60. <xsl:attribute name="reference-orientation" select="if (@orient eq 'land') then 90 else 0"/>
  61. </xsl:attribute-set>
  62. <xsl:attribute-set name="table" use-attribute-sets="base-font">
  63. <!--It is a table container -->
  64. <xsl:attribute name="space-after">10pt</xsl:attribute>
  65. </xsl:attribute-set>
  66. <xsl:attribute-set name="table.tgroup">
  67. <!--It is a table-->
  68. <xsl:attribute name="table-layout">fixed</xsl:attribute>
  69. <xsl:attribute name="width">100%</xsl:attribute>
  70. <!--xsl:attribute name=&quot;inline-progression-dimension&quot;&gt;auto&lt;/xsl:attribute-->
  71. <!-- &lt;xsl:attribute name=&quot;background-color&quot;&gt;white&lt;/xsl:attribute&gt;-->
  72. <xsl:attribute name="space-before">5pt</xsl:attribute>
  73. <xsl:attribute name="space-after">5pt</xsl:attribute>
  74. </xsl:attribute-set>
  75. <xsl:attribute-set name="table__tableframe__all" use-attribute-sets="table__tableframe__topbot table__tableframe__sides">
  76. </xsl:attribute-set>
  77. <xsl:attribute-set name="table__tableframe__topbot" use-attribute-sets="table__tableframe__top table__tableframe__bottom">
  78. </xsl:attribute-set>
  79. <xsl:attribute-set name="table__tableframe__top" use-attribute-sets="common.border__top">
  80. </xsl:attribute-set>
  81. <xsl:attribute-set name="table__tableframe__bottom" use-attribute-sets="common.border__bottom">
  82. </xsl:attribute-set>
  83. <xsl:attribute-set name="table__tableframe__sides" use-attribute-sets="table__tableframe__right table__tableframe__left">
  84. </xsl:attribute-set>
  85. <xsl:attribute-set name="table__tableframe__right" use-attribute-sets="common.border__right">
  86. </xsl:attribute-set>
  87. <xsl:attribute-set name="table__tableframe__left" use-attribute-sets="common.border__left">
  88. </xsl:attribute-set>
  89. <xsl:attribute-set name="tgroup.tbody">
  90. <!--Table body-->
  91. </xsl:attribute-set>
  92. <xsl:attribute-set name="tgroup.thead">
  93. <!--Table head-->
  94. </xsl:attribute-set>
  95. <xsl:attribute-set name="tgroup.tfoot">
  96. <!--Table footer-->
  97. </xsl:attribute-set>
  98. <xsl:attribute-set name="thead.row">
  99. <!--Head row-->
  100. </xsl:attribute-set>
  101. <xsl:attribute-set name="tfoot.row">
  102. <!--Table footer-->
  103. </xsl:attribute-set>
  104. <xsl:attribute-set name="tbody.row">
  105. <!--Table body row-->
  106. <xsl:attribute name="keep-together.within-page">always</xsl:attribute>
  107. </xsl:attribute-set>
  108. <xsl:attribute-set name="thead.row.entry">
  109. <!--head cell-->
  110. </xsl:attribute-set>
  111. <xsl:attribute-set name="thead.row.entry__content" use-attribute-sets="common.table.body.entry common.table.head.entry">
  112. <!--head cell contents-->
  113. </xsl:attribute-set>
  114. <xsl:attribute-set name="tfoot.row.entry">
  115. <!--footer cell-->
  116. </xsl:attribute-set>
  117. <xsl:attribute-set name="tfoot.row.entry__content" use-attribute-sets="common.table.body.entry common.table.head.entry">
  118. <!--footer cell contents-->
  119. </xsl:attribute-set>
  120. <xsl:attribute-set name="tbody.row.entry">
  121. <!--body cell-->
  122. </xsl:attribute-set>
  123. <xsl:attribute-set name="tbody.row.entry__firstcol" use-attribute-sets="tbody.row.entry">
  124. <xsl:attribute name="font-weight">bold</xsl:attribute>
  125. </xsl:attribute-set>
  126. <xsl:attribute-set name="tbody.row.entry__content" use-attribute-sets="common.table.body.entry">
  127. <!--body cell contents-->
  128. </xsl:attribute-set>
  129. <xsl:attribute-set name="dl">
  130. <!--DL is a table-->
  131. <xsl:attribute name="width">100%</xsl:attribute>
  132. <xsl:attribute name="space-before">5pt</xsl:attribute>
  133. <xsl:attribute name="space-after">5pt</xsl:attribute>
  134. </xsl:attribute-set>
  135. <xsl:attribute-set name="dl__body">
  136. </xsl:attribute-set>
  137. <xsl:attribute-set name="dl.dlhead">
  138. </xsl:attribute-set>
  139. <xsl:attribute-set name="dlentry">
  140. </xsl:attribute-set>
  141. <xsl:attribute-set name="dlentry.dt">
  142. <xsl:attribute name="relative-align">baseline</xsl:attribute>
  143. </xsl:attribute-set>
  144. <xsl:attribute-set name="dlentry.dt__content" use-attribute-sets="common.table.body.entry common.table.head.entry">
  145. </xsl:attribute-set>
  146. <xsl:attribute-set name="dlentry.dd"></xsl:attribute-set>
  147. <xsl:attribute-set name="dlentry.dd__content" use-attribute-sets="common.table.body.entry">
  148. </xsl:attribute-set>
  149. <xsl:attribute-set name="dl.dlhead__row">
  150. </xsl:attribute-set>
  151. <xsl:attribute-set name="dlhead.dthd__cell">
  152. </xsl:attribute-set>
  153. <xsl:attribute-set name="dlhead.dthd__content" use-attribute-sets="common.table.body.entry common.table.head.entry">
  154. </xsl:attribute-set>
  155. <xsl:attribute-set name="dlhead.ddhd__cell">
  156. </xsl:attribute-set>
  157. <xsl:attribute-set name="dlhead.ddhd__content" use-attribute-sets="common.table.body.entry common.table.head.entry">
  158. </xsl:attribute-set>
  159. <xsl:attribute-set name="simpletable" use-attribute-sets="base-font">
  160. <!--It is a table container -->
  161. <xsl:attribute name="width">100%</xsl:attribute>
  162. <xsl:attribute name="space-before">8pt</xsl:attribute>
  163. <xsl:attribute name="space-after">10pt</xsl:attribute>
  164. </xsl:attribute-set>
  165. <xsl:attribute-set name="simpletable__body">
  166. </xsl:attribute-set>
  167. <xsl:attribute-set name="sthead">
  168. </xsl:attribute-set>
  169. <xsl:attribute-set name="sthead__row">
  170. </xsl:attribute-set>
  171. <xsl:attribute-set name="strow">
  172. </xsl:attribute-set>
  173. <xsl:attribute-set name="sthead.stentry">
  174. </xsl:attribute-set>
  175. <xsl:attribute-set name="sthead.stentry__content" use-attribute-sets="common.table.body.entry common.table.head.entry">
  176. </xsl:attribute-set>
  177. <xsl:attribute-set name="sthead.stentry__keycol-content" use-attribute-sets="common.table.body.entry common.table.head.entry">
  178. </xsl:attribute-set>
  179. <xsl:attribute-set name="strow.stentry__content" use-attribute-sets="common.table.body.entry">
  180. </xsl:attribute-set>
  181. <xsl:attribute-set name="strow.stentry__keycol-content" use-attribute-sets="common.table.body.entry common.table.head.entry">
  182. </xsl:attribute-set>
  183. <xsl:attribute-set name="strow.stentry">
  184. </xsl:attribute-set>
  185. </xsl:stylesheet>