【发布时间】:2011-10-31 12:42:33
【问题描述】:
我在 .NET 应用程序中使用 fop 1.0。
我的样式表看起来像
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet ... version="1.0" ...>
...
<xsl:param name="fromPerson" select="'1'"/>
<xsl:param name="toPerson" select="'1'"/>
...
<xsl:template match="*[local-name()='Person']">
<xsl:if test="(position() >= number($fromPerson))>
...
</xsl:if>
</xsl:template>
问题是函数 number() 失败:
Zeilennummer221; Spaltennummer267; #UNKNOWN (cli.System.Int32) kann nicht in eine Zahl
konvertiert werden!
(Position des Fehlers unbekannt)org.apache.fop.fo.ValidationException: "fo:root"
is missing child elements. Required content model: (layout-master-set, declarations?,
bookmark-tree?, (page-sequence|fox:external-document)+) (Keine Kontextinformationen
verf³gbar)
重要:
#UNKNOWN (cli.System.Int32) cannot be converted into an integer
顺便说一句:我通过使用
打印出值来测试它
知道为什么这会引发错误吗?
【问题讨论】:
标签: xslt apache-fop