я создать XSL, как показано ниже:Как использовать переменную в xsl?
<xsl:choose>
<xsl:when test="range_from < 0 and range_to > 5">
<xsl:variable name="markup_03" select="((7 div $total_price_02) * 100)"/>
</xsl:when>
<xsl:when test="range_from < 6 and range_to > 10">
<xsl:variable name="markup_03" select="((5 div $total_price_02) * 100)"/>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="markup_03" select="0"/>
</xsl:otherwise>
</xsl:choose>
<xsl:variable name="total_price_03" select="(($total_price_02 * $markup_03) div 100) + $total_price_02"/>
Я получаю следующее сообщение об ошибке:
A reference to variable or parameter 'markup_03' cannot be resolved. The variable or parameter may not be defined, or it may not be in scope