From de033ae6c7fd07a8086c78482c3c5d1b441b0c2f Mon Sep 17 00:00:00 2001
From: Markus Quaritsch <markus.quaritsch@tugraz.at>
Date: Fri, 5 May 2017 09:32:30 +0200
Subject: [PATCH] adapt xslt transform to strip whitespaces of attribute values
 and text nodes

---
 .../VectoHashing/Resources/XSLT/SortInputData.xslt        | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/VectoCommon/VectoHashing/Resources/XSLT/SortInputData.xslt b/VectoCommon/VectoHashing/Resources/XSLT/SortInputData.xslt
index 0f97c0b787..be43862fe3 100644
--- a/VectoCommon/VectoHashing/Resources/XSLT/SortInputData.xslt
+++ b/VectoCommon/VectoHashing/Resources/XSLT/SortInputData.xslt
@@ -5,6 +5,12 @@
 			<xsl:apply-templates select="node()|@*"/>
 		</xsl:copy>
 	</xsl:template>
+	<xsl:template match="@*">
+		<xsl:attribute name="{name()}"><xsl:value-of select="normalize-space(.)"/></xsl:attribute>
+	</xsl:template>
+	<xsl:template match="text()">
+         <xsl:value-of select="normalize-space(.)"/>
+    </xsl:template>
 	<xsl:template match="*[name()='FuelConsumptionMap']">
 		<xsl:copy>
 			<xsl:for-each select="*">
@@ -38,7 +44,7 @@
 				<xsl:apply-templates select="."/>
 			</xsl:for-each>
 		</xsl:copy>
-	</xsl:template>	
+	</xsl:template>
 	<xsl:template match="*[name()='TorqueLimits']">
 		<xsl:copy>
 			<xsl:for-each select="*">
-- 
GitLab