首页 > 解决方案 > 需要 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>

标签: xslt

解决方案


推荐阅读