Technologies XML / XSLT / Fonctions XSLT et XPath

(Extrait de « XSLT 2.0 & XPath 2.0" de Frank Bongers, chapitre 5.)

XPath 2.0 introduit un nouveau groupe de fonctions permettant d’examiner et de manipuler les chaînes à l’aide d’expressions régulières.

   

Nom

Origine

Utilisation

fn:matches()

XPath 2.0

Tester la correspondance à un motif

fn:replace()

XPath 2.0

Remplacer à l’aide de motifs

fn:tokenize()

XPath 2.0

Découper une chaîne d’entrée à l’aide de motifs

Tableau : fonctions de la catégorie chaînes — recherche de motifs.

   

haut de page