[MERGE] lp881356
[odoo/odoo.git] / addons / mrp / 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 Open ERP, 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_corporation"/>
38                                                 <xsl:call-template name="first_page_graphics_report"/>
39                                         </pageGraphics>
40
41                                         <xsl:call-template name="first_page_frames"/>
42                                 </pageTemplate>
43
44                                 <pageTemplate id="other_pages">
45                                         <pageGraphics>
46                                                 <xsl:call-template name="other_pages_graphics_corporation"/>
47                                                 <xsl:call-template name="other_pages_graphics_report"/>
48                                         </pageGraphics>
49
50                                         <xsl:call-template name="other_pages_frames"/>
51                                 </pageTemplate>
52                         </template>
53
54                 <stylesheet>
55                         <xsl:call-template name="stylesheet"/>
56                 </stylesheet>
57
58                 <story>
59                         <xsl:call-template name="story"/>
60                 </story>
61
62                 </document>
63         </xsl:template>
64 </xsl:stylesheet>