|
@@ -312,7 +312,10 @@
|
|
|
</xsl:choose>
|
|
</xsl:choose>
|
|
|
</xsl:variable>
|
|
</xsl:variable>
|
|
|
<!-- tune max bit-->
|
|
<!-- tune max bit-->
|
|
|
- <xsl:variable name="$bit_max">
|
|
|
|
|
|
|
+ <xsl:variable name="bit_max">
|
|
|
|
|
+ <xsl:variable name="elements_cnt" select="count($EconomicDistanceCut2/EconomicDistanceCut2/distance2[number(@point_count) > number(0) ])"/>
|
|
|
|
|
+ <xsl:variable name="cost_dist_Cnt" select="count($EconomicDistanceCut2/EconomicDistanceCut2/distance2[ ( number(@cost_dist) > number($PE_Price) ) or number(@len) > ( number($PE_Price) div number($Cable_Price) ) ])"/>
|
|
|
|
|
+ <xsl:variable name="bit_max" select="round($len div ( $PE_Price div $Cable_Price ) + $cost_dist_Cnt ) + 1"/>
|
|
|
<xsl:choose>
|
|
<xsl:choose>
|
|
|
<xsl:when test=" number($bit_max) = number(1)">
|
|
<xsl:when test=" number($bit_max) = number(1)">
|
|
|
<xsl:value-of select="2"/>
|
|
<xsl:value-of select="2"/>
|