xslt - 需要 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>
解决方案
推荐阅读
- generics - 复制 Kotlin 数组减去特定索引处的元素
- opengl - mod 函数是否在 OpenGL 3.3 核心中返回 highp 浮点数?
- python - 消息的未知 id
- linux - 在 bash 中进行字符串替换时出错
- python - Python 在另一个语句中传递语句的输出以进行评估
- javascript - 用于分配操作项的 Google 工作表脚本 (Ctrl+Alt+M)
- excel - Excel 的排序方式可以不同于其默认的美国字符集吗?
- java - 如何用 mockito 模拟静态方法?
- oracle - 如何在 Oracle 中克隆可插拔数据库
- typescript - 如何使用打字稿在 vuejs 中的数据中添加“文件”类型?