2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3
xmlns:tomboy="http://beatniksoftware.com/tomboy"
4
xmlns:size="http://beatniksoftware.com/tomboy/size"
5
xmlns:link="http://beatniksoftware.com/tomboy/link"
8
<xsl:output method="html" indent="no" />
9
<xsl:preserve-space elements="*" />
11
<xsl:param name="font" />
12
<xsl:param name="newline" select="'
'" />
14
<xsl:template match="/">
17
<xsl:apply-templates select="note"/>
22
<xsl:template match="text()">
23
<xsl:call-template name="softbreak"/>
26
<xsl:template name="softbreak">
27
<xsl:param name="text" select="."/>
29
<xsl:when test="contains($text, $newline)">
30
<xsl:value-of select="substring-before($text, $newline)"/>
32
<xsl:call-template name="softbreak">
33
<xsl:with-param name="text" select="substring-after($text, $newline)"/>
38
<xsl:value-of select="$text"/>
43
<xsl:template match="note-content">
44
<xsl:apply-templates select="node()" />
47
<xsl:template match="bold">
48
<b><xsl:apply-templates select="node()"/></b>
51
<xsl:template match="italic">
52
<i><xsl:apply-templates select="node()"/></i>
55
<xsl:template match="strikethrough">
56
<strike><xsl:apply-templates select="node()"/></strike>
59
<xsl:template match="highlight">
60
<span style="background:yellow"><xsl:apply-templates select="node()"/></span>
63
<xsl:template match="datetime">
64
<span style="font-style:italic;font-size:small;color:#888A85">
65
<xsl:apply-templates select="node()"/>
69
<xsl:template match="size:small">
70
<span style="font-size:small"><xsl:apply-templates select="node()"/></span>
73
<xsl:template match="size:large">
74
<span style="font-size:large"><xsl:apply-templates select="node()"/></span>
77
<xsl:template match="size:huge">
78
<span style="font-size:xx-large"><xsl:apply-templates select="node()"/></span>
81
<xsl:template match="link:broken">
82
<xsl:value-of select="node()"/>
85
<xsl:template match="link:internal">
86
<xsl:value-of select="node()"/>
89
<xsl:template match="link:url">
90
<a style="color:#3465A4" href="{node()}"><xsl:value-of select="node()"/></a>
93
<xsl:template match="list">
95
<xsl:apply-templates select="list-item" />
99
<xsl:template match="list-item">
101
<xsl:if test="normalize-space(text()) = '' and count(list) = 1 and count(*) = 1">
102
<xsl:attribute name="style">list-style-type: none</xsl:attribute>
104
<xsl:attribute name="dir">
105
<xsl:value-of select="@dir"/>
107
<xsl:apply-templates select="node()" />
111
<!-- Evolution.dll Plugin -->
112
<xsl:template match="link:evo-mail">
113
<xsl:value-of select="node()"/>
116
<!-- FixedWidth.dll Plugin -->
117
<xsl:template match="monospace">
118
<span style="font-family:monospace"><xsl:apply-templates select="node()"/></span>
121
<!-- Bugzilla.dll Plugin -->
122
<xsl:template match="link:bugzilla">
123
<a href="{@uri}"><xsl:value-of select="node()" /></a>