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

Skip to content
Snippets Groups Projects
Commit d08526f9 authored by Franz KOBER josef's avatar Franz KOBER josef
Browse files

added alternative sort method of DragCurve with gear attribute

parent 6b44cbf0
No related branches found
No related tags found
No related merge requests found
......@@ -126,7 +126,7 @@
</xsl:for-each>
</xsl:element>
</xsl:template>
<xsl:template match="*[local-name()='DragCurve']">
<xsl:template name="DragCurveTemplate" match="*[local-name()='DragCurve']">
<xsl:element name="{local-name()}">
<xsl:apply-templates select="@*"/>
<xsl:for-each select="*">
......@@ -176,10 +176,19 @@
</xsl:if>
</xsl:template>
<xsl:template match="*[local-name()='DragCurve' and @gear]">
<xsl:if test="count(preceding-sibling::*[local-name()='DragCurve']) > (count(//*[local-name()='DragCurve']) - 2)">
<xsl:for-each select="../*[local-name()='DragCurve']">
<xsl:sort data-type="number" select="@gear" order="ascending"/>
<xsl:call-template name="DragCurveTemplate"/>
</xsl:for-each>
</xsl:if>
</xsl:template>
<!--
<xsl:for-each select="../*[local-name()='VoltageLevel' and ./*[local-name() = 'Voltage']]">
<xsl:sort data-type="number" select="./*[local-name() = 'Voltage']/text()" order="ascending"/>
<xsl:element name="{local-name()}">
......
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