|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
XSLT Stylesheet DocBook -> LaTeX
|
|
Packit Service |
76cb02 |
############################################################################ -->
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
depending of the kind of table (floating, landscape, role) and call the
|
|
Packit Service |
76cb02 |
actual newtbl engine. The $newtbl.use parameter is now removed. -->
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:param name="newtbl.format.thead">\bfseries%
</xsl:param>
|
|
Packit Service |
76cb02 |
<xsl:param name="newtbl.format.tbody"/>
|
|
Packit Service |
76cb02 |
<xsl:param name="newtbl.format.tfoot"/>
|
|
Packit Service |
76cb02 |
<xsl:param name="newtbl.bgcolor.thead"/>
|
|
Packit Service |
76cb02 |
<xsl:param name="newtbl.default.colsep" select="'1'"/>
|
|
Packit Service |
76cb02 |
<xsl:param name="newtbl.default.rowsep" select="'1'"/>
|
|
Packit Service |
76cb02 |
<xsl:param name="newtbl.use.hhline" select="'0'"/>
|
|
Packit Service |
76cb02 |
<xsl:param name="newtbl.autowidth"/>
|
|
Packit Service |
76cb02 |
<xsl:param name="table.title.top" select="'0'"/>
|
|
Packit Service |
76cb02 |
<xsl:param name="table.in.float" select="'1'"/>
|
|
Packit Service |
76cb02 |
<xsl:param name="table.default.position" select="'[htbp]'"/>
|
|
Packit Service |
76cb02 |
<xsl:param name="table.default.tabstyle"/>
|
|
Packit Service |
76cb02 |
<xsl:param name="table.continue.caption" select="'(continued)'"/>
|
|
Packit Service |
76cb02 |
<xsl:param name="default.table.width"/>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:template match="table">
|
|
Packit Service |
76cb02 |
<xsl:choose>
|
|
Packit Service |
76cb02 |
<xsl:when test="$table.in.float='1'">
|
|
Packit Service |
76cb02 |
<xsl:apply-templates select="." mode="float"/>
|
|
Packit Service |
76cb02 |
</xsl:when>
|
|
Packit Service |
76cb02 |
<xsl:otherwise>
|
|
Packit Service |
76cb02 |
<xsl:apply-templates select="." mode="longtable"/>
|
|
Packit Service |
76cb02 |
</xsl:otherwise>
|
|
Packit Service |
76cb02 |
</xsl:choose>
|
|
Packit Service |
76cb02 |
<xsl:apply-templates select="." mode="foottext"/>
|
|
Packit Service |
76cb02 |
</xsl:template>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:template name="make.table.content">
|
|
Packit Service |
76cb02 |
<xsl:param name="tabletype">tabular</xsl:param>
|
|
Packit Service |
76cb02 |
<xsl:param name="tablewidth">\linewidth-2\tabcolsep</xsl:param>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:choose>
|
|
Packit Service |
76cb02 |
<xsl:when test="tgroup">
|
|
Packit Service |
76cb02 |
<xsl:apply-templates select="tgroup" mode="newtbl">
|
|
Packit Service |
76cb02 |
<xsl:with-param name="tabletype" select="$tabletype"/>
|
|
Packit Service |
76cb02 |
<xsl:with-param name="tablewidth" select="$tablewidth"/>
|
|
Packit Service |
76cb02 |
</xsl:apply-templates>
|
|
Packit Service |
76cb02 |
</xsl:when>
|
|
Packit Service |
76cb02 |
<xsl:otherwise>
|
|
Packit Service |
76cb02 |
<xsl:apply-templates select="." mode="htmlTable">
|
|
Packit Service |
76cb02 |
<xsl:with-param name="tabletype" select="$tabletype"/>
|
|
Packit Service |
76cb02 |
<xsl:with-param name="tablewidth" select="$tablewidth"/>
|
|
Packit Service |
76cb02 |
</xsl:apply-templates>
|
|
Packit Service |
76cb02 |
</xsl:otherwise>
|
|
Packit Service |
76cb02 |
</xsl:choose>
|
|
Packit Service |
76cb02 |
</xsl:template>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:template match="table" mode="float">
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:variable name="size">
|
|
Packit Service |
76cb02 |
<xsl:choose>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
@role='scriptsize' or @role='tiny'">
|
|
Packit Service |
76cb02 |
<xsl:value-of select="@role"/>
|
|
Packit Service |
76cb02 |
</xsl:when>
|
|
Packit Service |
76cb02 |
<xsl:otherwise>
|
|
Packit Service |
76cb02 |
<xsl:text>normal</xsl:text>
|
|
Packit Service |
76cb02 |
</xsl:otherwise>
|
|
Packit Service |
76cb02 |
</xsl:choose>
|
|
Packit Service |
76cb02 |
</xsl:variable>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:variable name="table.env">
|
|
Packit Service |
76cb02 |
<xsl:text>table</xsl:text>
|
|
Packit Service |
76cb02 |
<xsl:if test="@pgwide='1'">
|
|
Packit Service |
76cb02 |
<xsl:text>*</xsl:text>
|
|
Packit Service |
76cb02 |
</xsl:if>
|
|
Packit Service |
76cb02 |
</xsl:variable>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:variable name="tabletype">
|
|
Packit Service |
76cb02 |
<xsl:choose>
|
|
Packit Service |
76cb02 |
<xsl:when test="@tabstyle='tabular' or @tabstyle='tabularx'">
|
|
Packit Service |
76cb02 |
<xsl:value-of select="@tabstyle"/>
|
|
Packit Service |
76cb02 |
</xsl:when>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
$table.default.tabstyle='tabularx'">
|
|
Packit Service |
76cb02 |
<xsl:value-of select="$table.default.tabstyle"/>
|
|
Packit Service |
76cb02 |
</xsl:when>
|
|
Packit Service |
76cb02 |
<xsl:otherwise>tabular</xsl:otherwise>
|
|
Packit Service |
76cb02 |
</xsl:choose>
|
|
Packit Service |
76cb02 |
</xsl:variable>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:if test="@orient='land'">
|
|
Packit Service |
76cb02 |
<xsl:text>\begin{landscape}
</xsl:text>
|
|
Packit Service |
76cb02 |
</xsl:if>
|
|
Packit Service |
76cb02 |
<xsl:value-of select="concat('\begin{', $table.env, '}')"/>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:choose>
|
|
Packit Service |
76cb02 |
<xsl:when test="@floatstyle != ''">
|
|
Packit Service |
76cb02 |
<xsl:value-of select="@floatstyle"/>
|
|
Packit Service |
76cb02 |
</xsl:when>
|
|
Packit Service |
76cb02 |
<xsl:otherwise>
|
|
Packit Service |
76cb02 |
<xsl:value-of select="$table.default.position"/>
|
|
Packit Service |
76cb02 |
</xsl:otherwise>
|
|
Packit Service |
76cb02 |
</xsl:choose>
|
|
Packit Service |
76cb02 |
<xsl:text>
</xsl:text>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:if test="$table.title.top='1'">
|
|
Packit Service |
76cb02 |
<xsl:apply-templates select="title|caption"/>
|
|
Packit Service |
76cb02 |
</xsl:if>
|
|
Packit Service |
76cb02 |
<xsl:if test="$size!='normal'">
|
|
Packit Service |
76cb02 |
<xsl:text>\begin{</xsl:text>
|
|
Packit Service |
76cb02 |
<xsl:value-of select="$size"/>
|
|
Packit Service |
76cb02 |
<xsl:text>}
</xsl:text>
|
|
Packit Service |
76cb02 |
</xsl:if>
|
|
Packit Service |
76cb02 |
<xsl:text>\begin{center}
</xsl:text>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:call-template name="make.table.content">
|
|
Packit Service |
76cb02 |
<xsl:with-param name="tabletype" select="$tabletype"/>
|
|
Packit Service |
76cb02 |
</xsl:call-template>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:text>
\end{center}
</xsl:text>
|
|
Packit Service |
76cb02 |
<xsl:if test="$size!='normal'">
|
|
Packit Service |
76cb02 |
<xsl:text>\end{</xsl:text>
|
|
Packit Service |
76cb02 |
<xsl:value-of select="$size"/>
|
|
Packit Service |
76cb02 |
<xsl:text>}
</xsl:text>
|
|
Packit Service |
76cb02 |
</xsl:if>
|
|
Packit Service |
76cb02 |
<xsl:if test="$table.title.top='0'">
|
|
Packit Service |
76cb02 |
<xsl:apply-templates select="title|caption"/>
|
|
Packit Service |
76cb02 |
</xsl:if>
|
|
Packit Service |
76cb02 |
<xsl:value-of select="concat('\end{', $table.env, '}
')"/>
|
|
Packit Service |
76cb02 |
<xsl:if test="@orient='land'">
|
|
Packit Service |
76cb02 |
<xsl:text>\end{landscape}
</xsl:text>
|
|
Packit Service |
76cb02 |
</xsl:if>
|
|
Packit Service |
76cb02 |
</xsl:template>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:template match="table/title|table/caption">
|
|
Packit Service |
76cb02 |
<xsl:text>
\caption</xsl:text>
|
|
Packit Service |
76cb02 |
<xsl:apply-templates select="." mode="format.title"/>
|
|
Packit Service |
76cb02 |
<xsl:call-template name="label.id">
|
|
Packit Service |
76cb02 |
<xsl:with-param name="object" select="parent::table"/>
|
|
Packit Service |
76cb02 |
</xsl:call-template>
|
|
Packit Service |
76cb02 |
</xsl:template>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:template match="table" mode="longtable">
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:variable name="size">
|
|
Packit Service |
76cb02 |
<xsl:choose>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
@role='scriptsize' or @role='tiny'">
|
|
Packit Service |
76cb02 |
<xsl:value-of select="@role"/>
|
|
Packit Service |
76cb02 |
</xsl:when>
|
|
Packit Service |
76cb02 |
<xsl:otherwise>
|
|
Packit Service |
76cb02 |
<xsl:text>normal</xsl:text>
|
|
Packit Service |
76cb02 |
</xsl:otherwise>
|
|
Packit Service |
76cb02 |
</xsl:choose>
|
|
Packit Service |
76cb02 |
</xsl:variable>
|
|
Packit Service |
76cb02 |
<xsl:if test="@orient='land'">
|
|
Packit Service |
76cb02 |
<xsl:text>\begin{landscape}
</xsl:text>
|
|
Packit Service |
76cb02 |
</xsl:if>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:if test="$size!='normal'">
|
|
Packit Service |
76cb02 |
<xsl:text>\begin{</xsl:text>
|
|
Packit Service |
76cb02 |
<xsl:value-of select="$size"/>
|
|
Packit Service |
76cb02 |
<xsl:text>}
</xsl:text>
|
|
Packit Service |
76cb02 |
</xsl:if>
|
|
Packit Service |
76cb02 |
<xsl:text>\begin{center}
</xsl:text>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:call-template name="make.table.content">
|
|
Packit Service |
76cb02 |
<xsl:with-param name="tabletype" select="'longtable'"/>
|
|
Packit Service |
76cb02 |
</xsl:call-template>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:text>
\end{center}
</xsl:text>
|
|
Packit Service |
76cb02 |
<xsl:if test="$size!='normal'">
|
|
Packit Service |
76cb02 |
<xsl:text>\end{</xsl:text>
|
|
Packit Service |
76cb02 |
<xsl:value-of select="$size"/>
|
|
Packit Service |
76cb02 |
<xsl:text>}
</xsl:text>
|
|
Packit Service |
76cb02 |
</xsl:if>
|
|
Packit Service |
76cb02 |
<xsl:if test="@orient='land'">
|
|
Packit Service |
76cb02 |
<xsl:text>\end{landscape}
</xsl:text>
|
|
Packit Service |
76cb02 |
</xsl:if>
|
|
Packit Service |
76cb02 |
</xsl:template>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:template match="table/title|table/caption" mode="longtable">
|
|
Packit Service |
76cb02 |
<xsl:variable name="toc">
|
|
Packit Service |
76cb02 |
<xsl:apply-templates select="." mode="toc"/>
|
|
Packit Service |
76cb02 |
</xsl:variable>
|
|
Packit Service |
76cb02 |
<xsl:variable name="content">
|
|
Packit Service |
76cb02 |
<xsl:apply-templates select="." mode="content"/>
|
|
Packit Service |
76cb02 |
</xsl:variable>
|
|
Packit Service |
76cb02 |
<xsl:text>\caption</xsl:text>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:choose>
|
|
Packit Service |
76cb02 |
<xsl:when test="$toc != ''">
|
|
Packit Service |
76cb02 |
<xsl:value-of select="$toc"/>
|
|
Packit Service |
76cb02 |
</xsl:when>
|
|
Packit Service |
76cb02 |
<xsl:otherwise>
|
|
Packit Service |
76cb02 |
<xsl:text>[{</xsl:text>
|
|
Packit Service |
76cb02 |
<xsl:value-of select="$content"/>
|
|
Packit Service |
76cb02 |
<xsl:text>}]</xsl:text>
|
|
Packit Service |
76cb02 |
</xsl:otherwise>
|
|
Packit Service |
76cb02 |
</xsl:choose>
|
|
Packit Service |
76cb02 |
<xsl:text>{</xsl:text>
|
|
Packit Service |
76cb02 |
<xsl:value-of select="$content"/>
|
|
Packit Service |
76cb02 |
<xsl:call-template name="label.id">
|
|
Packit Service |
76cb02 |
<xsl:with-param name="object" select="parent::table"/>
|
|
Packit Service |
76cb02 |
</xsl:call-template>
|
|
Packit Service |
76cb02 |
<xsl:text>}\tabularnewline
</xsl:text>
|
|
Packit Service |
76cb02 |
</xsl:template>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:template name="align.environment">
|
|
Packit Service |
76cb02 |
<xsl:param name="align"/>
|
|
Packit Service |
76cb02 |
<xsl:param name="align-default" select="'center'"/>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:choose>
|
|
Packit Service |
76cb02 |
<xsl:when test="$align = 'left'">
|
|
Packit Service |
76cb02 |
<xsl:text>flushright</xsl:text>
|
|
Packit Service |
76cb02 |
</xsl:when>
|
|
Packit Service |
76cb02 |
<xsl:when test="$align = 'right'">
|
|
Packit Service |
76cb02 |
<xsl:text>flushleft</xsl:text>
|
|
Packit Service |
76cb02 |
</xsl:when>
|
|
Packit Service |
76cb02 |
<xsl:when test="$align = 'center'">
|
|
Packit Service |
76cb02 |
<xsl:text>center</xsl:text>
|
|
Packit Service |
76cb02 |
</xsl:when>
|
|
Packit Service |
76cb02 |
<xsl:otherwise>
|
|
Packit Service |
76cb02 |
<xsl:value-of select="$align-default"/>
|
|
Packit Service |
76cb02 |
</xsl:otherwise>
|
|
Packit Service |
76cb02 |
</xsl:choose>
|
|
Packit Service |
76cb02 |
</xsl:template>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:template name="tbl.align.begin">
|
|
Packit Service |
76cb02 |
<xsl:param name="tabletype"/>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:variable name="align" select="'center'"/>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:choose>
|
|
Packit Service |
76cb02 |
<xsl:when test="$tabletype = 'longtable'">
|
|
Packit Service |
76cb02 |
<xsl:choose>
|
|
Packit Service |
76cb02 |
<xsl:when test="$align = 'left'">
|
|
Packit Service |
76cb02 |
<xsl:text>\raggedright</xsl:text>
|
|
Packit Service |
76cb02 |
</xsl:when>
|
|
Packit Service |
76cb02 |
<xsl:when test="$align = 'right'">
|
|
Packit Service |
76cb02 |
<xsl:text>\raggedleft</xsl:text>
|
|
Packit Service |
76cb02 |
</xsl:when>
|
|
Packit Service |
76cb02 |
<xsl:when test="$align = 'center'">
|
|
Packit Service |
76cb02 |
<xsl:text>\centering</xsl:text>
|
|
Packit Service |
76cb02 |
</xsl:when>
|
|
Packit Service |
76cb02 |
<xsl:when test="$align = 'justify'"></xsl:when>
|
|
Packit Service |
76cb02 |
<xsl:otherwise>
|
|
Packit Service |
76cb02 |
<xsl:message>Word-wrapped alignment
|
|
Packit Service |
76cb02 |
select="$align"/> not supported</xsl:message>
|
|
Packit Service |
76cb02 |
</xsl:otherwise>
|
|
Packit Service |
76cb02 |
</xsl:choose>
|
|
Packit Service |
76cb02 |
</xsl:when>
|
|
Packit Service |
76cb02 |
<xsl:otherwise>
|
|
Packit Service |
76cb02 |
<xsl:variable name="alignenv">
|
|
Packit Service |
76cb02 |
<xsl:call-template name="align.environment">
|
|
Packit Service |
76cb02 |
<xsl:with-param name="align" select="$align"/>
|
|
Packit Service |
76cb02 |
</xsl:call-template>
|
|
Packit Service |
76cb02 |
</xsl:variable>
|
|
Packit Service |
76cb02 |
<xsl:value-of select="concat('\begin{',$alignenv,'}')"/>
|
|
Packit Service |
76cb02 |
</xsl:otherwise>
|
|
Packit Service |
76cb02 |
</xsl:choose>
|
|
Packit Service |
76cb02 |
</xsl:template>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:template name="tbl.align.end">
|
|
Packit Service |
76cb02 |
<xsl:param name="tabletype"/>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:variable name="align" select="'center'"/>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:if test="$tabletype != 'longtable'">
|
|
Packit Service |
76cb02 |
<xsl:variable name="alignenv">
|
|
Packit Service |
76cb02 |
<xsl:call-template name="align.environment">
|
|
Packit Service |
76cb02 |
<xsl:with-param name="align" select="$align"/>
|
|
Packit Service |
76cb02 |
</xsl:call-template>
|
|
Packit Service |
76cb02 |
</xsl:variable>
|
|
Packit Service |
76cb02 |
<xsl:value-of select="concat('\end{',$alignenv,'}')"/>
|
|
Packit Service |
76cb02 |
</xsl:if>
|
|
Packit Service |
76cb02 |
</xsl:template>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:template match="informaltable">
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:variable name="size">
|
|
Packit Service |
76cb02 |
<xsl:choose>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
@role='scriptsize' or @role='tiny'">
|
|
Packit Service |
76cb02 |
<xsl:value-of select="@role"/>
|
|
Packit Service |
76cb02 |
</xsl:when>
|
|
Packit Service |
76cb02 |
<xsl:otherwise>
|
|
Packit Service |
76cb02 |
<xsl:text>normal</xsl:text>
|
|
Packit Service |
76cb02 |
</xsl:otherwise>
|
|
Packit Service |
76cb02 |
</xsl:choose>
|
|
Packit Service |
76cb02 |
</xsl:variable>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:variable name="nested" select="ancestor::entry|ancestor::td"/>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:variable name="tabletype">
|
|
Packit Service |
76cb02 |
<xsl:choose>
|
|
Packit Service |
76cb02 |
<xsl:when test="$nested">tabular</xsl:when>
|
|
Packit Service |
76cb02 |
<xsl:when test="@tabstyle='tabular' or @tabstyle='tabularx'">
|
|
Packit Service |
76cb02 |
<xsl:value-of select="@tabstyle"/>
|
|
Packit Service |
76cb02 |
</xsl:when>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
$table.default.tabstyle='tabularx'">
|
|
Packit Service |
76cb02 |
<xsl:value-of select="$table.default.tabstyle"/>
|
|
Packit Service |
76cb02 |
</xsl:when>
|
|
Packit Service |
76cb02 |
<xsl:otherwise>longtable</xsl:otherwise>
|
|
Packit Service |
76cb02 |
</xsl:choose>
|
|
Packit Service |
76cb02 |
</xsl:variable>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:if test="@orient='land'">
|
|
Packit Service |
76cb02 |
<xsl:text>\begin{landscape}
</xsl:text>
|
|
Packit Service |
76cb02 |
</xsl:if>
|
|
Packit Service |
76cb02 |
<xsl:if test="$size!='normal'">
|
|
Packit Service |
76cb02 |
<xsl:text>\begin{</xsl:text>
|
|
Packit Service |
76cb02 |
<xsl:value-of select="$size"/>
|
|
Packit Service |
76cb02 |
<xsl:text>}
</xsl:text>
|
|
Packit Service |
76cb02 |
</xsl:if>
|
|
Packit Service |
76cb02 |
<xsl:choose>
|
|
Packit Service |
76cb02 |
<xsl:when test="not($nested)">
|
|
Packit Service |
76cb02 |
<xsl:text>
{</xsl:text>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:call-template name="tbl.align.begin">
|
|
Packit Service |
76cb02 |
<xsl:with-param name="tabletype" select="$tabletype"/>
|
|
Packit Service |
76cb02 |
</xsl:call-template>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:if test="$tabletype='longtable'">
|
|
Packit Service |
76cb02 |
<xsl:text>\savetablecounter </xsl:text>
|
|
Packit Service |
76cb02 |
</xsl:if>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:call-template name="make.table.content">
|
|
Packit Service |
76cb02 |
<xsl:with-param name="tabletype" select="$tabletype"/>
|
|
Packit Service |
76cb02 |
</xsl:call-template>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:if test="$tabletype='longtable'">
|
|
Packit Service |
76cb02 |
<xsl:text>\restoretablecounter%
</xsl:text>
|
|
Packit Service |
76cb02 |
</xsl:if>
|
|
Packit Service |
76cb02 |
<xsl:call-template name="tbl.align.end">
|
|
Packit Service |
76cb02 |
<xsl:with-param name="tabletype" select="$tabletype"/>
|
|
Packit Service |
76cb02 |
</xsl:call-template>
|
|
Packit Service |
76cb02 |
<xsl:text>}
</xsl:text>
|
|
Packit Service |
76cb02 |
</xsl:when>
|
|
Packit Service |
76cb02 |
<xsl:otherwise>
|
|
Packit Service |
76cb02 |
<xsl:call-template name="make.table.content">
|
|
Packit Service |
76cb02 |
<xsl:with-param name="tabletype" select="$tabletype"/>
|
|
Packit Service |
76cb02 |
<xsl:with-param name="tablewidth" select="'\linewidth'"/>
|
|
Packit Service |
76cb02 |
</xsl:call-template>
|
|
Packit Service |
76cb02 |
</xsl:otherwise>
|
|
Packit Service |
76cb02 |
</xsl:choose>
|
|
Packit Service |
76cb02 |
<xsl:if test="$size!='normal'">
|
|
Packit Service |
76cb02 |
<xsl:text>\end{</xsl:text>
|
|
Packit Service |
76cb02 |
<xsl:value-of select="$size"/>
|
|
Packit Service |
76cb02 |
<xsl:text>}
</xsl:text>
|
|
Packit Service |
76cb02 |
</xsl:if>
|
|
Packit Service |
76cb02 |
<xsl:if test="@orient='land'">
|
|
Packit Service |
76cb02 |
<xsl:text>\end{landscape}
</xsl:text>
|
|
Packit Service |
76cb02 |
</xsl:if>
|
|
Packit Service |
76cb02 |
<xsl:apply-templates select="." mode="foottext"/>
|
|
Packit Service |
76cb02 |
</xsl:template>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
depending on the type of table used.
|
|
Packit Service |
76cb02 |
-->
|
|
Packit Service |
76cb02 |
<xsl:template match="informaltable" mode="newtbl.endhead">
|
|
Packit Service |
76cb02 |
<xsl:param name="tabletype"/>
|
|
Packit Service |
76cb02 |
<xsl:param name="headrows"/>
|
|
Packit Service |
76cb02 |
<xsl:value-of select="$headrows"/>
|
|
Packit Service |
76cb02 |
<xsl:if test="$tabletype='longtable' and $headrows!=''">
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:text>\endhead
</xsl:text>
|
|
Packit Service |
76cb02 |
</xsl:if>
|
|
Packit Service |
76cb02 |
</xsl:template>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:template match="table" mode="newtbl.endhead">
|
|
Packit Service |
76cb02 |
<xsl:param name="tabletype"/>
|
|
Packit Service |
76cb02 |
<xsl:param name="headrows"/>
|
|
Packit Service |
76cb02 |
<xsl:choose>
|
|
Packit Service |
76cb02 |
<xsl:when test="$tabletype='longtable'">
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
<xsl:choose>
|
|
Packit Service |
76cb02 |
<xsl:when test="$table.in.float='0'">
|
|
Packit Service |
76cb02 |
<xsl:apply-templates select="title|caption" mode="longtable"/>
|
|
Packit Service |
76cb02 |
<xsl:value-of select="$headrows"/>
|
|
Packit Service |
76cb02 |
<xsl:text>\endfirsthead
</xsl:text>
|
|
Packit Service |
76cb02 |
<xsl:text>\caption[]</xsl:text>
|
|
Packit Service |
76cb02 |
<xsl:text>{</xsl:text>
|
|
Packit Service |
76cb02 |
<xsl:value-of select="$table.continue.caption"/>
|
|
Packit Service |
76cb02 |
<xsl:text>}\tabularnewline
</xsl:text>
|
|
Packit Service |
76cb02 |
<xsl:value-of select="$headrows"/>
|
|
Packit Service |
76cb02 |
<xsl:text>\endhead
</xsl:text>
|
|
Packit Service |
76cb02 |
</xsl:when>
|
|
Packit Service |
76cb02 |
<xsl:when test="$headrows!=''">
|
|
Packit Service |
76cb02 |
<xsl:value-of select="$headrows"/>
|
|
Packit Service |
76cb02 |
<xsl:text>\endhead
</xsl:text>
|
|
Packit Service |
76cb02 |
</xsl:when>
|
|
Packit Service |
76cb02 |
</xsl:choose>
|
|
Packit Service |
76cb02 |
</xsl:when>
|
|
Packit Service |
76cb02 |
<xsl:otherwise>
|
|
Packit Service |
76cb02 |
<xsl:value-of select="$headrows"/>
|
|
Packit Service |
76cb02 |
</xsl:otherwise>
|
|
Packit Service |
76cb02 |
</xsl:choose>
|
|
Packit Service |
76cb02 |
</xsl:template>
|
|
Packit Service |
76cb02 |
|
|
Packit Service |
76cb02 |
</xsl:stylesheet>
|