openerp

Page 158

Open Object Developer Book, Release 1.0

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" :xmlns:fo="http://www <xsl:import href="../../base/report/rml_template.xsl"/> <xsl:variable name="page_format">a4_normal</xsl:variable> <xsl:template match="/"> <xsl:call-template name="rml"/> </xsl:template> <xsl:template name="stylesheet"> </xsl:template> <xsl:template name="story"> <xsl:apply-templates select="transfer-list"/> </xsl:template> <xsl:template match="transfer-list"> <xsl:apply-templates select="transfer"/> </xsl:template> <xsl:template match="transfer"> <setNextTemplate name="other_pages"/> <para> Document: <xsl:value-of select="name"/> </para><para> Type: <xsl:value-of select="type"/> </para><para> Reference: <xsl:value-of select="reference"/> </para><para> Partner ID: <xsl:value-of select="partner_id"/> </para><para> Date: <xsl:value-of select="date"/> </para><para> Amount: <xsl:value-of select="amount"/> </para> <xsl:if test="number(change)>0"> <para> Change: <xsl:value-of select="change"/> </para> </xsl:if> <setNextTemplate name="first_page"/> <pageBreak/> </xsl:template> </xsl:stylesheet>

14.4 Each report with its own corporate header Example (with corporate defaults):

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" :xmlns:fo="http://www <xsl:import href="../../custom/corporate_defaults.xsl"/>

154

Chapter 14. Reports


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.