-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwydatki.xsl
67 lines (62 loc) · 2.43 KB
/
wydatki.xsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<h2>Wydatki</h2>
<table border="1">
<tr bgcolor="#9acd32">
<th style="text-align:left">DataDodania</th>
<th style="text-align:left">Rachunek </th>
<th style="text-align:left">Kategoria</th>
<th style="text-align:left">Waluta</th>
<th style="text-align:left">Kwota </th>
<th style="text-align:left">Data</th>
<th style="text-align:left">Plik</th>
</tr>
<xsl:for-each select="Wydatki/Wydatek">
<tr>
<td>
<xsl:value-of select="DataDodania"/>
</td>
<td>
<xsl:value-of select="Rachunek"/>
</td>
<td>
<xsl:value-of select="Kategoria"/>
</td>
<td>
<xsl:value-of select="Waluta"/>
</td>
<td>
<xsl:value-of select="Kwota"/>
</td>
<td>
<xsl:value-of select="Data"/>
</td>
<td>
<img width="80" height="80">
<xsl:attribute name="src" >
<xsl:value-of select="Plik"/>
</xsl:attribute>
</img>
</td>
</tr>
</xsl:for-each>
<tr style="color:orange; font-size:30px; background-color:powderblue;font-family:verdana;">
<td >
</td>
<td></td>
<td></td>
<td style ="color:black;"> Suma </td>
<td >
<xsl:value-of select="sum(//Kwota)"/></td>
<td style ="color:black;"> PLN </td>
<td></td>
</tr>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>