Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit de033ae6 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

adapt xslt transform to strip whitespaces of attribute values and text nodes

parent a76b7405
No related branches found
No related tags found
No related merge requests found
......@@ -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="*">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment