From 1ad6f3ee0e2d235f7fa698bf597eb50f66895102 Mon Sep 17 00:00:00 2001
From: Markus Quaritsch <markus.quaritsch@tugraz.at>
Date: Mon, 8 May 2017 13:42:48 +0200
Subject: [PATCH] changed XSLT transformation to remove namespaces

---
 .../Resources/XSLT/SortInputData.xslt         | 56 +++++++++----------
 1 file changed, 28 insertions(+), 28 deletions(-)

diff --git a/VectoCommon/VectoHashing/Resources/XSLT/SortInputData.xslt b/VectoCommon/VectoHashing/Resources/XSLT/SortInputData.xslt
index be43862fe3..8b93f41ce5 100644
--- a/VectoCommon/VectoHashing/Resources/XSLT/SortInputData.xslt
+++ b/VectoCommon/VectoHashing/Resources/XSLT/SortInputData.xslt
@@ -1,9 +1,9 @@
 <xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 	<xsl:output omit-xml-declaration="no" indent="yes"/>
-	<xsl:template match="node()|@*">
-		<xsl:copy>
-			<xsl:apply-templates select="node()|@*"/>
-		</xsl:copy>
+	<xsl:template match="*">
+		<xsl:element name="{local-name()}">
+			<xsl:apply-templates select="@*|node()"/>
+		</xsl:element>
 	</xsl:template>
 	<xsl:template match="@*">
 		<xsl:attribute name="{name()}"><xsl:value-of select="normalize-space(.)"/></xsl:attribute>
@@ -11,70 +11,70 @@
 	<xsl:template match="text()">
          <xsl:value-of select="normalize-space(.)"/>
     </xsl:template>
-	<xsl:template match="*[name()='FuelConsumptionMap']">
-		<xsl:copy>
+	<xsl:template match="*[local-name()='FuelConsumptionMap']">
+		<xsl:element name="{local-name()}">
 			<xsl:for-each select="*">
 				<xsl:sort data-type="number" select="@engineSpeed" order="ascending"/>
 				<xsl:sort data-type="number" select="@torque" order="ascending"/>
 				<xsl:apply-templates select="."/>
 			</xsl:for-each>
-		</xsl:copy>
+		</xsl:element>
 	</xsl:template>
-	<xsl:template match="*[name()='FullLoadAndDragCurve']">
-		<xsl:copy>
+	<xsl:template match="*[local-name()='FullLoadAndDragCurve']">
+		<xsl:element name="{local-name()}">
 			<xsl:for-each select="*">
 				<xsl:sort data-type="number" select="@engineSpeed" order="ascending"/>
 				<xsl:apply-templates select="."/>
 			</xsl:for-each>
-		</xsl:copy>
+		</xsl:element>
 	</xsl:template>
-	<xsl:template match="*[name()='TorqueLossMap']">
-		<xsl:copy>
+	<xsl:template match="*[local-name()='TorqueLossMap']">
+		<xsl:element name="{local-name()}">
 			<xsl:for-each select="*">
 				<xsl:sort data-type="number" select="@inputSpeed" order="ascending"/>
 				<xsl:sort data-type="number" select="@inputTorque" order="ascending"/>
 				<xsl:apply-templates select="."/>
 			</xsl:for-each>
-		</xsl:copy>
+		</xsl:element>
 	</xsl:template>
-	<xsl:template match="*[name()='RetarderLossMap']">
-		<xsl:copy>
+	<xsl:template match="*[local-name()='RetarderLossMap']">
+		<xsl:element name="{local-name()}">
 			<xsl:for-each select="*">
 				<xsl:sort data-type="number" select="@retarderSpeed" order="ascending"/>
 				<xsl:apply-templates select="."/>
 			</xsl:for-each>
-		</xsl:copy>
+		</xsl:element>
 	</xsl:template>
-	<xsl:template match="*[name()='TorqueLimits']">
-		<xsl:copy>
+	<xsl:template match="*[local-name()='TorqueLimits']">
+		<xsl:element name="{local-name()}">
 			<xsl:for-each select="*">
 				<xsl:sort data-type="number" select="@gear" order="ascending"/>
 				<xsl:apply-templates select="."/>
 			</xsl:for-each>
-		</xsl:copy>
+		</xsl:element>
 	</xsl:template>
-	<xsl:template match="*[name()='Gears']">
-		<xsl:copy>
+	<xsl:template match="*[local-name()='Gears']">
+		<xsl:element name="{local-name()}">
 			<xsl:for-each select="*">
 				<xsl:sort data-type="number" select="@number" order="ascending"/>
 				<xsl:apply-templates select="."/>
 			</xsl:for-each>
-		</xsl:copy>
+		</xsl:element>
 	</xsl:template>
-	<xsl:template match="*[name()='Characteristics']">
-		<xsl:copy>
+	<xsl:template match="*[local-name()='Characteristics']">
+		<xsl:element name="{local-name()}">
 			<xsl:for-each select="*">
 				<xsl:sort data-type="number" select="@speedRatio" order="ascending"/>
 				<xsl:apply-templates select="."/>
 			</xsl:for-each>
-		</xsl:copy>
+		</xsl:element>
 	</xsl:template>
-	<xsl:template match="*[name()='Axles']">
-		<xsl:copy>
+	<xsl:template match="*[local-name()='Axles']">
+		<xsl:element name="{local-name()}">
 			<xsl:for-each select="*">
 				<xsl:sort data-type="number" select="@axleNumber" order="ascending"/>
 				<xsl:apply-templates select="."/>
 			</xsl:for-each>
-		</xsl:copy>
+		</xsl:element>
 	</xsl:template>
 </xsl:transform>
-- 
GitLab