Menu

#9 Improve monthly record culling and Grisbi Bug 232

0.8
open
Coding (2)
5
2007-08-12
2007-08-12
No

<!-- Remove anything not in this year -->
<xsl:template match="transactionRecord">
<xsl:if test="contains(child::date/text(),'/07')">
<xsl:choose>
<!-- Work around for Grisbi Bug 232 -->
<xsl:when test="starts-with(child::payee/text(),'Transfer from 02336700')">
<!-- Ignore these as the will be created in Grisbi when the transfer is setup manually -->
</xsl:when>
<xsl:otherwise>
<xsl:copy>
<xsl:apply-templates/>
</xsl:copy>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:template>

Should be able to be handled in multiple template matching (as there is no need to cull to a year) and the xsl:choose could be handled by its own match.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB