summaryrefslogtreecommitdiff
path: root/navit/xslt/gui_gtk.xslt
blob: 012e1c8d017562cf4338129d27922ec88beea697 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?xml version="1.0"?>
<xsl:transform version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xi="http://www.w3.org/2001/XInclude">
	<xsl:output method="xml" doctype-system="navit.dtd" cdata-section-elements="gui"/>
	<xsl:template match="/config/navit/graphics">
		<graphics type="gtk_drawing_area" />
	</xsl:template>
	<xsl:template match="/config/navit/gui[@type!='gtk']">
                <xsl:copy><xsl:copy-of select="@*"/><xsl:attribute name="enabled">no</xsl:attribute></xsl:copy>
                <xsl:copy><xsl:copy-of select="node()"/></xsl:copy>
	</xsl:template>
	<xsl:template match="/config/navit/gui[@type='gtk']">
                <xsl:copy><xsl:copy-of select="@*"/><xsl:attribute name="enabled">yes</xsl:attribute></xsl:copy>
                <xsl:copy><xsl:copy-of select="node()"/></xsl:copy>
	</xsl:template>
	<xsl:template match="@*|node()"><xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy></xsl:template>
</xsl:transform>