summaryrefslogtreecommitdiff
path: root/navit/xslt/wince.xslt
blob: 1b0c0d2305c0e1e5bcaaae741e06cdb7e6fb930a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?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/vehicle[@enabled='yes']">
		<xsl:copy>
			<xsl:copy-of select="@*[name() != 'gpsd_query']"/>
				<xsl:attribute name="source">wince:COM2:</xsl:attribute>
				<xsl:attribute name="baudrate">4800</xsl:attribute>
			<xsl:apply-templates/>
		</xsl:copy>
	</xsl:template>
	<xsl:template match="@*|node()"><xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy></xsl:template>
</xsl:transform>