~marrakis/openobject-server/python-lib

« back to all changes in this revision

Viewing changes to openobject/server/addons/base/report/custom_default.xsl

  • Committer: Mathieu Leduc-Hamel
  • Date: 2010-02-11 20:36:24 UTC
  • Revision ID: mlhamel@arak4-20100211203624-4331pfj1xb8qtzw8
[IMP] New pythonic way to organise the code. Everything is under the package openobject.server and everything is refering to that. Now needed to clean again setup.py

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">OpenERP 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
        <!--:variable name="pageSize">29.7cm,21cm</xsl:variable> Or use default width and height for frame -->
 
11
    <xsl:variable name="pageSize">
 
12
        <xsl:value-of select="/report/config/PageSize"/>
 
13
    </xsl:variable>
 
14
        <xsl:variable name="page_format">a4_letter</xsl:variable>
 
15
 
 
16
        <xsl:template name="first_page_frames">
 
17
                <frame id="column" x1="1.5cm" y1="1.5cm">
 
18
                        <xsl:attribute name="width">
 
19
                                <xsl:value-of select="/report/config/PageWidth - 85"/>
 
20
                        </xsl:attribute> 
 
21
                        <xsl:attribute name="height">
 
22
                                <xsl:value-of select="/report/config/PageHeight - 100"/>
 
23
                        </xsl:attribute> 
 
24
                </frame>
 
25
        </xsl:template>
 
26
 
 
27
        <xsl:template name="other_pages_frames">
 
28
                <frame id="column" x1="1.5cm" y1="1.5cm">
 
29
                        <xsl:attribute name="width">
 
30
                                <xsl:value-of select="/report/config/PageWidth - 85"/>
 
31
                        </xsl:attribute> 
 
32
                        <xsl:attribute name="height">
 
33
                                <xsl:value-of select="/report/config/PageHeight - 100"/>
 
34
                        </xsl:attribute> 
 
35
                </frame>
 
36
        </xsl:template>
 
37
 
 
38
</xsl:stylesheet>