code-srv-test/dita-ot-3.6/plugins/org.dita.pdf2/cfg/fo/attrs/tables-attr.xsl
2021-03-23 22:38:58 +00:00

250 lines
No EOL
9.5 KiB
XML

<?xml version="1.0"?>
<!--
Copyright © 2004-2006 by Idiom Technologies, Inc. All rights reserved.
IDIOM is a registered trademark of Idiom Technologies, Inc. and WORLDSERVER
and WORLDSTART are trademarks of Idiom Technologies, Inc. All other
trademarks are the property of their respective owners.
IDIOM TECHNOLOGIES, INC. IS DELIVERING THE SOFTWARE &quot;AS IS,&quot; WITH
ABSOLUTELY NO WARRANTIES WHATSOEVER, WHETHER EXPRESS OR IMPLIED, AND IDIOM
TECHNOLOGIES, INC. DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE AND WARRANTY OF NON-INFRINGEMENT. IDIOM TECHNOLOGIES, INC. SHALL NOT
BE LIABLE FOR INDIRECT, INCIDENTAL, SPECIAL, COVER, PUNITIVE, EXEMPLARY,
RELIANCE, OR CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT LIMITED TO LOSS OF
ANTICIPATED PROFIT), ARISING FROM ANY CAUSE UNDER OR RELATED TO OR ARISING
OUT OF THE USE OF OR INABILITY TO USE THE SOFTWARE, EVEN IF IDIOM
TECHNOLOGIES, INC. HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
Idiom Technologies, Inc. and its licensors shall not be liable for any
damages suffered by any person as a result of using and/or modifying the
Software or its derivatives. In no event shall Idiom Technologies, Inc.&apos;s
liability for any damages hereunder exceed the amounts received by Idiom
Technologies, Inc. as a result of this transaction.
These terms and conditions supersede the terms and conditions in any
licensing agreement to the extent that such terms and conditions conflict
with those set forth herein.
This file is part of the DITA Open Toolkit project.
See the accompanying LICENSE file for applicable license.
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" version="2.0">
<!-- contents of table entries or similer structures -->
<xsl:attribute-set name="common.table.body.entry">
<xsl:attribute name="space-before">3pt</xsl:attribute>
<xsl:attribute name="space-before.conditionality">retain</xsl:attribute>
<xsl:attribute name="space-after">3pt</xsl:attribute>
<xsl:attribute name="space-after.conditionality">retain</xsl:attribute>
<xsl:attribute name="start-indent">3pt</xsl:attribute>
<xsl:attribute name="end-indent">3pt</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="common.table.head.entry">
<xsl:attribute name="font-weight">bold</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="table.title" use-attribute-sets="base-font common.title">
<xsl:attribute name="font-weight">bold</xsl:attribute>
<xsl:attribute name="space-before">10pt</xsl:attribute>
<xsl:attribute name="space-after">10pt</xsl:attribute>
<xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="__tableframe__none"/>
<xsl:attribute-set name="__tableframe__top" use-attribute-sets="common.border__top">
</xsl:attribute-set>
<xsl:attribute-set name="__tableframe__bottom" use-attribute-sets="common.border__bottom">
<xsl:attribute name="border-after-width.conditionality">retain</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="thead__tableframe__bottom" use-attribute-sets="common.border__bottom">
</xsl:attribute-set>
<xsl:attribute-set name="__tableframe__left" use-attribute-sets="common.border__left">
</xsl:attribute-set>
<xsl:attribute-set name="__tableframe__right" use-attribute-sets="common.border__right">
</xsl:attribute-set>
<xsl:attribute-set name="table__container">
<xsl:attribute name="reference-orientation" select="if (@orient eq 'land') then 90 else 0"/>
<xsl:attribute name="start-indent">from-parent(start-indent)</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="table" use-attribute-sets="base-font">
<!--It is a table container -->
<xsl:attribute name="space-after">10pt</xsl:attribute>
<xsl:attribute name="start-indent">0pt</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="table.tgroup">
<!--It is a table-->
<xsl:attribute name="table-layout">fixed</xsl:attribute>
<xsl:attribute name="width">100%</xsl:attribute>
<!--xsl:attribute name=&quot;inline-progression-dimension&quot;&gt;auto&lt;/xsl:attribute-->
<!-- &lt;xsl:attribute name=&quot;background-color&quot;&gt;white&lt;/xsl:attribute&gt;-->
<xsl:attribute name="space-before">5pt</xsl:attribute>
<xsl:attribute name="space-after">5pt</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="table__tableframe__all" use-attribute-sets="table__tableframe__topbot table__tableframe__sides">
</xsl:attribute-set>
<xsl:attribute-set name="table__tableframe__topbot" use-attribute-sets="table__tableframe__top table__tableframe__bottom">
</xsl:attribute-set>
<xsl:attribute-set name="table__tableframe__top" use-attribute-sets="common.border__top">
</xsl:attribute-set>
<xsl:attribute-set name="table__tableframe__bottom" use-attribute-sets="common.border__bottom">
</xsl:attribute-set>
<xsl:attribute-set name="table__tableframe__sides" use-attribute-sets="table__tableframe__right table__tableframe__left">
</xsl:attribute-set>
<xsl:attribute-set name="table__tableframe__right" use-attribute-sets="common.border__right">
</xsl:attribute-set>
<xsl:attribute-set name="table__tableframe__left" use-attribute-sets="common.border__left">
</xsl:attribute-set>
<xsl:attribute-set name="tgroup.tbody">
<!--Table body-->
</xsl:attribute-set>
<xsl:attribute-set name="tgroup.thead">
<!--Table head-->
</xsl:attribute-set>
<xsl:attribute-set name="tgroup.tfoot">
<!--Table footer-->
</xsl:attribute-set>
<xsl:attribute-set name="thead.row">
<!--Head row-->
</xsl:attribute-set>
<xsl:attribute-set name="tfoot.row">
<!--Table footer-->
</xsl:attribute-set>
<xsl:attribute-set name="tbody.row">
<!--Table body row-->
<xsl:attribute name="keep-together.within-page">always</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="thead.row.entry">
<!--head cell-->
</xsl:attribute-set>
<xsl:attribute-set name="thead.row.entry__content" use-attribute-sets="common.table.body.entry common.table.head.entry">
<!--head cell contents-->
</xsl:attribute-set>
<xsl:attribute-set name="tfoot.row.entry">
<!--footer cell-->
</xsl:attribute-set>
<xsl:attribute-set name="tfoot.row.entry__content" use-attribute-sets="common.table.body.entry common.table.head.entry">
<!--footer cell contents-->
</xsl:attribute-set>
<xsl:attribute-set name="tbody.row.entry">
<!--body cell-->
</xsl:attribute-set>
<xsl:attribute-set name="tbody.row.entry__firstcol" use-attribute-sets="tbody.row.entry">
<xsl:attribute name="font-weight">bold</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="tbody.row.entry__content" use-attribute-sets="common.table.body.entry">
<!--body cell contents-->
</xsl:attribute-set>
<xsl:attribute-set name="dl">
<!--DL is a table-->
<xsl:attribute name="width">100%</xsl:attribute>
<xsl:attribute name="space-before">5pt</xsl:attribute>
<xsl:attribute name="space-after">5pt</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="dl__body">
</xsl:attribute-set>
<xsl:attribute-set name="dl.dlhead">
</xsl:attribute-set>
<xsl:attribute-set name="dlentry">
</xsl:attribute-set>
<xsl:attribute-set name="dlentry.dt">
<xsl:attribute name="relative-align">baseline</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="dlentry.dt__content" use-attribute-sets="common.table.body.entry common.table.head.entry">
</xsl:attribute-set>
<xsl:attribute-set name="dlentry.dd"></xsl:attribute-set>
<xsl:attribute-set name="dlentry.dd__content" use-attribute-sets="common.table.body.entry">
</xsl:attribute-set>
<xsl:attribute-set name="dl.dlhead__row">
</xsl:attribute-set>
<xsl:attribute-set name="dlhead.dthd__cell">
</xsl:attribute-set>
<xsl:attribute-set name="dlhead.dthd__content" use-attribute-sets="common.table.body.entry common.table.head.entry">
</xsl:attribute-set>
<xsl:attribute-set name="dlhead.ddhd__cell">
</xsl:attribute-set>
<xsl:attribute-set name="dlhead.ddhd__content" use-attribute-sets="common.table.body.entry common.table.head.entry">
</xsl:attribute-set>
<xsl:attribute-set name="simpletable" use-attribute-sets="base-font">
<!--It is a table container -->
<xsl:attribute name="width">100%</xsl:attribute>
<xsl:attribute name="space-before">8pt</xsl:attribute>
<xsl:attribute name="space-after">10pt</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="simpletable__body">
</xsl:attribute-set>
<xsl:attribute-set name="sthead">
</xsl:attribute-set>
<xsl:attribute-set name="sthead__row">
</xsl:attribute-set>
<xsl:attribute-set name="strow">
</xsl:attribute-set>
<xsl:attribute-set name="sthead.stentry">
</xsl:attribute-set>
<xsl:attribute-set name="sthead.stentry__content" use-attribute-sets="common.table.body.entry common.table.head.entry">
</xsl:attribute-set>
<xsl:attribute-set name="sthead.stentry__keycol-content" use-attribute-sets="common.table.body.entry common.table.head.entry">
</xsl:attribute-set>
<xsl:attribute-set name="strow.stentry__content" use-attribute-sets="common.table.body.entry">
</xsl:attribute-set>
<xsl:attribute-set name="strow.stentry__keycol-content" use-attribute-sets="common.table.body.entry common.table.head.entry">
</xsl:attribute-set>
<xsl:attribute-set name="strow.stentry">
</xsl:attribute-set>
</xsl:stylesheet>