Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/366.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转换错误:_Java_Xml_Xslt_Xsl Fo - Fatal编程技术网

Java xsl转换错误:

Java xsl转换错误:,java,xml,xslt,xsl-fo,Java,Xml,Xslt,Xsl Fo,我不熟悉xsl,xslt。我试图找到这个错误的解决方案,但其他主题都没有真正解决相同的问题 我得到下面的错误 javax.xml.transform.TransformerException:org.apache.fop.fo.ValidationException:“fo:table cell”缺少子元素。所需内容模型:标记*(%block;)+(见位置1:36249)[Thu May 12 11:33:42 IST 2016] org.apache.fop.fo.ValidationExce

我不熟悉xsl,xslt。我试图找到这个错误的解决方案,但其他主题都没有真正解决相同的问题

我得到下面的错误

javax.xml.transform.TransformerException:org.apache.fop.fo.ValidationException:“fo:table cell”缺少子元素。所需内容模型:标记*(%block;)+(见位置1:36249)[Thu May 12 11:33:42 IST 2016] org.apache.fop.fo.ValidationException:“fo:table cell”缺少子元素。所需内容模型:标记*(%block;)+(见位置1:36249)[Thu May 12 11:33:42 IST 2016] 文件:/C:/Users/IBM_AD~1/AppData/Local/Temp/OpsComposer/N_FCOM_20140905_9064/RENDER/INTERMEDIATE/NP00745。fo:1:36249:“fo:table cell”缺少子元素。所需内容模型:标记*(%block;)+(见位置1:36249)[Thu May 12 11:33:42 IST 2016] com.airbus.ops.publisher.composer.exception.ManualRenderException:com.airbus.ops.publisher.RenderEngineWrapperException:无法转换java.lang.Thread.run(Thread.java:744)中com.airbus.ops.publisher.composer.ManualRenderPSLThread.run处的文档原因:com.airbus.ops.publisher.composer.render.RenderEngineWrapper异常:无法转换com.airbus.ops.publisher.composer.render.RenderEngineWrapper.transformandender处的文档(未知源)。。。2更多原因:com.airbus.fpc.exception.fpceexception:javax.xml.transform.TransformerException:

我有三个xsl文件。生成NP00745.html文件

<xsl:stylesheet extension-element-prefixes="saxon" version="2.0" xmlns:fpc="http://airbus.com/fpc" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:saxon="http://saxon.sf.net/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema">

    <xsl:output encoding="iso-8859-1" indent="no" method="xml" version="1.0"/>

    <xsl:template name="fpc-tmpl-transform-content">
        <xsl:param name="text-transform" select="'none'"/>

        <xsl:choose>
            <xsl:when test="$text-transform='none'">
                <xsl:apply-templates/>
            </xsl:when>
            <xsl:when test="$text-transform='toupper'">
                <xsl:for-each select="*|text()">
                    <xsl:choose>
                        <xsl:when test="self::text()">
                            <xsl:value-of select="upper-case(.)"/>
                        </xsl:when>
                        <xsl:otherwise>
                            <xsl:apply-templates select=".">
                                <xsl:with-param name="text-transform" select="$text-transform"/>
                            </xsl:apply-templates>
                        </xsl:otherwise>
                    </xsl:choose>
                </xsl:for-each>
            </xsl:when>
            <xsl:when test="$text-transform='tolower'">
                <xsl:for-each select="*|text()">
                    <xsl:choose>
                        <xsl:when test="self::text()">
                            <xsl:value-of select="lower-case(.)"/>
                        </xsl:when>
                        <xsl:otherwise>
                            <xsl:apply-templates select=".">
                                <xsl:with-param name="text-transform" select="$text-transform"/>
                            </xsl:apply-templates>
                        </xsl:otherwise>
                    </xsl:choose>
                </xsl:for-each>
            </xsl:when>
            <xsl:otherwise>
                <xsl:apply-templates/>
            </xsl:otherwise>
        </xsl:choose>

    </xsl:template>

    <xsl:template match="fpc:revst">
        <xsl:param name="text-transform" select="'none'"/>
        <!-- <fpc:r> -->
            <xsl:call-template name="fpc-tmpl-transform-content">
                <xsl:with-param name="text-transform" select="$text-transform"/>
            </xsl:call-template>
        <!-- </fpc:r> -->
    </xsl:template>

    <xsl:template match="fpc:revst" mode="_copy">
        <xsl:param name="text-transform" select="'none'"/>
        <!-- <fpc:r> -->
            <xsl:call-template name="fpc-tmpl-transform-content">
                <xsl:with-param name="text-transform" select="$text-transform"/>
            </xsl:call-template>
        <!-- </fpc:r> -->
    </xsl:template>

    <xsl:template match="fpc:cocst">
        <xsl:param name="text-transform" select="'none'"/>
        <!-- <fpc:c> -->
            <xsl:call-template name="fpc-tmpl-transform-content">
                <xsl:with-param name="text-transform" select="$text-transform"/>
            </xsl:call-template>
        <!-- </fpc:c> -->
    </xsl:template>

    <xsl:template match="fpc:cocst" mode="_copy">
        <xsl:param name="text-transform" select="'none'"/>
        <!-- <fpc:c> -->
            <xsl:call-template name="fpc-tmpl-transform-content">
                <xsl:with-param name="text-transform" select="$text-transform"/>
            </xsl:call-template>
        <!-- </fpc:c> -->
    </xsl:template>

</xsl:stylesheet>

如果需要更多信息,请告诉我。谁能告诉我哪里做错了。提前谢谢。`

看起来像的副本。看起来像的副本。