Visit Mozilla.org

XPath:Fonctions:contains

Un article de MDC.

Référence XSLT/XPath : Éléments XSLT, Fonctions EXSLT, Fonctions XPath, Axes XPath

Sommaire


La fonction contains détermine si la chaîne passée en premier argument contient la chaîne passée en second argument et retourne le booléen true ou false.

[modifier] Syntaxe

contains( arrosoir , aiguille )

[modifier] Arguments

arrosoir
La chaîne dans laquelle chercher.
aiguille
La chaîne à rechercher dans arrosoir

[modifier] Retour

true si arrosoir contient aiguille. Autrement, false.

[modifier] Définition

XPath 1.0, section 4.2.

[modifier] Support Gecko

Supportée.