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>
15 <xsl:for-each select="account[type='COST' and balance='CREDIT']/amount">
16 <xsl:apply-templates/><br/>
20 <xsl:value-of select="sum(account[type='COST' and balance='CREDIT']/amount)"/>