Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xslt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 流内外部对象的XSL-FO转换错误_Java_Xslt_Xsl Fo - Fatal编程技术网

Java 流内外部对象的XSL-FO转换错误

Java 流内外部对象的XSL-FO转换错误,java,xslt,xsl-fo,Java,Xslt,Xsl Fo,我正在使用ApacheFop将XML转换为pdf 带有fo:instream异物的模板向我抛出了一个错误 XSL <xsl:template match="disp-formula"> <fo:instream-foreign-object width="50%" content-width="scale-to-fit"> <svg xmlns="http://www.w3.org/2000/svg" width="1037"

我正在使用ApacheFop将XML转换为pdf

带有fo:instream异物的模板向我抛出了一个错误

XSL

<xsl:template match="disp-formula">
        <fo:instream-foreign-object width="50%" content-width="scale-to-fit">
            <svg xmlns="http://www.w3.org/2000/svg" width="1037" height="439"
                viewBox="0 0 1037 439">
                <image height="439px" width="1037px"
                    xmlns:xlink="http://www.w3.org/1999/xlink">
                    <xsl:attribute name="xlink:href">
                        <xsl:text>mathml/</xsl:text><xsl:value-of select="@id"/><xsl:text>.mml</xsl:text>
                    </xsl:attribute>                    
                </image>
            </svg>
        </fo:instream-foreign-object>
</xsl:template>

SVG试图链接到的任何类型的图像都会出现这种错误吗?或者仅当它是MathML文档时?你能给出使用的ApacheFOP版本的确切细节吗?@MartinHonnen,我在模板中硬编码了一些svg图像,它产生了相同的错误。对于库,我将在问题中进行编辑。@neweedeveloper为什么不升级到fop-2.3(及其所有依赖项,如batik-all-1.10.jar)@Würgspaß,我尝试过升级,但结果是一样的。SVG尝试链接到的任何类型的图像都会出现这种错误吗?或者仅当它是MathML文档时?你能给出使用的ApacheFOP版本的确切细节吗?@MartinHonnen,我在模板中硬编码了一些svg图像,它产生了相同的错误。对于库,我将在问题中进行编辑。@NewBeeDeveloper为什么不升级到fop-2.3(及其所有依赖项,如batik-all-1.10.jar)@Würgspaß,我尝试过升级,但结果相同。
avalon-framework-api-4.3.1.jar
avalon-framework-impl-4.3.1.jar
batik-all-1.8.jar
commons-io-1.3.1.jar
commons-logging-1.0.4.jar
fontbox-1.8.5.jar
jeuclid-core-3.1.9.jar
jeuclid-fop-3.1.9.jar
serializer-2.7.0.jar
xalan-2.7.2.jar
xercesImpl-2.9.1.jar
xml-apis-1.3.04.jar
xml-apis-ext-1.3.04.jar
fop-2.1.jar