Warning, /office/kmymoney/contrib/kmt2txt.stylesheet is written in an unsupported language. File is not indexed.

0001 <?xml version="1.0" encoding="iso-8859-1"?>
0002 <!DOCTYPE xsl:stylesheet [
0003   <!ENTITY nl "&#xa;">
0004 ]>
0005 <xsl:stylesheet
0006     version="1.0"
0007     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
0008     xmlns:html="http://www.w3.org/1999/xhtml"
0009     xmlns="http://www.w3.org/1999/xhtml"
0010     exclude-result-prefixes="html"
0011 >
0012 <xsl:output method="text"/>
0013 
0014 <xsl:variable name='newline' select="'&#xa;'"/>
0015 <xsl:variable name='tab' select="'&#9;'"/>
0016 
0017 <xsl:template match="text()">
0018 </xsl:template>
0019 
0020 <xsl:template match="//accounts/account/account/account/account">
0021   <xsl:text>-</xsl:text>
0022   <xsl:value-of select="../../../@type"/>
0023   <xsl:text>-</xsl:text>
0024   <xsl:value-of select="../../@type"/>
0025   <xsl:text>-</xsl:text>
0026   <xsl:value-of select="../@type"/>
0027   <xsl:text>-</xsl:text>
0028   <xsl:value-of select="@type"/>
0029   <xsl:text>-</xsl:text>
0030   <xsl:value-of select="../../../@name"/>
0031   <xsl:text>-</xsl:text>
0032   <xsl:value-of select="../../@name"/>
0033   <xsl:text>-</xsl:text>
0034   <xsl:value-of select="../@name"/>
0035   <xsl:text>-</xsl:text>
0036   <xsl:value-of select="@name"/>
0037   <xsl:text>&nl;</xsl:text>
0038   <xsl:apply-templates/>
0039 </xsl:template>
0040 
0041 <xsl:template match="//accounts/account/account/account">
0042   <xsl:text>-</xsl:text>
0043   <xsl:value-of select="../../@type"/>
0044   <xsl:text>-</xsl:text>
0045   <xsl:value-of select="../@type"/>
0046   <xsl:text>-</xsl:text>
0047   <xsl:value-of select="@type"/>
0048   <xsl:text>-</xsl:text>
0049   <xsl:value-of select="../../@name"/>
0050   <xsl:text>-</xsl:text>
0051   <xsl:value-of select="../@name"/>
0052   <xsl:text>-</xsl:text>
0053   <xsl:value-of select="@name"/>
0054   <xsl:text>&nl;</xsl:text>
0055   <xsl:apply-templates/>
0056 </xsl:template>
0057 
0058 <xsl:template match="//accounts/account/account">
0059   <xsl:text>-</xsl:text>
0060   <xsl:value-of select="../@type"/>
0061   <xsl:text>-</xsl:text>
0062   <xsl:value-of select="@type"/>
0063   <xsl:text>-</xsl:text>
0064   <xsl:value-of select="../@name"/>
0065   <xsl:text>-</xsl:text>
0066   <xsl:value-of select="@name"/>
0067   <xsl:text>&nl;</xsl:text>
0068   <xsl:apply-templates/>
0069 </xsl:template>
0070 
0071 <xsl:template match="//accounts/account">
0072   <xsl:text>-</xsl:text>
0073   <xsl:value-of select="@type"/>
0074   <xsl:text>-</xsl:text>
0075   <xsl:value-of select="@name"/>
0076   <xsl:text>&nl;</xsl:text>
0077   <xsl:apply-templates/>
0078 </xsl:template>
0079 
0080 <xsl:template match="//accounts">
0081   <xsl:apply-templates/>
0082 </xsl:template>
0083 
0084 <xsl:template match="//title">
0085   <xsl:text>&nl;title:</xsl:text>
0086   <xsl:value-of select="text()"/>
0087   <xsl:text>&nl;</xsl:text>
0088 </xsl:template>
0089 
0090 <xsl:template match="//shortdesc">
0091   <xsl:text>&nl;shortdesc:</xsl:text>
0092   <xsl:value-of select="translate(translate(text(),$newline,''),$tab,' ')"/>
0093   <xsl:text>&nl;</xsl:text>
0094 </xsl:template>
0095 
0096 <xsl:template match="//longdesc">
0097   <xsl:text>&nl;longdesc:</xsl:text>
0098   <xsl:value-of select="translate(translate(text(),$newline,''),$tab,' ')"/>
0099   <xsl:text>&nl;</xsl:text>
0100 </xsl:template>
0101 
0102 <xsl:template match="/kmymoney-account-template">
0103   <xsl:apply-templates/>
0104 </xsl:template>
0105 
0106 <xsl:template match="/">
0107   <xsl:apply-templates/>
0108 </xsl:template>
0109 
0110 </xsl:stylesheet>
0111