blob: c3a188aef0f4bb04f5eec3c6c021f25ba9930d29 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
<?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>
 </xsl:text>
<plugin path="../../navigationcore-configuration/.libs/libgenivi_navigationcore_configuration.so" ondemand="no"/>
<xsl:text>
 </xsl:text>
<plugin path="../../navigationcore-locationinput/.libs/libgenivi_navigationcore_locationinput.so" ondemand="no"/>
<xsl:text>
 </xsl:text>
<plugin path="../../navigationcore-routing/.libs/libgenivi_navigationcore_routing.so" ondemand="no"/>
<xsl:text>
 </xsl:text>
<plugin path="../../navigationcore-session/.libs/libgenivi_navigationcore_session.so" ondemand="no"/>
<xsl:text>
 </xsl:text>
<plugin path="../../navigationcore-guidance/.libs/libgenivi_navigationcore_guidance.so" ondemand="no"/>
<xsl:text>
 </xsl:text>
<plugin path="../../navigationcore-mapmatchedposition/.libs/libgenivi_navigationcore_mapmatchedposition.so" ondemand="no"/>
<xsl:text>
 </xsl:text>
<plugin path="../../navigationcore-enhancedposition/.libs/libgenivi_positioning_enhancedposition.so" ondemand="no"/>
<xsl:text>
 </xsl:text>
<plugin path="../../poi-cam/.libs/libgenivi_poiservice_cam_navit.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">3</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="enabled">no</xsl:attribute><xsl:apply-templates select="@*[not(name()='enabled')]|node()"/></xsl:copy>
</xsl:template>
<xsl:template match="/config/navit/vehicle[@name='Demo']">
<vehicle name="EnhancedPosition" profilename="car" active="yes" source="enhancedposition://"/>
<xsl:text>
 </xsl:text>
<xsl:copy><xsl:attribute name="active">no</xsl:attribute><xsl:apply-templates select="@*[not(name()='enabled' or name()='active')]|node()"/></xsl:copy>
</xsl:template>
<xsl:template match="@*|node()"><xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy></xsl:template>
</xsl:transform>
|