aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/xslt/otherwise/index.html
blob: d39df0a592e76e1f268f3e058097d67e5c9f5c4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
title: otherwise
slug: Web/XSLT/otherwise
tags:
  - Référence_XSLT
translation_of: Web/XSLT/Element/otherwise
---
<p>
{{ XsltRef() }}
</p><p>L'élément <code>&lt;xsl:otherwise&gt;</code> est utilisé pour définir une action qui doit être exécutée lorsqu'aucune condition <code>&lt;xsl:when&gt;</code> ne s'applique. Elle est comparable aux instructions <code>else</code> ou <code>default</code> d'autres langages de programmation.
</p>
<h3 id="Syntaxe" name="Syntaxe"> Syntaxe </h3>
<pre>&lt;xsl:otherwise&gt;
	MODÈLE
&lt;/xsl:otherwise&gt;</pre> <h3 id="Attributs_obligatoires" name="Attributs_obligatoires"> Attributs obligatoires </h3>
<p>Aucun.
</p>
<h3 id="Attributs_optionnels" name="Attributs_optionnels"> Attributs optionnels </h3>
<p>Aucun.
</p>
<h3 id="Type" name="Type"> Type </h3>
<p>Sous-instruction, doit apparaître comme le dernier enfant d'un élément <code>&lt;xsl:choose&gt;</code>, dans un modèle.
</p>
<h3 id="D.C3.A9finition" name="D.C3.A9finition"> Définition </h3>
<p><a href="http://www.w3.org/TR/xslt#section-Conditional-Processing-with-xsl:choose" class="external">XSLT 1.0, section 9.2</a>.
</p>
<h3 id="Support_Gecko" name="Support_Gecko"> Support Gecko </h3>
<p>Supporté.
</p><p><span class="comment">Interwiki Languages Links</span>
</p>{{ languages( { "en": "en/XSLT/otherwise", "es": "es/XSLT/otherwise", "pl": "pl/XSLT/otherwise" } ) }}