2 xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
3 xmlns:
d=
"http://docbook.org/ns/docbook"
7 href=
"http://docutils.svn.sourceforge.net/viewvc/docutils/trunk/sandbox/docbook/xsl/long_table.xsl"/>
9 <xsl:template match=
"table[@classes='long-metrics']">
10 <xsl:variable name=
"position">
11 <xsl:value-of select=
"count(preceding::table[@classes='long-metrics']) + 1"/>
13 <xsl:variable name=
"first-page-rows">
15 <xsl:when test=
"$position < 1000">
16 <xsl:text>34</xsl:text>
20 <xsl:if test=
"$position != 1">
21 <xsl:processing-instruction name=
"hard-pagebreak"/>
24 <xsl:when test=
"$position = 3">
25 <xsl:copy-of select=
"."/>
26 <xsl:apply-templates select=
"following-sibling::container[1][@classes='caption']" mode=
"keep"/>
29 <xsl:call-template name=
"split-table">
30 <xsl:with-param name=
"first-page-rows" select=
"$first-page-rows"/>