1
<?xml version="1.0" encoding="utf-8"?>
2
<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:import href="../../custom/corporate_defaults.xsl"/>
5
<xsl:import href="../../base/report/rml_template.xsl"/>
6
<xsl:variable name="page_format">a4_normal</xsl:variable>
8
<xsl:template match="/">
9
<xsl:call-template name="rml"/>
14
<xsl:template name="stylesheet">
15
<paraStyle name="title" fontName="Helvetica-Bold" fontSize="12" alignment="center"/>
16
<blockTableStyle id="headerm">
17
<blockBackground colorName="grey" start="0,0" stop="-1,0"/>
18
<blockValign value="TOP"/>
19
<blockAlignment value="CENTER"/>
20
<lineStyle kind="GRID" colorName="black"/>
22
<blockTableStyle id="header">
23
<blockBackground colorName="lightgrey" start="0,0" stop="-1,0"/>
24
<blockValign value="TOP"/>
25
<blockAlignment value="RIGHT" start="-1,0" stop="-1,-1"/>
26
<lineStyle kind="GRID" colorName="black"/>
30
<xsl:template name="story">
31
<xsl:apply-templates select="report"/>
34
<xsl:template match="report">
35
<xsl:apply-templates select="product"/>
38
<xsl:template match="product">
39
<blockTable style="headerm" colWidths="15cm">
43
<xsl:value-of select="name"/>
44
<xsl:text> (</xsl:text>
45
<xsl:value-of select="unit"/>
46
<xsl:text>)</xsl:text>
51
<xsl:apply-templates select="locations"/>
52
<spacer length="5mm" width="5mm"/>
55
<xsl:template match="locations">
56
<blockTable style="header" colWidths="12cm,3cm">
58
<td t="1">Location</td>
59
<td t="1">Quantity</td>
61
<xsl:apply-templates select="location"/>
65
<xsl:template match="location">
69
<xsl:value-of select="loc_name"/>
73
<xsl:value-of select="loc_qty"/>