~openerp-groupes/openobject-server/6.0-fix-setup-windows

« back to all changes in this revision

Viewing changes to bin/addons/base/report/custom_default.xsl

  • Committer: pinky
  • Date: 2006-12-07 13:41:40 UTC
  • Revision ID: pinky-3f10ee12cea3c4c75cef44ab04ad33ef47432907
New trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version = '1.0' encoding="utf-8"?>
 
2
 
 
3
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
 
4
        <xsl:variable name="signature" select="//corporate-header/signature"/>
 
5
        <xsl:variable name="title">Tiny ERP Report</xsl:variable>
 
6
        <xsl:variable name="leftMargin">1cm</xsl:variable>
 
7
        <xsl:variable name="rightMargin">1cm</xsl:variable>
 
8
        <xsl:variable name="topMargin">1cm</xsl:variable>
 
9
        <xsl:variable name="bottomMargin">1cm</xsl:variable>
 
10
        <xsl:variable name="pageSize">21cm,29.7cm</xsl:variable>
 
11
 
 
12
        <xsl:variable name="page_format">a4_letter</xsl:variable>
 
13
 
 
14
        <xsl:template name="first_page_frames">
 
15
                <frame id="column" x1="1.5cm" y1="1.5cm">
 
16
                        <xsl:attribute name="width">
 
17
                                <xsl:value-of select="/report/config/PageWidth - 85"/>
 
18
                        </xsl:attribute> 
 
19
                        <xsl:attribute name="height">
 
20
                                <xsl:value-of select="/report/config/PageHeight - 100"/>
 
21
                        </xsl:attribute> 
 
22
                </frame>
 
23
        </xsl:template>
 
24
 
 
25
        <xsl:template name="other_pages_frames">
 
26
                <frame id="column" x1="1.5cm" y1="1.5cm">
 
27
                        <xsl:attribute name="width">
 
28
                                <xsl:value-of select="/report/config/PageWidth - 85"/>
 
29
                        </xsl:attribute> 
 
30
                        <xsl:attribute name="height">
 
31
                                <xsl:value-of select="/report/config/PageHeight - 100"/>
 
32
                        </xsl:attribute> 
 
33
                </frame>
 
34
        </xsl:template>
 
35
 
 
36
</xsl:stylesheet>