在我的代码中使用了<xsl:when>。我需要在下面的“when”条件中测试两个不同属性的值,即(<xsl:when test="??">
我该怎么做?
我试过,但没用:

<xsl:when test="@Attrb1[.!=''] and @Attrb2[.!='']">

此外,这也会产生一个错误:
<xsl:when test="@Attrb1 !='' and @Attrb2 !=''">

msxml3.dll错误“80004005”
错误'80004005'
应为标记'eof'found'!=。@阿特布- >!=代码:
<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>

谢谢。

最佳答案

代替使用:

<xsl:when test="@Attrb2!='' and @Attrb2!=''">

09-16 15:27