我是样式表的新手,并努力在pdf模板中创建动态列。基于java的结果集,我必须在xsl中创建动态列。事实是,我无法预测有多少列,所以基于结果集我必须动态生成列?
低于我的xsl代码
<fo:flow flow-name="mainbody">
<fo:block font-family="Arial" font-size="8pt" font-weight="normal" padding-top="-13pt">
<fo:table table-layout="fixed" width="100%" padding-top="105pt">
<fo:table-body height="80cm">
<xsl:for-each select="t013detailList">
<fo:table-row font-size="9pt">
<fo:table-cell padding="2pt" text-align="center" border-bottom="solid 0.01mm gray" number-columns-spanned="1" wrap-option="wrap">
<fo:block >
<xsl:value-of select="AccountNumber"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</xsl:for-each>
</fo:table-body>
</fo:table>
</fo:block>
</fo:flow>
请帮忙.. 欢迎所有支持。谢谢!