以下のような 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"/>
次のエラーが表示されます。
変数またはパラメーター 'markup_03' への参照を解決できません。変数またはパラメーターが定義されていないか、スコープ内にない可能性があります