Merge branch 'master-pos-wms-fva'
[odoo/odoo.git] / openerp / addons / base / report / custom_rml.xsl
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
5         <xsl:template name="first_page_graphics_report"/>
6         <xsl:template name="other_pages_graphics_report"/>
7         
8         <xsl:template name="rml">
9                 <document>
10                         <template author="Generated by OpenERP, Fabien Pinckaers">
11                                 <xsl:attribute name="pageSize">
12                                         <xsl:value-of select="$pageSize"/>
13                                 </xsl:attribute>
14
15                                 <xsl:attribute name="leftMargin">
16                                         <xsl:value-of select="$leftMargin"/>
17                                 </xsl:attribute>
18
19                                 <xsl:attribute name="rightMargin">
20                                         <xsl:value-of select="$rightMargin"/>
21                                 </xsl:attribute>
22                                 
23                                 <xsl:attribute name="topMargin">
24                                         <xsl:value-of select="$topMargin"/>
25                                 </xsl:attribute>
26                                 
27                                 <xsl:attribute name="bottomMargin">
28                                         <xsl:value-of select="$bottomMargin"/>
29                                 </xsl:attribute>
30
31                                 <xsl:attribute name="title">
32                                         <xsl:value-of select="$title"/>
33                                 </xsl:attribute>
34                                 
35                                 <pageTemplate id="first_page">
36                                         <pageGraphics>
37                                                 <xsl:call-template name="first_page_graphics_report"/>
38                                         </pageGraphics>
39
40                                         <xsl:call-template name="first_page_frames"/>
41                                 </pageTemplate>
42
43                                 <pageTemplate id="other_pages">
44                                         <pageGraphics>
45                                                 <xsl:call-template name="other_pages_graphics_report"/>
46                                         </pageGraphics>
47                                         
48                                         <xsl:call-template name="other_pages_frames"/>
49                                 </pageTemplate>
50                         </template>
51
52                 <stylesheet>
53                         <xsl:call-template name="stylesheet"/>
54                 </stylesheet>
55
56                 <story>
57                         <xsl:call-template name="story"/>
58                 </story>
59
60                 </document>
61         </xsl:template>
62 </xsl:stylesheet>