XSLT中的Colspan

mgr*_*ier 3 xslt

我正在尝试让colspan在XSLT中工作,但对我来说将不起作用...这里是我要告诉我我要去哪里的地方。

<xsl:attribute-set name="colspan-2">
    <xsl:attribute name="colspan">2</xsl:attribute>
</xsl:attribute-set>

<fo:table-cell xsl:use-attribute-sets="valign-c title border colspan-2">
    <fo:block>
        <xsl:value-of select="data"/>
    </fo:block>
</fo:table-cell>
Run Code Online (Sandbox Code Playgroud)

我的其他属性工作正常,但是colspan-1导致所有操作失败。在我看来,这样应该可以,但是不能。我可能想念一些愚蠢的东西,但是任何帮助都将不胜感激。

Tim*_*m C 7

不要将XSL-FO与HTML混淆。

HTML用途 colspan

XSL-FO的用途 number-columns-spanned

因此,如果您尝试用替换colspannumber-columns-spanned那么一切都会很好。