gpt4 book ai didi

html - 如何让xsl :fo allow table cell to take empty blocks and print mutiple lines

转载 作者:数据小太阳 更新时间:2023-10-29 02:18:49 30 4
gpt4 key购买 nike

我有一行,其中一列有一个数据列表。假设我有一行,第 3 列有 0 行或更多行。 <xsl:for-each select="./parts">出于某种原因,我的代码似乎不起作用。我不确定如何实现它。我收到此错误。

org.apache.fop.events.LoggingEventListener processEvent The following feature isn't implemented by Apache FOP, yet: table-layout="auto" (on fo:table) (No context info available) [4/1/13 19:14:38:002 CDT] 00000053 SystemErr R org.apache.fop.fo.ValidationException: "fo:table-cell" is missing child elements. Required content model: marker* (%block;)+ (No context info available)

我有这段代码,但这行不通。

<xsl:for-each select="./List">
<fo:table-row>
<fo:table-cell border="solid 1px" text-align="center">
<fo:block font-size="8pt"><xsl:value-of select="group" /></fo:block>
<fo:table-cell>
<fo:table-cell border="solid 1px" text-align="left">
<xsl:for-each select="./parts">
<fo:block font-size="8pt"><xsl:value-of select="partNumber" /><fo:leader />
</fo:block>
</xsl:for-each>
</fo:table-cell>
</fo:table-row>
</xsl:for-each>

最佳答案

尝试删除严格验证:

fopFactory.setStrictValidation(false);

关于html - 如何让xsl :fo allow table cell to take empty blocks and print mutiple lines,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15754193/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com