Remark : if choose sample
1 2 3 4 5 |
<xsl:if test="expression"> ...some output if the expression is true... </xsl:if> |
or and 는 소문자
1 2 3 4 5 6 7 8 9 10 |
<xsl:if test="../@REQUIRED_STEP='3' or ../@REQUIRED_STEP='4' or ../@REQUIRED_STEP='5'"> <!-- 데이타 --> </xsl:if> <xsl:if test="../@REQUIRED_STEP='3' and ../@REQUIRED_STEP='4' and ../@REQUIRED_STEP='5'"> <!-- 데이타 --> </xsl:if> |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<xsl:choose> <xsl:when test="expression"> ... some output ... </xsl:when> <xsl:when test="another expression"> ... some output ... </xsl:when> <xsl:otherwise> ... some output .... </xsl:otherwise> </xsl:choose> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
<xsl:if test="Korean/@Translated=1"> <xsl:variable name="IDX" select="Korean/@IDX" /> <xsl:choose> <xsl:when test="contains($IDX,'(N)')"> <font color='OrangeRed'> <sub> <xsl:value-of select="$IDX"/> </sub> </font> </xsl:when> <xsl:otherwise> <font color='blue'> <sub> <xsl:value-of select="$IDX"/> </sub> </font> </xsl:otherwise> </xsl:choose> <font color='red'> <xsl:value-of select="English"/> </font> </xsl:if> |