Xslt 页脚图像未显示

Xslt 页脚图像未显示,xslt,footer,xsl-fo,dita,Xslt,Footer,Xsl Fo,Dita,我正在尝试仅在正文页中使用DITA-OT在PDF生成中显示页脚中的图像。我的图像没有显示在输出中。这是我的密码 静态内容。xsl:- <xsl:template name="insertBodyOddFooter"> <fo:static-content flow-name="odd-body-footer"> <fo:block xsl:use-attribute-sets="__body__odd__footer">

我正在尝试仅在正文页中使用DITA-OT在PDF生成中显示页脚中的图像。我的图像没有显示在输出中。这是我的密码

静态内容。xsl:-

<xsl:template name="insertBodyOddFooter">

        <fo:static-content flow-name="odd-body-footer">
            <fo:block xsl:use-attribute-sets="__body__odd__footer">
                <xsl:call-template name="insertVariable">
                    <xsl:with-param name="theVariableID" select="'Body odd footer'"/>
                    <xsl:with-param name="theParameters">
                        <heading>
                            <fo:inline xsl:use-attribute-sets="__body__odd__footer__heading">
                                <fo:retrieve-marker retrieve-class-name="current-header"/>
                            </fo:inline>
                        </heading>
                        <pagenum>
                            <fo:inline xsl:use-attribute-sets="__body__odd__footer__pagenum">
                                <fo:page-number/>
                            </fo:inline>
                        </pagenum>
                    </xsl:with-param>
                </xsl:call-template>

            </fo:block>
                <!-- for footer image -->

                            <fo:block xsl:use-attribute-sets="footer_image">
                                <fo:external-graphic src="url(Customization/OpenTopic/common/artwork/footer_img.png)"/>
                            </fo:block>
        </fo:static-content>
<xsl:attribute-set name="footer_image">
     <!-- <xsl:attribute name="padding-left">10</xsl:attribute> -->
     <xsl:attribute name="position">absolute</xsl:attribute>
     <xsl:attribute name="text-align">center</xsl:attribute>
     <xsl:attribute name="content-width">scale-to-fit</xsl:attribute>
     <xsl:attribute name="space-before.conditionality">retain</xsl:attribute>
     <xsl:attribute name="scaling">uniform</xsl:attribute> 
     <xsl:attribute name="width">100%</xsl:attribute> 
     </xsl:attribute-set>

静态内容属性xsl:-

<xsl:template name="insertBodyOddFooter">

        <fo:static-content flow-name="odd-body-footer">
            <fo:block xsl:use-attribute-sets="__body__odd__footer">
                <xsl:call-template name="insertVariable">
                    <xsl:with-param name="theVariableID" select="'Body odd footer'"/>
                    <xsl:with-param name="theParameters">
                        <heading>
                            <fo:inline xsl:use-attribute-sets="__body__odd__footer__heading">
                                <fo:retrieve-marker retrieve-class-name="current-header"/>
                            </fo:inline>
                        </heading>
                        <pagenum>
                            <fo:inline xsl:use-attribute-sets="__body__odd__footer__pagenum">
                                <fo:page-number/>
                            </fo:inline>
                        </pagenum>
                    </xsl:with-param>
                </xsl:call-template>

            </fo:block>
                <!-- for footer image -->

                            <fo:block xsl:use-attribute-sets="footer_image">
                                <fo:external-graphic src="url(Customization/OpenTopic/common/artwork/footer_img.png)"/>
                            </fo:block>
        </fo:static-content>
<xsl:attribute-set name="footer_image">
     <!-- <xsl:attribute name="padding-left">10</xsl:attribute> -->
     <xsl:attribute name="position">absolute</xsl:attribute>
     <xsl:attribute name="text-align">center</xsl:attribute>
     <xsl:attribute name="content-width">scale-to-fit</xsl:attribute>
     <xsl:attribute name="space-before.conditionality">retain</xsl:attribute>
     <xsl:attribute name="scaling">uniform</xsl:attribute> 
     <xsl:attribute name="width">100%</xsl:attribute> 
     </xsl:attribute-set>

绝对的
居中
按比例调整
保持
统一的
100% 

我哪里做错了?我在页眉及其工作中也做了同样的操作。

在用于该页面的
fo:simple page master
中是否有一个名为
奇体页脚的区域?没有对应的区域是一个常见的错误,加上代码中的大多数名称的单词顺序是“body”、“odd”,然后是“footer”。运行工具箱并导出FO,分析FO。您(和我们)无法从模板中猜出可能是什么happening@TonyGraham对不起,我没听懂。大多数名称(‘body’、‘odd’、‘footer’)默认在pdf2插件中。@KevinBrown我只需在static-content.xsl中添加图像url,并在static-content-attr.xsl中添加其属性。我还需要做些什么来展示我的形象?它和页眉不同吗?我在页眉和它的显示中也做了同样的事情…因为其他的事情都很完美。你有
流名=“奇体页脚”
,但也
使用属性集=“\uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu。
fo:simple page master
中的
区域名称是否类似于
正文奇数页脚