aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/xpath/functions/substring/index.md
diff options
context:
space:
mode:
Diffstat (limited to 'files/fr/web/xpath/functions/substring/index.md')
-rw-r--r--files/fr/web/xpath/functions/substring/index.md37
1 files changed, 37 insertions, 0 deletions
diff --git a/files/fr/web/xpath/functions/substring/index.md b/files/fr/web/xpath/functions/substring/index.md
new file mode 100644
index 0000000000..29cb112c4e
--- /dev/null
+++ b/files/fr/web/xpath/functions/substring/index.md
@@ -0,0 +1,37 @@
+---
+title: substring
+slug: Web/XPath/Functions/substring
+tags:
+ - Référence_XSLT
+translation_of: Web/XPath/Functions/substring
+original_slug: Web/XPath/Fonctions/substring
+---
+<p>
+{{ XsltRef() }}
+</p><p><br>
+La fonction <code>substring</code> retourne une partie d'une chaîne donnée.
+</p>
+<h3 id="Syntaxe">Syntaxe </h3>
+<pre class="eval">substring( <i>chaîne</i> , <i>début</i> [, <i>longueur</i>] )
+</pre>
+<h3 id="Arguments"> Arguments </h3>
+<dl><dt><code><i>chaîne</i></code> </dt><dd>La chaîne à évaluer.
+</dd></dl>
+<dl><dt><code><i>début</i></code>
+</dt><dd>La position dans la <code><i>chaîne</i></code> où commence la sous-chaîne.
+</dd></dl>
+<dl><dt><code><i>longueur</i></code> (optionnel)
+</dt><dd>La longueur de la sous-chaîne à extraire. S'il est omis, la chaîne retournée contiendra tous les caractères depuis la position <code><i>début</i></code> jusqu'à la fin de la <code><i>chaîne</i></code>.
+</dd></dl>
+<h3 id="Retour"> Retour </h3>
+<p>Une chaîne.
+</p>
+<h3 id="Notes"> Notes </h3>
+<p>Comme pour les autres fonctions XPath, les positions ne sont pas comptées à partir de zéro. Le premier caractère de la chaîne est à la position 1.
+</p>
+<h3 id="D.C3.A9finition"> Définition </h3>
+<p><a href="http://www.w3.org/TR/xpath#function-substring">XPath 1.0, section 4.2</a>.
+</p>
+<h3 id="Support_Gecko"> Support Gecko </h3>
+<p>Supportée.
+</p> \ No newline at end of file