Skip to Main Content

Intelligent Advisor

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to add header and footer image in pdf

851234Apr 6 2011 — edited Apr 6 2011
Hi,

I want to add image in header and footer for the pdf generation.

how I can add this? Following my xsl

?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:fn="http://www.w3.org/2005/xpath-functions">

<xsl:output method="xml" indent="yes" encoding="utf-8" omit-xml-declaration = "yes" />




<xsl:template match="/">

<fo:root>

<fo:layout-master-set>
<fo:simple-page-master master-name="my-page">
<fo:region-body margin="1in"/>
</fo:simple-page-master>
</fo:layout-master-set>

<fo:page-sequence master-reference="my-page">
<fo:flow flow-name="xsl-region-body">
<fo:block >
<xsl:apply-templates mode="dump" select="/session/entity/instance/attribute"/>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>





<xsl:template match="*" mode="dump" priority="100">




<fo:block >

<fo:block margin-left="1cm">

<xsl:for-each select="@question-text">
<xsl:value-of select="."/>=
</xsl:for-each>
<xsl:if test="string-length(normalize-space(text())) > 0">
<xsl:value-of select="text()"/>
</xsl:if>
</fo:block>





<xsl:apply-templates mode="dump" select="*"/>
</fo:block>
</xsl:template>

</xsl:stylesheet>

Edited by: 848231 on Apr 6, 2011 1:42 AM
This post has been answered by Aakarsh on Apr 6 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 4 2011
Added on Apr 6 2011
1 comment
1,321 views