在花了很多时间试图用docbook在ant中编译我的文章之后,我似乎无法使fo编译工作。我使用的是xalan 2.7.0,其他一切(包括单页和分块html)都能完美编译。只有当我试图编译到fo时,才会出现以下错误:
Fatal Error! org.apache.xml.utils.WrappedRuntimeException: Could not find variable with the name of fop.extensions Cause: org.apache.xml.utils.WrappedRuntimeException: Could not find variable with the name of fop.extensions
这很奇怪,我似乎无法解决。我甚至加了一个
<param>
定义其“找不到”的变量的值:
<xslt style="docbook-xsl/fo/fo.xsl" in="documents/book.xml"
out="output.fo">
<classpath>
<fileset dir="lib" includes="**/*"/>
</classpath>
<param name="fop.extensions" expression="1"/>
</xslt>
我能做些什么来解决这个问题吗?如果你问我真的很奇怪。(同样,使用与上面相同的代码,我的所有其他docbook编译工作都很好)