added comment to the account.h
[account.git] / total.xsl
1 <?xml version="1.0"?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
3
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"/>
8
9 <xsl:template match="balance-sheet">
10 <html>
11   <xsl:attribute name='xmlns'>http://www.w3.org/1999/xhtml</xsl:attribute>
12 <head>
13 </head>
14 <body>
15    <xsl:for-each select="account[type='COST' and balance='CREDIT']/amount">
16       <xsl:apply-templates/><br/>
17    </xsl:for-each>
18 <br/>
19 <hr/>
20    <xsl:value-of select="sum(account[type='COST' and balance='CREDIT']/amount)"/>
21 </body>
22 </html>
23 </xsl:template>
24
25 </xsl:stylesheet>