1
<?xml version="1.0" encoding="utf-8"?>
2
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3
<xsl:output method="text"/>
5
<xsl:template match="/wallpapers">
6
<xsl:for-each select="wallpaper[1]">
8
<xsl:call-template name="gconf">
9
<xsl:with-param name="key">/desktop/gnome/background/picture_filename</xsl:with-param>
10
<xsl:with-param name="value" select="filename"/>
13
<xsl:call-template name="gconf">
14
<xsl:with-param name="key">/desktop/gnome/background/picture_options</xsl:with-param>
15
<xsl:with-param name="value" select="options"/>
18
<xsl:call-template name="gconf">
19
<xsl:with-param name="key">/desktop/gnome/background/color_shading_type</xsl:with-param>
20
<xsl:with-param name="value" select="shade_type"/>
23
<xsl:call-template name="gconf">
24
<xsl:with-param name="key">/desktop/gnome/background/primary_color</xsl:with-param>
25
<xsl:with-param name="value" select="pcolor"/>
28
<xsl:call-template name="gconf">
29
<xsl:with-param name="key">/desktop/gnome/background/secondary_color</xsl:with-param>
30
<xsl:with-param name="value" select="scolor"/>
36
<xsl:template name="gconf">
37
<xsl:param name="key"/>
38
<xsl:param name="value"/>
41
<xsl:when test="$value">
42
<xsl:value-of select="$key"/>
43
<xsl:text> "</xsl:text>
44
<xsl:value-of select="$value"/>
45
<xsl:text>"
</xsl:text>
50
<xsl:text>WARNING: No value for </xsl:text>
51
<xsl:value-of select="$key"/>