|
|
@@ -405,19 +405,19 @@
|
|
|
</cost>
|
|
|
</xsl:when>
|
|
|
<xsl:when test="@bin_pos=0"><!-- szukamy gdzie ma najblizej i za ile -->
|
|
|
- <xsl:variable name="way_up_id" select="max($cand_to_calc/bp:Path_Point[@bin_pos=1 and @id_path < current()/@id_path ]/number(@id_path))"/>
|
|
|
+ <xsl:variable name="way_up_id" select="max($candidates_merged_with_poprzednie/bp:Path_Point[@bin_pos=1 and @id_path < current()/@id_path ]/number(@id_path))"/>
|
|
|
<xsl:variable name="way_up_len" >
|
|
|
<xsl:choose>
|
|
|
<xsl:when test="$way_up_id">
|
|
|
- <xsl:value-of select="number( current()/@distance) - number($cand_to_calc/bp:Path_Point[@id_path=$way_up_id]/@distance)"/></xsl:when>
|
|
|
+ <xsl:value-of select="number( current()/@distance) - number($candidates_merged_with_poprzednie/bp:Path_Point[@id_path=$way_up_id]/@distance)"/></xsl:when>
|
|
|
<xsl:otherwise><xsl:value-of select="-1"/></xsl:otherwise>
|
|
|
</xsl:choose>
|
|
|
</xsl:variable>
|
|
|
- <xsl:variable name="way_dn_id" select="max($cand_to_calc/bp:Path_Point[@bin_pos=1 and @id_path > current()/@id_path ]/number(@id_path)) " />
|
|
|
+ <xsl:variable name="way_dn_id" select="max($candidates_merged_with_poprzednie/bp:Path_Point[@bin_pos=1 and @id_path > current()/@id_path ]/number(@id_path)) " />
|
|
|
<xsl:variable name="way_dn_len">
|
|
|
<xsl:choose>
|
|
|
<xsl:when test="$way_dn_id">
|
|
|
- <xsl:value-of select=" number($cand_to_calc/bp:Path_Point[@id_path=$way_dn_id]/@distance ) - current()/@distance"/>
|
|
|
+ <xsl:value-of select=" number($candidates_merged_with_poprzednie/bp:Path_Point[@id_path=$way_dn_id]/@distance ) - current()/@distance"/>
|
|
|
</xsl:when>
|
|
|
<xsl:otherwise><xsl:value-of select="-1"/></xsl:otherwise>
|
|
|
</xsl:choose>
|