2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
4 <xsl:strip-space elements="doc chapter section"/>
5 <xsl:output method="xml" indent="yes" encoding="iso-8859-1"
6 doctype-system="http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"
7 doctype-public="-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"/>
9 <xsl:template match="balance-sheet">
11 <xsl:attribute name='xmlns'>http://www.w3.org/1999/xhtml</xsl:attribute>
19 <tr><th>Rekening</th><th colspan='2'>Kosten</th><th colspan='2'>Balans</th></tr>
20 <tr><th> </th><th>DEBET</th><th>CREDIT</th><th>DEBET</th><th>CREDIT</th></tr>
21 <xsl:apply-templates/>
23 <td><b>TOTAAL</b></td>
24 <td align='right'><b><xsl:value-of select="sum(account[type='COST' and balance='DEBIT']/amount)"/></b></td>
25 <td align='right'><b><xsl:value-of select="sum(account[type='COST' and balance='CREDIT']/amount)"/></b></td>
26 <td align='right'><b><xsl:value-of select="sum(account[type='BALANCE' and balance='DEBIT']/amount)"/></b></td>
27 <td align='right'><b><xsl:value-of select="sum(account[type='BALANCE' and balance='CREDIT']/amount)"/></b></td>
35 <xsl:template match="account[type='COST' and balance='DEBIT']">
37 <xsl:apply-templates select="name"/>
38 <xsl:apply-templates select='amount'/>
45 <xsl:template match="account[type='COST' and balance='CREDIT']">
47 <xsl:apply-templates select="name"/>
49 <xsl:apply-templates select='amount'/>
55 <xsl:template match="account[type='BALANCE' and balance='DEBIT']">
57 <xsl:apply-templates select="name"/>
60 <xsl:apply-templates select='amount'/>
65 <xsl:template match="account[type='BALANCE' and balance='CREDIT']">
67 <xsl:apply-templates select="name"/>
71 <xsl:apply-templates select='amount'/>
76 <xsl:template match="number"/>
77 <xsl:template match="type"/>
78 <xsl:template match="balance"/>
80 <xsl:template match="name">
81 <td><xsl:apply-templates/></td>
84 <xsl:template match="amount">
85 <td align='right'><xsl:apply-templates/></td>