2 <xsl:stylesheet version='
2.0' xmlns:xsl='http://www.w3.org/
1999/XSL/Transform'
>
5 omit-xml-declaration=
"yes"
6 doctype-public=
"-//W3C//DTD XHTML 1.0 Strict//EN"
7 doctype-system=
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
10 <xsl:template match='/project'
>
11 <html xmlns=
"http://www.w3.org/1999/xhtml" xml:
lang=
"en" lang=
"en">
13 <title><xsl:value-of select='@name'
/> translation statistics
</title>
14 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8" />
15 <!-- <link rel="Stylesheet" href="/gaim.css" type="text/css" media="screen" /> -->
16 <style type=
"text/css">
20 background-color: red;
21 border-collapse: collapse;
28 background-color: green;
32 background-color: blue;
36 background-color: red;
48 <!-- <div id="content"> -->
49 <h1><xsl:value-of select='@name'
/> translation statistics
</h1>
51 <tr><th>Language
</th><th colspan='
2'
>Translated
</th><th colspan='
2'
>Fuzzy
</th><th colspan='
2'
>Untranslated
</th></tr>
52 <xsl:for-each select=
"lang">
53 <xsl:sort select='@code'
/>
55 <td><a><xsl:attribute name='href'
><xsl:value-of select='@code'
/>.po
</xsl:attribute><xsl:value-of select='@name'
/> (
<xsl:value-of select='@code'
/>)
</a></td>
56 <td><xsl:value-of select='@translated'
/></td>
57 <td class='sep'
><xsl:value-of select=
"format-number(@translated div ../@strings * 100,'#.##')"/> %
</td>
58 <td><xsl:value-of select='@fuzzy'
/></td>
59 <td class='sep'
><xsl:value-of select=
"format-number(@fuzzy div ../@strings * 100,'#.##')"/> %
</td>
60 <td><xsl:value-of select='../@strings - (@translated + @fuzzy)'
/></td>
61 <td><xsl:value-of select=
"format-number((../@strings - (@translated + @fuzzy)) div ../@strings * 100,'#.##')"/> %
</td>
63 <table class='bargraph'
><tr>
64 <td class=
"translated"><xsl:attribute name='style'
>width:
<xsl:value-of select='round(@translated div ../@strings *
200)'
/>px;
</xsl:attribute></td>
65 <td class=
"fuzzy"><xsl:attribute name='style'
>width:
<xsl:value-of select='round(@fuzzy div ../@strings *
200)'
/>px;
</xsl:attribute></td>
66 <td class=
"untranslated"><xsl:attribute name='style'
>width:
<xsl:value-of select='round((../@strings - @translated - @fuzzy) div ../@strings *
200)'
/>px;
</xsl:attribute></td>
72 <p><a><xsl:attribute name='href'
><xsl:value-of select='@pofile'
/></xsl:attribute><xsl:value-of select='@pofile'
/></a> generated on
<xsl:value-of select='@generated'
/></p>