-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwydatki2.xsl
64 lines (50 loc) · 2.11 KB
/
wydatki2.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
<?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>
<xsl:for-each select="Wydatki/Wydatek">
<ul style="list-style-type:none;">
<h1>Data Dodania:
<xsl:value-of select="DataDodania"/>
</h1>
<li>Rodzaj:
<xsl:value-of select="Rachunek"/>
</li>
<li>Za co:
<xsl:value-of select="Kategoria"/>
</li>
<li>
<xsl:value-of select="Waluta"/>
</li>
<li>Kwota:
<xsl:value-of select="Kwota"/>
</li>
<li>Data:
<xsl:value-of select="Data"/>
</li>
<li>
<img width="80" height="80">
<xsl:attribute name="src" >
<xsl:value-of select="Plik"/>
</xsl:attribute>
</img>
</li>
</ul>
</xsl:for-each>
<table style="color:orange; font-size:12; background-color:white;font-family:verdana;" border="1">
<tr >
<td style ="color:black;"> Suma Rachunków za jedzenie </td>
<td><xsl:value-of select="sum(//Kwota[../Kategoria='Jedzenie'])"/></td>
<tr>
<td style ="color:green;"> Suma </td>
<td><xsl:value-of select="sum(//Kwota)"/></td>
</tr>
</tr>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>