我正在设法跳过XSL模板中的值。该值在select=";ID";标签称为";编辑";。我试图跳过Choose when语句中的特定值,但我不确定这是否可能。
<xsl:param name="caption">
<xsl:choose>
<xsl:when test="Description"><xsl:value-of select="Description" /></xsl:when>
<xsl:otherwise><xsl:value-of select="ID" /></xsl:otherwise>
</xsl:choose>
</xsl:param>
如何在上面的逻辑中获得xsl语句来跳过ID中名为Editor的值?
<xsl:param name="caption">
<xsl:choose>
<xsl:when test="Description"><xsl:value-of select="Description" /></xsl:when>
<xsl:otherwise><xsl:value-of select="ID[not(. = 'Editor')]" /></xsl:otherwise>
</xsl:choose>
</xsl:param>
";任何不等于'Editor'
的<ID>
的值">
因此,如果只有一个<ID>
,则选择1或0个节点。