summaryrefslogtreecommitdiff
path: root/src/navigation/map-viewer/navit_genivi_mapviewer.xsl
blob: 4f5524698cedf11aa5f7fc6158f8d997ea0b52d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?xml version="1.0"?>
<!-- ************************************************************************
* Component Name: Navit POC
* Author: Martin Schaller <martin.schaller@it-schaller.de>
*
* Copyright (C) 2012, GENIVI Alliance, Inc.
* 
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as 
* published by the Free Software Foundation.
* 
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
* 
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*
************************************************************************ -->
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xi="http://www.w3.org/2001/XInclude">
        <xsl:template match="/config/plugins/plugin[1]" priority="1" >
		<xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy>
		<xsl:text>&#x0A;                </xsl:text>
		<plugin path="../../mapviewer-configuration/.libs/libgenivi_mapviewer_configuration.so" ondemand="no"/>
		<xsl:text>&#x0A;                </xsl:text>
		<plugin path="../../mapviewer-session/.libs/libgenivi_mapviewer_session.so" ondemand="no"/>
		<xsl:text>&#x0A;                </xsl:text>
		<plugin path="../../mapviewer-mapviewercontrol/.libs/libgenivi_mapviewer_mapviewercontrol.so" ondemand="no"/>
        </xsl:template>
        <xsl:template match="/config/plugins/plugin">
		<xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy>
	</xsl:template>
        <xsl:template match="/config/navit">
		<xsl:copy><xsl:attribute name="flags">7</xsl:attribute><xsl:attribute name="tracking">0</xsl:attribute><xsl:apply-templates select="@*|node()"/></xsl:copy>
	</xsl:template>
	<xsl:template match="/config/navit/graphics">
		<xsl:copy><xsl:attribute name="enabled">no</xsl:attribute><xsl:apply-templates select="@*|node()"/></xsl:copy>
	</xsl:template>
	<xsl:template match="/config/navit/gui">
		<xsl:copy><xsl:attribute name="enabled">no</xsl:attribute><xsl:apply-templates select="@*[not(name()='enabled')]|node()"/></xsl:copy>
	</xsl:template>
	<xsl:template match="/config/navit/vehicle[@name='Local GPS']">
		<xsl:copy><xsl:attribute name="source">null:</xsl:attribute><xsl:attribute name="follow">null:</xsl:attribute></xsl:copy>
	</xsl:template>
	<xsl:template match="@*|node()"><xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy></xsl:template>
</xsl:transform>