aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/xpath/functions/substring-before
diff options
context:
space:
mode:
authorjulieng <julien.gattelier@gmail.com>2021-11-11 09:00:12 +0100
committerSphinxKnight <SphinxKnight@users.noreply.github.com>2021-11-11 09:11:37 +0100
commitea0377b93b3d290053fda7115929930b8c8d4d25 (patch)
treeb5915b686269d7b0dc4e7b690bb2c64f2e637697 /files/fr/web/xpath/functions/substring-before
parent651ec72d5f391987b970601ab532a2d303b44916 (diff)
downloadtranslated-content-ea0377b93b3d290053fda7115929930b8c8d4d25.tar.gz
translated-content-ea0377b93b3d290053fda7115929930b8c8d4d25.tar.bz2
translated-content-ea0377b93b3d290053fda7115929930b8c8d4d25.zip
convert content to md
Diffstat (limited to 'files/fr/web/xpath/functions/substring-before')
-rw-r--r--files/fr/web/xpath/functions/substring-before/index.md64
1 files changed, 38 insertions, 26 deletions
diff --git a/files/fr/web/xpath/functions/substring-before/index.md b/files/fr/web/xpath/functions/substring-before/index.md
index f9ab5dcf01..0630ae0553 100644
--- a/files/fr/web/xpath/functions/substring-before/index.md
+++ b/files/fr/web/xpath/functions/substring-before/index.md
@@ -6,30 +6,42 @@ tags:
translation_of: Web/XPath/Functions/substring-before
original_slug: Web/XPath/Fonctions/substring-before
---
-<p>
{{ XsltRef() }}
-</p><p><br>
-La fonction <code>substring-before()</code> retourne retourne la partie d'une chaîne donnée précédant une sous-chaîne donnée.
-</p>
-<h3 id="Syntaxe">Syntaxe </h3>
-<pre class="eval">substring-before( <i>bottedefoin</i> , <i>aiguille</i> )
-</pre>
-<h3 id="Arguments"> Arguments </h3>
-<dl><dt><code><i>bottedefoin</i></code>
-</dt><dd>La chaîne à évaluer. Un extrait de cette chaîne sera retourné.
-</dd></dl>
-<dl><dt><code><i>aiguille</i></code>
-</dt><dd>La sous-chaîne à rechercher. Tout le contenu se trouvant avant la première occurrence de <code><i>aiguille</i></code> dans la chaîne <code><i>bottedefoin</i></code> sera retourné.
-</dd></dl>
-<h3 id="Retour"> Retour </h3>
-<p>Une chaîne.
-</p>
-<h3 id="Exemples"> Exemples </h3>
-<table class="standard-table"> <tbody><tr> <th>XPath Example</th> <th>Output</th> </tr> <tr> <td><code>&lt;xsl:value-of select="substring-before('1999/04/01','/')" /&gt;</code></td> <td><code>1999</code></td> </tr> <tr> <td><code>substring-before('aa-bb','-')</code></td> <td><code>aa</code></td> </tr> <tr> <td><code>substring-before('aa-bb','a')</code></td> <td><code>(empty string)</code></td> </tr> <tr> <td><code>substring-before('aa-bb','b')</code></td> <td><code>aa-</code></td> </tr> <tr> <td><code>substring-before('aa-bb','q')</code></td> <td>(empty string)</td> </tr>
-</tbody></table>
-<h3 id="D.C3.A9finition"> Définition </h3>
-<p><a href="http://www.w3.org/TR/xpath#function-substring-before">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
+
+La fonction `substring-before()` retourne retourne la partie d'une chaîne donnée précédant une sous-chaîne donnée.
+
+### Syntaxe
+
+ substring-before( bottedefoin , aiguille )
+
+### Arguments
+
+- `bottedefoin`
+ - : La chaîne à évaluer. Un extrait de cette chaîne sera retourné.
+
+<!---->
+
+- `aiguille`
+ - : La sous-chaîne à rechercher. Tout le contenu se trouvant avant la première occurrence de `aiguille` dans la chaîne `bottedefoin` sera retourné.
+
+### Retour
+
+Une chaîne.
+
+### Exemples
+
+| XPath Example | Output |
+| -------------------------------------------------------------- | ---------------- |
+| `<xsl:value-of select="substring-before('1999/04/01','/')" />` | `1999` |
+| `substring-before('aa-bb','-')` | `aa` |
+| `substring-before('aa-bb','a')` | `(empty string)` |
+| `substring-before('aa-bb','b')` | `aa-` |
+| `substring-before('aa-bb','q')` | (empty string) |
+
+### Définition
+
+[XPath 1.0, section 4.2](http://www.w3.org/TR/xpath#function-substring-before).
+
+### Support Gecko
+
+Supportée.