mtableShiftX
<xsl:template name="mtableShiftX"> <xsl:param name="rows"/> <xsl:param name="columnalign"/> <xsl:param name="i" select="1"/> <xsl:param name="j" select="1"/> <xsl:param name="width" select="0"/> <xsl:param name="tableSpace" tunnel="yes"/> ... </xsl:template>
The recursion is done the same way as in the computeStretch
template.
For each cell, the alignement value (center
, left
or right
) is retrieved from,
ordered by preference, mtd
element (retrieved by using XPath on the rows parameter), mtr
element
(also retrieved by using XPath on the rows parameter) or mtable
element (given in parameter). If no value is specified by
the user in mtd
, mtr
nor mtable
, the default alignement value, coming from
the mtable
element, is center
.
After computing the alignement value, the largest element in the current column and the width of the current cell are retrieved. These values are then used to compute a shift value with respect to the alignement value. The width accumulator is used to determine the initial shift value to place the current cell in its final column.
Row children from a table.
columnalign
mtable
attribute formatted as a sequence.
Column index of the current element. By default, this index is 1.
Row index of the current element. By default, this index is 1.
Accumulator that contains the width for a table composed of the (i-1)
th first columns of all the row children.