hide export for floatimages.
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE xsl:stylesheet
4 <!-- Namespace for XHTML -->
5 <!ENTITY xhtmlns "http://www.w3.org/1999/xhtml">
9 Author : Uwe Drechsel <vym@InSilmaril.de>
10 Description : transforms KDE Bookmarks into vym map
13 <xsl:stylesheet version="1.0"
14 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
15 xmlns:date="http://exslt.org/dates-and-times"
16 extension-element-prefixes="date"
20 <xsl:output method="xml"
21 doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
22 doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
25 media-type="application/xhtml+xml"/>
29 <!-- ======================================= -->
30 <!-- 1 = true, 0 = false -->
32 <!-- Debuggin on/off? -->
33 <xsl:param name="debug" select="0"/>
36 <!-- ======================================= -->
37 <xsl:variable name="head.title">
39 <xsl:when test="/vymmap/mapcenter/heading">
41 <xsl:variable name="title">
44 <xsl:value-of select="$title"/>
46 <xsl:otherwise></xsl:otherwise>
53 <!-- ======================================= -->
54 <xsl:template match="*">
56 <xsl:text>WARNING: Unknown tag "</xsl:text>
57 <xsl:value-of select="local-name(.)"/>
58 <xsl:text>": </xsl:text>
59 <xsl:value-of select="normalize-space(.)"/>
60 <xsl:text> </xsl:text>
67 <xsl:template match="xbel">
68 <vymmap version="1.7.8">
70 <heading>Bookmarks</heading>
71 <branch frameType="Rectangle">
72 <heading>KDE</heading>
73 <xsl:apply-templates/>
80 <xsl:template match="folder">
81 <branch scrolled="yes">
82 <xsl:apply-templates/>
86 <xsl:template match="title">
88 <xsl:apply-templates/>
92 <xsl:template match="separator">
94 <heading>***************</heading>
98 <xsl:template match="desc">
99 <htmlnote fonthint="var">
101 <body style="font-size:10pt;font-family:Sans Serif">
103 <xsl:value-of select="." />
111 <xsl:template match="bookmark">
113 <xsl:attribute name="url" ><xsl:value-of select="@href" />
115 <xsl:apply-templates/>
120 <!-- Do nothing! We don't need some informational elements -->
121 <xsl:template match="info*"/>