bzr branch
http://darksoft.org/webbzr/adei/trunk
210.1.2
by Suren A. Chilingaryan
Download manager by Aki Rimpelainen |
1 |
<?xml version="1.0" encoding="utf-8"?>
|
2 |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
|
3 |
<xsl:output method="html" encoding="utf-8"/> |
|
4 |
||
5 |
<xsl:template match="/"> |
|
6 |
<html>
|
|
7 |
<body>
|
|
8 |
<div style="text-align:center"> |
|
9 |
<xsl:if test="groups/error!=''"> |
|
10 |
<span style="color:red; text-align:center;"> Error: <xsl:value-of select="groups/error"/></span> |
|
11 |
</xsl:if>
|
|
12 |
<xsl:if test="result/Error!=''"> |
|
13 |
<span style="color:red; text-align:center;"><xsl:value-of select="result/Error"/></span> |
|
14 |
</xsl:if>
|
|
15 |
<table border="1"> |
|
16 |
<tr bgcolor="darkgrey"> |
|
17 |
<th width="306px">Window start</th> |
|
18 |
<th width="306px">Window end</th> |
|
19 |
</tr>
|
|
20 |
<tr>
|
|
21 |
<td><xsl:value-of select="groups/window/from"/></td> |
|
22 |
<td><xsl:value-of select="groups/window/to"/></td> |
|
23 |
</tr>
|
|
24 |
</table>
|
|
25 |
</div>
|
|
26 |
<div style="text-align:center"> |
|
27 |
<table border="1"> |
|
28 |
<tr bgcolor="darkgrey"> |
|
29 |
<th width="306px">File format</th> |
|
30 |
<th width="306px">File size</th> |
|
31 |
</tr>
|
|
32 |
<tr>
|
|
33 |
<td><xsl:value-of select="groups/data/format"/></td> |
|
34 |
<td><xsl:value-of select="groups/data/size"/></td> |
|
35 |
</tr>
|
|
36 |
</table>
|
|
37 |
</div>
|
|
38 |
<xsl:for-each select="/groups/group"> |
|
39 |
<div style="text-align:center"> |
|
40 |
</div>
|
|
41 |
<table border="1"> |
|
42 |
<tr bgcolor="darkgrey"> |
|
43 |
<th>ID</th> |
|
44 |
<th width="100%">Group: <xsl:value-of select="gname"/></th> |
|
45 |
</tr>
|
|
46 |
<xsl:for-each select="item"> |
|
47 |
<tr>
|
|
48 |
<td><xsl:value-of select="itemid"/></td> |
|
49 |
<td><xsl:value-of select="itemname"/></td> |
|
50 |
</tr>
|
|
51 |
</xsl:for-each>
|
|
52 |
</table>
|
|
53 |
</xsl:for-each>
|
|
54 |
</body>
|
|
55 |
</html>
|
|
56 |
</xsl:template>
|
|
57 |
||
58 |
</xsl:stylesheet>
|