--- title: with-param slug: Web/XSLT/with-param tags: - Référence_XSLT translation_of: Web/XSLT/Element/with-param ---

{{ XsltRef() }}

L'élément <xsl:with-param> définit la valeur d'un paramètre à passer à un modèle.

Syntaxe

<xsl:with-param name=NOM select=EXPRESSION>
	MODÈLE
</xsl:with-param>

Attribut obligatoire

name
Définit un nom pour ce paramètre.

Attribut optionnel

select
Définit la valeur du paramètre à l'aide d'une expression XPath. Si l'élément contient un modèle, l'attribut est ignoré.

Type

Sous-instruction, apparaît toujours dans un élément <xsl:apply-templates> ou un élément <xsl:call-template>.

Définition

XSLT 1.0, section 11.6.

Support Gecko

Supporté.

Interwiki Languages Links

{{ languages( { "en": "en/XSLT/with-param", "es": "es/XSLT/with-param", "pl": "pl/XSLT/with-param" } ) }}