我在我的代码中使用了
我尝试了这个方法,但它并不起作用:
谢谢。
<xsl:when>
,我需要测试下面的"when"条件中的2个不同属性的值,即(<xsl:when test="??">
)。请问如何实现?我尝试了这个方法,但它并不起作用:
<xsl:when test="@Attrb1[.!=''] and @Attrb2[.!='']">
另外,这也会出现错误:
<xsl:when test="@Attrb1 !='' and @Attrb2 !=''">
msxml3.dll错误 '80004005'
错误 '80004005'
预期的令牌是'eof',却发现'!='。@Attrb -->!=<--'' and @Attrb2 !=''
代码:
<xsl:when test="Condition1">
<xsl:choose>
<xsl:when test="??">
<xsl:value-of select="somtext1"/> </xsl:when>
<xsl:otherwise>
<xsl:value-of select="somtext2"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
谢谢。