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>
13 <link rel="stylesheet" type="text/css" href="account.css"/>
14 <title>Winst en Verlies rekening</title>
17 <h1>Winst en Verlies rekening</h1>
21 <xsl:for-each select="account[type='COST' and balance='CREDIT']">
22 <tr><xsl:apply-templates/></tr>
25 <td><b>TOTAAL</b></td>
26 <td><b><xsl:value-of select="sum(account[type='COST' and balance='CREDIT']/amount)"/></b></td>
32 <xsl:for-each select="account[type='COST' and balance='DEBIT']">
33 <tr><xsl:apply-templates/></tr>
36 <td><b>TOTAAL</b></td>
37 <td><b><xsl:value-of select="sum(account[type='COST' and balance='DEBIT']/amount)"/></b></td>
45 <xsl:template match="number"/>
46 <xsl:template match="type"/>
47 <xsl:template match="balance"/>
49 <xsl:template match="name">
50 <td><xsl:apply-templates/></td>
53 <xsl:template match="amount">
54 <td align='right'><xsl:apply-templates/></td>