需要xslt属性来创建/格式化仅具有外部边框的表,而没有用于分隔边框的列

时间:2019-12-16 06:41:37

标签: xslt

我有一个包含2列和多行的表格。我只需要表的外边界,而没有任何列分隔符。我找不到任何属性。

<xsl:attribute-set name="Cell-Default">
        <xsl:attribute name="border-color">rgb(175,175,175)</xsl:attribute>
        <xsl:attribute name="border-width">thin</xsl:attribute>
        <xsl:attribute name="border-bottom-style">solid</xsl:attribute>
        <xsl:attribute name="border-right-style">solid</xsl:attribute>
        <xsl:attribute name="start-indent">.1cm</xsl:attribute>
        <xsl:attribute name="end-indent">.1cm</xsl:attribute>
</xsl:attribute-set>

<fo:table-body>
<fo:table-row height=".9cm" display-align="center" background-color="rgb(235,235,236)">
<fo:table-cell xsl:use-attribute-sets="Cell-Default">
<fo:block>
<fo:inline color="rgb(0, 0, 0)">QUOTE NUMBER: </fo:inline>
<fo:inline><xsl:value-of select="../QuoteNumber"/></fo:inline>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>

0 个答案:

没有答案