0
即使/ Category为空,选择语句在test =“./ Category”中也为正值。XSL选择不起作用
类别值的值为<![CDATA []]>如果为空并且为<![CDATA [some_code]]>如果已满。
看起来像CDATA离开“”的价值或类似的东西。
<xsl:when test="./Category">
<ref type="category"><xsl:value-of select="./Category" /></ref>
</xsl:when>
<xsl:otherwise>
<id_category_default>2</id_category_default>
</xsl:otherwise>
</xsl:choose>