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>
18 <h2>Periode van <xsl:value-of select='@begin'/> tot <xsl:value-of select='@end'/></h2>
22 <xsl:for-each select="account[type='COST' and balance='CREDIT']">
23 <tr><xsl:apply-templates/></tr>
26 <td><b>TOTAAL</b></td>
27 <td><b><xsl:value-of select="sum(account[type='COST' and balance='CREDIT']/amount)"/></b></td>
33 <xsl:for-each select="account[type='COST' and balance='DEBIT']">
34 <tr><xsl:apply-templates/></tr>
37 <td><b>TOTAAL</b></td>
38 <td><b><xsl:value-of select="sum(account[type='COST' and balance='DEBIT']/amount)"/></b></td>
46 <xsl:template match="number"/>
47 <xsl:template match="type"/>
48 <xsl:template match="balance"/>
50 <xsl:template match="name">
51 <td><xsl:apply-templates/></td>
54 <xsl:template match="amount">
55 <td align='right'><xsl:apply-templates/></td>