Visit Mozilla.org

XSLT:otherwise

z Mozilla Developer Center, polskiego centrum programistów Mozilli.

Dokumentacja XSLT/XPath: Elementy XSLT, Funkcje EXSLT, Funkcje XPath, Osie XPath

Spis treści

Element <xsl:otherwise> jest używany do zdefiniowania czynności, która jest wykonywana, gdy żaden z warunków <xsl:when> nie ma zastosowania. Element jest podobny do instrukcji else lub default znanej z innych języków programowania.

[edytuj] Składnia

<xsl:otherwise>
	SZABLON
</xsl:otherwise>

[edytuj] Wymagane atrybuty

Brak.

[edytuj] Opcjonalne atrybuty

Brak.

[edytuj] Typ

Podinstrukcja, musi pojawić się wewnątrz szablonu jako ostatnie dziecko elementu <xsl:choose>.

[edytuj] Definicja

XSLT, sekcja 9.2

[edytuj] Gecko

Obsługuje.