Fix:xslt:Make espeak default on windows
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Thu, 29 Oct 2009 12:37:24 +0000 (12:37 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Thu, 29 Oct 2009 12:37:24 +0000 (12:37 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk/navit@2704 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/xslt/speech_espeak.xslt [new file with mode: 0644]
navit/xslt/windows.xslt

diff --git a/navit/xslt/speech_espeak.xslt b/navit/xslt/speech_espeak.xslt
new file mode 100644 (file)
index 0000000..b701f76
--- /dev/null
@@ -0,0 +1,6 @@
+<?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:template match="/config/navit/speech">
+                <xsl:copy><xsl:copy-of select="@*[not(name()='data')]"/><xsl:attribute name="type">espeak</xsl:attribute><xsl:apply-templates/></xsl:copy>
+       </xsl:template>
+</xsl:transform>
index 48f8528..d14f5cc 100644 (file)
@@ -4,6 +4,7 @@
         <xsl:include href="samplemap.xslt"/>
         <xsl:include href="gui_internal.xslt"/>
         <xsl:include href="osd_enable_zoom.xslt"/>
+        <xsl:include href="speech_espeak.xslt"/>
         <xsl:template match="/config/navit/graphics">
                 <graphics type="win32" />
         </xsl:template>