From 4df823f96a0a2af2d396fd7b4433d8978389e1bf Mon Sep 17 00:00:00 2001
From: Markus Quaritsch <markus.quaritsch@tugraz.at>
Date: Fri, 3 Apr 2020 11:30:19 +0200
Subject: [PATCH] adapting xslt transformation applied before hashing to ignore
 xsi:type attribute

---
 VectoCommon/VectoHashing/Resources/XSLT/SortInputData.xslt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/VectoCommon/VectoHashing/Resources/XSLT/SortInputData.xslt b/VectoCommon/VectoHashing/Resources/XSLT/SortInputData.xslt
index b77bd20244..e4fa358efb 100644
--- a/VectoCommon/VectoHashing/Resources/XSLT/SortInputData.xslt
+++ b/VectoCommon/VectoHashing/Resources/XSLT/SortInputData.xslt
@@ -9,6 +9,7 @@
          (although namespace prefixes are considered part of the signature for the purpose of hashing VECTO data
          it does not provide additional semantics because the file has to validate against a XSD schema anyways 
          and may cause troubles when re-creating the VECTO data from database systems)
+	  - ignore xsi:type attributes
       - normalize the whitespaces of all attribute values and text nodes
          leading and trailing whitespaces are removed
          multiple whitespaces are replaced by a single whitespace
@@ -23,6 +24,7 @@
 			<xsl:apply-templates select="@*|node()"/>
 		</xsl:element>
 	</xsl:template>
+	<xsl:template match="@xsi:type"/>
 	<xsl:template match="@*">
 		<xsl:attribute name="{name()}"><xsl:value-of select="normalize-space(.)"/></xsl:attribute>
 	</xsl:template>
-- 
GitLab