2006-12-07 13:41:40 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<xsl:stylesheet version="1.0"
|
|
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
|
xmlns:fo="http://www.w3.org/1999/XSL/Format">
|
|
|
|
|
2010-09-14 13:20:35 +00:00
|
|
|
<xsl:import href="hr_custom_default.xsl"/>
|
|
|
|
<xsl:import href="hr_custom_rml.xsl"/>
|
|
|
|
|
2006-12-07 13:41:40 +00:00
|
|
|
<xsl:template match="/">
|
|
|
|
<xsl:call-template name="rml" />
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
2010-09-14 13:20:35 +00:00
|
|
|
<xsl:template name="stylesheet">
|
2011-06-30 12:26:41 +00:00
|
|
|
<paraStyle name="title" fontName="Helvetica-Bold" fontSize="15.0" leading="17" alignment="CENTER" spaceBefore="12.0" spaceAfter="6.0"/>
|
2010-08-27 13:02:34 +00:00
|
|
|
<paraStyle name="terp_header_Centre" fontName="Helvetica-Bold" fontSize="14.0" leading="17" alignment="CENTER" spaceBefore="12.0" spaceAfter="6.0"/>
|
2006-12-07 13:41:40 +00:00
|
|
|
<paraStyle name="name" fontName="Helvetica" textColor="green" fontSize="7"/>
|
|
|
|
<paraStyle name="normal" fontName="Helvetica" fontSize="6"/>
|
|
|
|
<blockTableStyle id="week">
|
2010-09-15 12:17:12 +00:00
|
|
|
<blockFont name="Helvetica-BoldOblique" size="6" alignment="center" start="0,0" stop="-1,1"/>
|
|
|
|
<blockFont name="Helvetica" size="5" alignment="center" start="0,1" stop="-1,-1"/>
|
|
|
|
<blockBackground colorName="#AAAAAA" start="1,0" stop="-1,1"/>
|
|
|
|
<lineStyle kind="LINEABOVE" colorName="black" start="0,0" stop="-1,0" />
|
|
|
|
<lineStyle kind="LINEBEFORE" colorName="black" start="0,0" stop="-1,-1"/>
|
|
|
|
<lineStyle kind="LINEAFTER" colorName="black" start="-1,0" stop="-1,-1"/>
|
|
|
|
<lineStyle kind="LINEBELOW" colorName="black" start="0,0" stop="-1,-1"/>
|
2006-12-07 13:41:40 +00:00
|
|
|
<blockValign value="TOP"/>
|
|
|
|
</blockTableStyle>
|
2010-09-14 13:20:35 +00:00
|
|
|
</xsl:template>
|
2006-12-07 13:41:40 +00:00
|
|
|
|
|
|
|
<xsl:template name="story">
|
2010-09-14 13:20:35 +00:00
|
|
|
<spacer length="1cm" />
|
2011-06-30 12:26:41 +00:00
|
|
|
<xsl:apply-templates select="report/title"/>
|
2010-08-27 13:02:34 +00:00
|
|
|
<spacer length="1cm" />
|
2010-09-15 12:17:12 +00:00
|
|
|
<blockTable>
|
|
|
|
<xsl:attribute name="style">week</xsl:attribute>
|
|
|
|
<xsl:attribute name="colWidths"><xsl:value-of select="report/cols" /></xsl:attribute>
|
2006-12-07 13:41:40 +00:00
|
|
|
<tr>
|
2010-09-15 12:17:12 +00:00
|
|
|
<td><xsl:value-of select="/report/year" /></td>
|
|
|
|
<xsl:for-each select="report/days/dayy">
|
|
|
|
<td>
|
|
|
|
<xsl:value-of select="attribute::name" />
|
|
|
|
</td>
|
|
|
|
</xsl:for-each>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><xsl:value-of select="/report/month" /></td>
|
|
|
|
<xsl:for-each select="report/days/dayy">
|
|
|
|
<td>
|
|
|
|
<xsl:value-of select="attribute::number" />
|
|
|
|
</td>
|
|
|
|
</xsl:for-each>
|
2006-12-07 13:41:40 +00:00
|
|
|
</tr>
|
|
|
|
<xsl:apply-templates select="report/user"/>
|
2010-08-27 13:02:34 +00:00
|
|
|
</blockTable>
|
2006-12-07 13:41:40 +00:00
|
|
|
</xsl:template>
|
2011-06-30 12:26:41 +00:00
|
|
|
|
|
|
|
<xsl:template match="title">
|
|
|
|
<para style="title">
|
|
|
|
<xsl:value-of select="."/>
|
|
|
|
</para>
|
|
|
|
<spacer length="1cm"/>
|
|
|
|
</xsl:template>
|
|
|
|
|
2006-12-07 13:41:40 +00:00
|
|
|
<xsl:template match="user">
|
2010-08-27 13:02:34 +00:00
|
|
|
<!-- <tr></tr>-->
|
2006-12-07 13:41:40 +00:00
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<para style="name"><xsl:value-of select="name" /></para>
|
|
|
|
</td>
|
|
|
|
<xsl:for-each select="day">
|
|
|
|
<td><xsl:value-of select="wh" /></td>
|
|
|
|
</xsl:for-each>
|
|
|
|
</tr>
|
2010-08-27 13:02:34 +00:00
|
|
|
|
|
|
|
<!-- <tr>-->
|
|
|
|
<!-- <td>Worked</td>-->
|
|
|
|
<!-- -->
|
|
|
|
<!-- </tr>-->
|
2006-12-07 13:41:40 +00:00
|
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|