<xsl:otherwise>

<xsl:otherwise> 元素用於定義當所有 <xsl:when> 條件都不滿足時應採取的操作。它類似於其他程式語言中的 elsedefault 情況。

語法

xml
<xsl:otherwise>
  TEMPLATE
</xsl:otherwise>

必需屬性

無。

可選屬性

無。

型別

子指令,必須作為 <xsl:choose> 元素的最後一個子元素出現,並且必須位於模板內部。

規範

XSLT, Section 9.2

Gecko 支援情況

支援。