2014-09-16 6 views
0

if-condition이 when-block에서 작동하지 않는 이유는 무엇입니까?xslt - when-block에서 when-condition

<xsl:choose> 
     <xsl:when test="type = 'news'"> 
     <xsl:if test="string-length(subtitle) > 0"> 
      <filter_subtitle><i>In <xsl:value-of select="subtitle"/></i></filter_subtitle> 
     </xsl:if> 
     </xsl:when> 
     <xsl:otherwise> 
     <filter_subtitle><xsl:value-of select="subtitle"/></filter_subtitle> 
     </xsl:otherwise> 
    </xsl:choose> 

답변

0
<xsl:when test="type='news' and string-length(subtitle)>0"> 

잘 작동합니다!