From 651ec72d5f391987b970601ab532a2d303b44916 Mon Sep 17 00:00:00 2001 From: julieng Date: Thu, 11 Nov 2021 09:00:03 +0100 Subject: move *.html to *.md --- files/fr/web/xpath/functions/boolean/index.html | 35 -------------- files/fr/web/xpath/functions/boolean/index.md | 35 ++++++++++++++ files/fr/web/xpath/functions/ceiling/index.html | 33 ------------- files/fr/web/xpath/functions/ceiling/index.md | 33 +++++++++++++ files/fr/web/xpath/functions/concat/index.html | 29 ------------ files/fr/web/xpath/functions/concat/index.md | 29 ++++++++++++ files/fr/web/xpath/functions/contains/index.html | 39 --------------- files/fr/web/xpath/functions/contains/index.md | 39 +++++++++++++++ files/fr/web/xpath/functions/count/index.html | 29 ------------ files/fr/web/xpath/functions/count/index.md | 29 ++++++++++++ files/fr/web/xpath/functions/current/index.html | 32 ------------- files/fr/web/xpath/functions/current/index.md | 32 +++++++++++++ files/fr/web/xpath/functions/document/index.html | 43 ----------------- files/fr/web/xpath/functions/document/index.md | 43 +++++++++++++++++ .../xpath/functions/element-available/index.html | 29 ------------ .../web/xpath/functions/element-available/index.md | 29 ++++++++++++ files/fr/web/xpath/functions/false/index.html | 32 ------------- files/fr/web/xpath/functions/false/index.md | 32 +++++++++++++ files/fr/web/xpath/functions/floor/index.html | 37 --------------- files/fr/web/xpath/functions/floor/index.md | 37 +++++++++++++++ .../web/xpath/functions/format-number/index.html | 38 --------------- .../fr/web/xpath/functions/format-number/index.md | 38 +++++++++++++++ .../xpath/functions/function-available/index.html | 29 ------------ .../xpath/functions/function-available/index.md | 29 ++++++++++++ .../fr/web/xpath/functions/generate-id/index.html | 36 -------------- files/fr/web/xpath/functions/generate-id/index.md | 36 ++++++++++++++ files/fr/web/xpath/functions/id/index.html | 35 -------------- files/fr/web/xpath/functions/id/index.md | 35 ++++++++++++++ files/fr/web/xpath/functions/index.html | 50 -------------------- files/fr/web/xpath/functions/index.md | 50 ++++++++++++++++++++ files/fr/web/xpath/functions/key/index.html | 37 --------------- files/fr/web/xpath/functions/key/index.md | 37 +++++++++++++++ files/fr/web/xpath/functions/lang/index.html | 53 --------------------- files/fr/web/xpath/functions/lang/index.md | 53 +++++++++++++++++++++ files/fr/web/xpath/functions/last/index.html | 28 ----------- files/fr/web/xpath/functions/last/index.md | 28 +++++++++++ files/fr/web/xpath/functions/local-name/index.html | 32 ------------- files/fr/web/xpath/functions/local-name/index.md | 32 +++++++++++++ files/fr/web/xpath/functions/name/index.html | 32 ------------- files/fr/web/xpath/functions/name/index.md | 32 +++++++++++++ .../web/xpath/functions/namespace-uri/index.html | 34 ------------- .../fr/web/xpath/functions/namespace-uri/index.md | 34 +++++++++++++ .../web/xpath/functions/normalize-space/index.html | 36 -------------- .../web/xpath/functions/normalize-space/index.md | 36 ++++++++++++++ files/fr/web/xpath/functions/not/index.html | 32 ------------- files/fr/web/xpath/functions/not/index.md | 32 +++++++++++++ files/fr/web/xpath/functions/number/index.html | 32 ------------- files/fr/web/xpath/functions/number/index.md | 32 +++++++++++++ files/fr/web/xpath/functions/position/index.html | 52 -------------------- files/fr/web/xpath/functions/position/index.md | 52 ++++++++++++++++++++ files/fr/web/xpath/functions/round/index.html | 32 ------------- files/fr/web/xpath/functions/round/index.md | 32 +++++++++++++ .../fr/web/xpath/functions/starts-with/index.html | 22 --------- files/fr/web/xpath/functions/starts-with/index.md | 22 +++++++++ .../web/xpath/functions/string-length/index.html | 29 ------------ .../fr/web/xpath/functions/string-length/index.md | 29 ++++++++++++ files/fr/web/xpath/functions/string/index.html | 40 ---------------- files/fr/web/xpath/functions/string/index.md | 40 ++++++++++++++++ .../web/xpath/functions/substring-after/index.html | 35 -------------- .../web/xpath/functions/substring-after/index.md | 35 ++++++++++++++ .../xpath/functions/substring-before/index.html | 35 -------------- .../web/xpath/functions/substring-before/index.md | 35 ++++++++++++++ files/fr/web/xpath/functions/substring/index.html | 37 --------------- files/fr/web/xpath/functions/substring/index.md | 37 +++++++++++++++ files/fr/web/xpath/functions/sum/index.html | 32 ------------- files/fr/web/xpath/functions/sum/index.md | 32 +++++++++++++ .../web/xpath/functions/system-property/index.html | 34 ------------- .../web/xpath/functions/system-property/index.md | 34 +++++++++++++ files/fr/web/xpath/functions/translate/index.html | 55 ---------------------- files/fr/web/xpath/functions/translate/index.md | 55 ++++++++++++++++++++++ files/fr/web/xpath/functions/true/index.html | 25 ---------- files/fr/web/xpath/functions/true/index.md | 25 ++++++++++ .../xpath/functions/unparsed-entity-url/index.html | 29 ------------ .../xpath/functions/unparsed-entity-url/index.md | 29 ++++++++++++ 74 files changed, 1299 insertions(+), 1299 deletions(-) delete mode 100644 files/fr/web/xpath/functions/boolean/index.html create mode 100644 files/fr/web/xpath/functions/boolean/index.md delete mode 100644 files/fr/web/xpath/functions/ceiling/index.html create mode 100644 files/fr/web/xpath/functions/ceiling/index.md delete mode 100644 files/fr/web/xpath/functions/concat/index.html create mode 100644 files/fr/web/xpath/functions/concat/index.md delete mode 100644 files/fr/web/xpath/functions/contains/index.html create mode 100644 files/fr/web/xpath/functions/contains/index.md delete mode 100644 files/fr/web/xpath/functions/count/index.html create mode 100644 files/fr/web/xpath/functions/count/index.md delete mode 100644 files/fr/web/xpath/functions/current/index.html create mode 100644 files/fr/web/xpath/functions/current/index.md delete mode 100644 files/fr/web/xpath/functions/document/index.html create mode 100644 files/fr/web/xpath/functions/document/index.md delete mode 100644 files/fr/web/xpath/functions/element-available/index.html create mode 100644 files/fr/web/xpath/functions/element-available/index.md delete mode 100644 files/fr/web/xpath/functions/false/index.html create mode 100644 files/fr/web/xpath/functions/false/index.md delete mode 100644 files/fr/web/xpath/functions/floor/index.html create mode 100644 files/fr/web/xpath/functions/floor/index.md delete mode 100644 files/fr/web/xpath/functions/format-number/index.html create mode 100644 files/fr/web/xpath/functions/format-number/index.md delete mode 100644 files/fr/web/xpath/functions/function-available/index.html create mode 100644 files/fr/web/xpath/functions/function-available/index.md delete mode 100644 files/fr/web/xpath/functions/generate-id/index.html create mode 100644 files/fr/web/xpath/functions/generate-id/index.md delete mode 100644 files/fr/web/xpath/functions/id/index.html create mode 100644 files/fr/web/xpath/functions/id/index.md delete mode 100644 files/fr/web/xpath/functions/index.html create mode 100644 files/fr/web/xpath/functions/index.md delete mode 100644 files/fr/web/xpath/functions/key/index.html create mode 100644 files/fr/web/xpath/functions/key/index.md delete mode 100644 files/fr/web/xpath/functions/lang/index.html create mode 100644 files/fr/web/xpath/functions/lang/index.md delete mode 100644 files/fr/web/xpath/functions/last/index.html create mode 100644 files/fr/web/xpath/functions/last/index.md delete mode 100644 files/fr/web/xpath/functions/local-name/index.html create mode 100644 files/fr/web/xpath/functions/local-name/index.md delete mode 100644 files/fr/web/xpath/functions/name/index.html create mode 100644 files/fr/web/xpath/functions/name/index.md delete mode 100644 files/fr/web/xpath/functions/namespace-uri/index.html create mode 100644 files/fr/web/xpath/functions/namespace-uri/index.md delete mode 100644 files/fr/web/xpath/functions/normalize-space/index.html create mode 100644 files/fr/web/xpath/functions/normalize-space/index.md delete mode 100644 files/fr/web/xpath/functions/not/index.html create mode 100644 files/fr/web/xpath/functions/not/index.md delete mode 100644 files/fr/web/xpath/functions/number/index.html create mode 100644 files/fr/web/xpath/functions/number/index.md delete mode 100644 files/fr/web/xpath/functions/position/index.html create mode 100644 files/fr/web/xpath/functions/position/index.md delete mode 100644 files/fr/web/xpath/functions/round/index.html create mode 100644 files/fr/web/xpath/functions/round/index.md delete mode 100644 files/fr/web/xpath/functions/starts-with/index.html create mode 100644 files/fr/web/xpath/functions/starts-with/index.md delete mode 100644 files/fr/web/xpath/functions/string-length/index.html create mode 100644 files/fr/web/xpath/functions/string-length/index.md delete mode 100644 files/fr/web/xpath/functions/string/index.html create mode 100644 files/fr/web/xpath/functions/string/index.md delete mode 100644 files/fr/web/xpath/functions/substring-after/index.html create mode 100644 files/fr/web/xpath/functions/substring-after/index.md delete mode 100644 files/fr/web/xpath/functions/substring-before/index.html create mode 100644 files/fr/web/xpath/functions/substring-before/index.md delete mode 100644 files/fr/web/xpath/functions/substring/index.html create mode 100644 files/fr/web/xpath/functions/substring/index.md delete mode 100644 files/fr/web/xpath/functions/sum/index.html create mode 100644 files/fr/web/xpath/functions/sum/index.md delete mode 100644 files/fr/web/xpath/functions/system-property/index.html create mode 100644 files/fr/web/xpath/functions/system-property/index.md delete mode 100644 files/fr/web/xpath/functions/translate/index.html create mode 100644 files/fr/web/xpath/functions/translate/index.md delete mode 100644 files/fr/web/xpath/functions/true/index.html create mode 100644 files/fr/web/xpath/functions/true/index.md delete mode 100644 files/fr/web/xpath/functions/unparsed-entity-url/index.html create mode 100644 files/fr/web/xpath/functions/unparsed-entity-url/index.md (limited to 'files/fr/web/xpath/functions') diff --git a/files/fr/web/xpath/functions/boolean/index.html b/files/fr/web/xpath/functions/boolean/index.html deleted file mode 100644 index 92e3b60b73..0000000000 --- a/files/fr/web/xpath/functions/boolean/index.html +++ /dev/null @@ -1,35 +0,0 @@ ---- -title: boolean -slug: Web/XPath/Functions/boolean -tags: - - Référence_XSLT -translation_of: Web/XPath/Functions/boolean -original_slug: Web/XPath/Fonctions/boolean ---- -

-{{ XsltRef() }} -


-la fonction boolean évalue une expression et retourne true ou false. -

-

Syntaxe

-
boolean( expression )
-
-

Arguments

-
expression -
L'expression à évaluer. L'expression peut faire référence à des nombres, des ensembles de nœuds, comme à des valeurs booléennes. -
-

Retour

-

La valeur booléenne true ou false en fonction de l'évaluation de expression. -

-

Notes

- -

Définition

-

XPath 1.0, section 4.3. -

-

Support Gecko

-

Supportée. -

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/boolean/index.md b/files/fr/web/xpath/functions/boolean/index.md new file mode 100644 index 0000000000..92e3b60b73 --- /dev/null +++ b/files/fr/web/xpath/functions/boolean/index.md @@ -0,0 +1,35 @@ +--- +title: boolean +slug: Web/XPath/Functions/boolean +tags: + - Référence_XSLT +translation_of: Web/XPath/Functions/boolean +original_slug: Web/XPath/Fonctions/boolean +--- +

+{{ XsltRef() }} +


+la fonction boolean évalue une expression et retourne true ou false. +

+

Syntaxe

+
boolean( expression )
+
+

Arguments

+
expression +
L'expression à évaluer. L'expression peut faire référence à des nombres, des ensembles de nœuds, comme à des valeurs booléennes. +
+

Retour

+

La valeur booléenne true ou false en fonction de l'évaluation de expression. +

+

Notes

+ +

Définition

+

XPath 1.0, section 4.3. +

+

Support Gecko

+

Supportée. +

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/ceiling/index.html b/files/fr/web/xpath/functions/ceiling/index.html deleted file mode 100644 index d7bf6f388f..0000000000 --- a/files/fr/web/xpath/functions/ceiling/index.html +++ /dev/null @@ -1,33 +0,0 @@ ---- -title: ceiling -slug: Web/XPath/Functions/ceiling -tags: - - Référence_XSLT -translation_of: Web/XPath/Functions/ceiling -original_slug: Web/XPath/Fonctions/ceiling ---- -

-{{ XsltRef() }} -


-La fonction ceiling évalue un nombre décimal et retourne le plus petit nombre entier supérieur ou égal au nombre évalué. -

-

Syntaxe

-
ceiling( nombre )
-
-

Arguments

-
nombre -
Le nombre décimal à évaluer. -
-

Retour

-

Le plus petit entier supérieur ou égal à nombre. -

Par exemple : -

-
ceiling (5.2) = 6
-ceiling (-5.2) = -5 -
-

Définition

-

XPath 1.0, section 4.4. -

-

Support Gecko

-

Supportée. -

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/ceiling/index.md b/files/fr/web/xpath/functions/ceiling/index.md new file mode 100644 index 0000000000..d7bf6f388f --- /dev/null +++ b/files/fr/web/xpath/functions/ceiling/index.md @@ -0,0 +1,33 @@ +--- +title: ceiling +slug: Web/XPath/Functions/ceiling +tags: + - Référence_XSLT +translation_of: Web/XPath/Functions/ceiling +original_slug: Web/XPath/Fonctions/ceiling +--- +

+{{ XsltRef() }} +


+La fonction ceiling évalue un nombre décimal et retourne le plus petit nombre entier supérieur ou égal au nombre évalué. +

+

Syntaxe

+
ceiling( nombre )
+
+

Arguments

+
nombre +
Le nombre décimal à évaluer. +
+

Retour

+

Le plus petit entier supérieur ou égal à nombre. +

Par exemple : +

+
ceiling (5.2) = 6
+ceiling (-5.2) = -5 +
+

Définition

+

XPath 1.0, section 4.4. +

+

Support Gecko

+

Supportée. +

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/concat/index.html b/files/fr/web/xpath/functions/concat/index.html deleted file mode 100644 index 7ee8eeae00..0000000000 --- a/files/fr/web/xpath/functions/concat/index.html +++ /dev/null @@ -1,29 +0,0 @@ ---- -title: concat -slug: Web/XPath/Functions/concat -tags: - - Référence_XSLT -translation_of: Web/XPath/Functions/concat -original_slug: Web/XPath/Fonctions/concat ---- -

-{{ XsltRef() }} -


-La fonction concat concatène deux ou plusieurs chaînes et retourne la chaîne résultante. -

-

Syntaxe

-
concat( chaîne1 , chaîne2 [, chaînen]* )
-
-

Arguments

-
chaînen -
Cette fonction accepte deux arguments ou plus. Chacun est une chaîne. -
-

Retour

-

Une chaîne unique, résultat de la concaténation des chaînes passées en arguments à la fonction. -

-

Définition

-

XPath 1.0, section 4.2. -

-

Support Gecko

-

Supportée. -

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/concat/index.md b/files/fr/web/xpath/functions/concat/index.md new file mode 100644 index 0000000000..7ee8eeae00 --- /dev/null +++ b/files/fr/web/xpath/functions/concat/index.md @@ -0,0 +1,29 @@ +--- +title: concat +slug: Web/XPath/Functions/concat +tags: + - Référence_XSLT +translation_of: Web/XPath/Functions/concat +original_slug: Web/XPath/Fonctions/concat +--- +

+{{ XsltRef() }} +


+La fonction concat concatène deux ou plusieurs chaînes et retourne la chaîne résultante. +

+

Syntaxe

+
concat( chaîne1 , chaîne2 [, chaînen]* )
+
+

Arguments

+
chaînen +
Cette fonction accepte deux arguments ou plus. Chacun est une chaîne. +
+

Retour

+

Une chaîne unique, résultat de la concaténation des chaînes passées en arguments à la fonction. +

+

Définition

+

XPath 1.0, section 4.2. +

+

Support Gecko

+

Supportée. +

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/contains/index.html b/files/fr/web/xpath/functions/contains/index.html deleted file mode 100644 index 15eb0239d7..0000000000 --- a/files/fr/web/xpath/functions/contains/index.html +++ /dev/null @@ -1,39 +0,0 @@ ---- -title: contains -slug: Web/XPath/Functions/contains -translation_of: Web/XPath/Functions/contains -original_slug: Web/XPath/Fonctions/contains ---- -

{{ XsltRef() }}

- -


- 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.

- -

Syntaxe

- -
contains( meule , aiguille )
-
- -

Arguments

- -
-
meule
-
La chaîne dans laquelle chercher.
-
- -
-
aiguille
-
La chaîne à rechercher dans meule
-
- -

Retour

- -

true si meule contient aiguille. Autrement, false.

- -

Définition

- -

XPath 1.0, section 4.2.

- -

Support Gecko

- -

Supportée.

diff --git a/files/fr/web/xpath/functions/contains/index.md b/files/fr/web/xpath/functions/contains/index.md new file mode 100644 index 0000000000..15eb0239d7 --- /dev/null +++ b/files/fr/web/xpath/functions/contains/index.md @@ -0,0 +1,39 @@ +--- +title: contains +slug: Web/XPath/Functions/contains +translation_of: Web/XPath/Functions/contains +original_slug: Web/XPath/Fonctions/contains +--- +

{{ XsltRef() }}

+ +


+ 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.

+ +

Syntaxe

+ +
contains( meule , aiguille )
+
+ +

Arguments

+ +
+
meule
+
La chaîne dans laquelle chercher.
+
+ +
+
aiguille
+
La chaîne à rechercher dans meule
+
+ +

Retour

+ +

true si meule contient aiguille. Autrement, false.

+ +

Définition

+ +

XPath 1.0, section 4.2.

+ +

Support Gecko

+ +

Supportée.

diff --git a/files/fr/web/xpath/functions/count/index.html b/files/fr/web/xpath/functions/count/index.html deleted file mode 100644 index 3db718509a..0000000000 --- a/files/fr/web/xpath/functions/count/index.html +++ /dev/null @@ -1,29 +0,0 @@ ---- -title: count -slug: Web/XPath/Functions/count -tags: - - Référence_XSLT -translation_of: Web/XPath/Functions/count -original_slug: Web/XPath/Fonctions/count ---- -

-{{ XsltRef() }} -


-La fonction count compte le nombre de nœuds dans un ensemble de nœuds et retourne un entier. -

-

Syntaxe

-
count( ensemble-de-nœuds )
-
-

Arguments

-
ensemble-de-nœuds -
L'ensemble de nœuds à compter. -
-

Retour

-

Un entier représentant le nombre de nœuds contenus dans l'ensemble. -

-

Définition

-

1.0, section 4.1. -

-

Support Gecko

-

Supportée. -

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/count/index.md b/files/fr/web/xpath/functions/count/index.md new file mode 100644 index 0000000000..3db718509a --- /dev/null +++ b/files/fr/web/xpath/functions/count/index.md @@ -0,0 +1,29 @@ +--- +title: count +slug: Web/XPath/Functions/count +tags: + - Référence_XSLT +translation_of: Web/XPath/Functions/count +original_slug: Web/XPath/Fonctions/count +--- +

+{{ XsltRef() }} +


+La fonction count compte le nombre de nœuds dans un ensemble de nœuds et retourne un entier. +

+

Syntaxe

+
count( ensemble-de-nœuds )
+
+

Arguments

+
ensemble-de-nœuds +
L'ensemble de nœuds à compter. +
+

Retour

+

Un entier représentant le nombre de nœuds contenus dans l'ensemble. +

+

Définition

+

1.0, section 4.1. +

+

Support Gecko

+

Supportée. +

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/current/index.html b/files/fr/web/xpath/functions/current/index.html deleted file mode 100644 index 14543f6d1f..0000000000 --- a/files/fr/web/xpath/functions/current/index.html +++ /dev/null @@ -1,32 +0,0 @@ ---- -title: current -slug: Web/XPath/Functions/current -tags: - - Référence_XSLT -translation_of: Web/XPath/Functions/current -original_slug: Web/XPath/Fonctions/current ---- -

-{{ XsltRef() }} -

La fonction current peut être utilisée pour obtenir le nœud courant dans une instruction XSLT. -

-

Syntaxe

-
current()
-
-

Retour

-

Un ensemble de nœuds contenant uniquement le nœud courant. -

-

Notes

-

Cette fonction est un ajout à XPath spécifique à XSLT. Elle ne fait pas partie de la bibliothèque de fonctions XPath core. -

Le nœud courant est toujours identique au nœud de contexte. Les deux exemples suivants sont sémantiquement équivalents : -

-
<xsl:value-of select="current()"/>
-
-
<xsl:value-of select="."/>
-
-

Définition

-

XSLT 1.0, section 12.4. -

-

Support Gecko

-

Supportée. -

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/current/index.md b/files/fr/web/xpath/functions/current/index.md new file mode 100644 index 0000000000..14543f6d1f --- /dev/null +++ b/files/fr/web/xpath/functions/current/index.md @@ -0,0 +1,32 @@ +--- +title: current +slug: Web/XPath/Functions/current +tags: + - Référence_XSLT +translation_of: Web/XPath/Functions/current +original_slug: Web/XPath/Fonctions/current +--- +

+{{ XsltRef() }} +

La fonction current peut être utilisée pour obtenir le nœud courant dans une instruction XSLT. +

+

Syntaxe

+
current()
+
+

Retour

+

Un ensemble de nœuds contenant uniquement le nœud courant. +

+

Notes

+

Cette fonction est un ajout à XPath spécifique à XSLT. Elle ne fait pas partie de la bibliothèque de fonctions XPath core. +

Le nœud courant est toujours identique au nœud de contexte. Les deux exemples suivants sont sémantiquement équivalents : +

+
<xsl:value-of select="current()"/>
+
+
<xsl:value-of select="."/>
+
+

Définition

+

XSLT 1.0, section 12.4. +

+

Support Gecko

+

Supportée. +

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/document/index.html b/files/fr/web/xpath/functions/document/index.html deleted file mode 100644 index 3f1bb98b80..0000000000 --- a/files/fr/web/xpath/functions/document/index.html +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: document -slug: Web/XPath/Functions/document -tags: - - Référence_XSLT -translation_of: Web/XPath/Functions/document -original_slug: Web/XPath/Fonctions/document ---- -

-{{ XsltRef() }} -


-La fonction document recherche un ensemble de nœuds dans un ou des documents externes et retourne l'ensemble de nœuds résultant. -

-

Syntaxe

-
document( URI [, ensemble-de-nœuds] )
-
-

Arguments

-
URI -
URI absolue ou relative du document à récupérer. L'URI peut également contenir un identifiant de fragment. -
-
ensemble-de-nœuds (optionnel) -
Une expression pointant vers un ensemble de nœuds du document externe, qui doit être retourné. -
-

Retour

-

Un ensemble de nœuds. -

-

Notes

- - - - -

Cette fonction est un ajout à XPath qui est spécifique à XSLT. Elle ne fait pas partie de la bibliothèque de fonctions de XPath core. -

-

Définition

-

XSLT 1.0, section 12.1. -

-

Support Gecko

-

Supportée. -

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/document/index.md b/files/fr/web/xpath/functions/document/index.md new file mode 100644 index 0000000000..3f1bb98b80 --- /dev/null +++ b/files/fr/web/xpath/functions/document/index.md @@ -0,0 +1,43 @@ +--- +title: document +slug: Web/XPath/Functions/document +tags: + - Référence_XSLT +translation_of: Web/XPath/Functions/document +original_slug: Web/XPath/Fonctions/document +--- +

+{{ XsltRef() }} +


+La fonction document recherche un ensemble de nœuds dans un ou des documents externes et retourne l'ensemble de nœuds résultant. +

+

Syntaxe

+
document( URI [, ensemble-de-nœuds] )
+
+

Arguments

+
URI +
URI absolue ou relative du document à récupérer. L'URI peut également contenir un identifiant de fragment. +
+
ensemble-de-nœuds (optionnel) +
Une expression pointant vers un ensemble de nœuds du document externe, qui doit être retourné. +
+

Retour

+

Un ensemble de nœuds. +

+

Notes

+ + + + +

Cette fonction est un ajout à XPath qui est spécifique à XSLT. Elle ne fait pas partie de la bibliothèque de fonctions de XPath core. +

+

Définition

+

XSLT 1.0, section 12.1. +

+

Support Gecko

+

Supportée. +

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/element-available/index.html b/files/fr/web/xpath/functions/element-available/index.html deleted file mode 100644 index 1ce80f0088..0000000000 --- a/files/fr/web/xpath/functions/element-available/index.html +++ /dev/null @@ -1,29 +0,0 @@ ---- -title: element-available -slug: Web/XPath/Functions/element-available -tags: - - Référence_XSLT -translation_of: Web/XPath/Functions/element-available -original_slug: Web/XPath/Fonctions/element-available ---- -

-{{ XsltRef() }} -


-La fonction element-available détermine si un élément est disponible et retourne la valeur booléenne true ou false. -

-

Syntaxe

-
element-available( QName )
-
-

Arguments

-
QName -
Doit s'évaluer en un QName valide. Le QName est développé en nom étendu à l'aide des déclarations d'espaces de nommage s'appliquant à l'expression. Le nom étendu est constitué d'une partie locale, une chaîne, et d'une URI d'espace de nommage. -
-

Retour

-

Retourne true si et seulement si le nom étendu est un nom d'instruction. Si le nom étendu a une URI d'espace de nommage égale à l'URI de l'espace de nommage XSLT, alors il se rapporte à un élément défini par XSLT. Autrement, il se rapporte à un élément d'extension. Si le nom étendu a une URI d'espace de nommage null, la fonction element-available retournera false. -

-

Définition

-

XSLT 1.0, section 15. -

-

Support Gecko

-

Supportée. -

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/element-available/index.md b/files/fr/web/xpath/functions/element-available/index.md new file mode 100644 index 0000000000..1ce80f0088 --- /dev/null +++ b/files/fr/web/xpath/functions/element-available/index.md @@ -0,0 +1,29 @@ +--- +title: element-available +slug: Web/XPath/Functions/element-available +tags: + - Référence_XSLT +translation_of: Web/XPath/Functions/element-available +original_slug: Web/XPath/Fonctions/element-available +--- +

+{{ XsltRef() }} +


+La fonction element-available détermine si un élément est disponible et retourne la valeur booléenne true ou false. +

+

Syntaxe

+
element-available( QName )
+
+

Arguments

+
QName +
Doit s'évaluer en un QName valide. Le QName est développé en nom étendu à l'aide des déclarations d'espaces de nommage s'appliquant à l'expression. Le nom étendu est constitué d'une partie locale, une chaîne, et d'une URI d'espace de nommage. +
+

Retour

+

Retourne true si et seulement si le nom étendu est un nom d'instruction. Si le nom étendu a une URI d'espace de nommage égale à l'URI de l'espace de nommage XSLT, alors il se rapporte à un élément défini par XSLT. Autrement, il se rapporte à un élément d'extension. Si le nom étendu a une URI d'espace de nommage null, la fonction element-available retournera false. +

+

Définition

+

XSLT 1.0, section 15. +

+

Support Gecko

+

Supportée. +

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/false/index.html b/files/fr/web/xpath/functions/false/index.html deleted file mode 100644 index 1914710d4a..0000000000 --- a/files/fr/web/xpath/functions/false/index.html +++ /dev/null @@ -1,32 +0,0 @@ ---- -title: 'false' -slug: Web/XPath/Functions/false -tags: - - Référence_XSLT -translation_of: Web/XPath/Functions/false -original_slug: Web/XPath/Fonctions/false ---- -

-{{ XsltRef() }} -


-La fonction false retourne le booléen false. -

-

Syntaxe

-
false()
-
-

Retour

-

Booléen false. -

-

Notes

-

Cette fonction est utile dans les comparaisons : -

-
<xsl:if test="boolean((1 > 2) = false())">
- L'expression évaluée comme fausse
-</xsl:if>
-
-

Définition

-

XPath 1.0, section 4.3. -

-

Support Gecko

-

Supportée. -

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/false/index.md b/files/fr/web/xpath/functions/false/index.md new file mode 100644 index 0000000000..1914710d4a --- /dev/null +++ b/files/fr/web/xpath/functions/false/index.md @@ -0,0 +1,32 @@ +--- +title: 'false' +slug: Web/XPath/Functions/false +tags: + - Référence_XSLT +translation_of: Web/XPath/Functions/false +original_slug: Web/XPath/Fonctions/false +--- +

+{{ XsltRef() }} +


+La fonction false retourne le booléen false. +

+

Syntaxe

+
false()
+
+

Retour

+

Booléen false. +

+

Notes

+

Cette fonction est utile dans les comparaisons : +

+
<xsl:if test="boolean((1 > 2) = false())">
+ L'expression évaluée comme fausse
+</xsl:if>
+
+

Définition

+

XPath 1.0, section 4.3. +

+

Support Gecko

+

Supportée. +

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/floor/index.html b/files/fr/web/xpath/functions/floor/index.html deleted file mode 100644 index 9e986d4ea5..0000000000 --- a/files/fr/web/xpath/functions/floor/index.html +++ /dev/null @@ -1,37 +0,0 @@ ---- -title: floor -slug: Web/XPath/Functions/floor -tags: - - Fonction - - Reference - - Référence_XSLT - - XPath - - XSLT -translation_of: Web/XPath/Functions/floor -original_slug: Web/XPath/Fonctions/floor ---- -

{{ XsltRef() }}

-


- La fonction floor évalue un nombre décimal et retourne le plus grand nombre entier inférieur ou égal au nombre évalué.

-

Syntaxe

-
floor(nombre )
-
-

Arguments

-
-
- - - nombre -
-
- Le nombre décimal à évaluer.
-
-

Retour

-

Le plus grand nombre entier inférieur ou égal à - - nombre - .

-

Définition

-

XPath 1.0, section 4.4.

-

Support Gecko

-

Supportée.

diff --git a/files/fr/web/xpath/functions/floor/index.md b/files/fr/web/xpath/functions/floor/index.md new file mode 100644 index 0000000000..9e986d4ea5 --- /dev/null +++ b/files/fr/web/xpath/functions/floor/index.md @@ -0,0 +1,37 @@ +--- +title: floor +slug: Web/XPath/Functions/floor +tags: + - Fonction + - Reference + - Référence_XSLT + - XPath + - XSLT +translation_of: Web/XPath/Functions/floor +original_slug: Web/XPath/Fonctions/floor +--- +

{{ XsltRef() }}

+


+ La fonction floor évalue un nombre décimal et retourne le plus grand nombre entier inférieur ou égal au nombre évalué.

+

Syntaxe

+
floor(nombre )
+
+

Arguments

+
+
+ + + nombre +
+
+ Le nombre décimal à évaluer.
+
+

Retour

+

Le plus grand nombre entier inférieur ou égal à + + nombre + .

+

Définition

+

XPath 1.0, section 4.4.

+

Support Gecko

+

Supportée.

diff --git a/files/fr/web/xpath/functions/format-number/index.html b/files/fr/web/xpath/functions/format-number/index.html deleted file mode 100644 index 3ea1be6d11..0000000000 --- a/files/fr/web/xpath/functions/format-number/index.html +++ /dev/null @@ -1,38 +0,0 @@ ---- -title: format-number -slug: Web/XPath/Functions/format-number -tags: - - Référence_XSLT -translation_of: Web/XPath/Functions/format-number -original_slug: Web/XPath/Fonctions/format-number ---- -

-{{ XsltRef() }} -


-La fonction format-number évalue un nombre et retourne une chaîne représentant le nombre dans un format donné. -

-

Syntaxe

-
format-number( nombre , motif [, format-décimal] )
-
-

Arguments

-
nombre -
Le nombre à formater. -
-
motif -
Une chaîne au format de la classe Decimal Format (en) du JDK 1.1. La notice du JDK 1.1 n'est plus disponible. Vous trouverez ici la notice pour le JSE 6: Decimal Format (en) -
-
format-décimal (optionnel) -
Le nom d'un élément xsl:decimal-format qui définit le format de nombre à utiliser. Si il est omis, le format décimal par défaut est utilisé. -
-

Retour

-

Une chaîne représentant le nombre dans le nouveau format. -

-

Notes

-

Cette fonction est un ajout à XPath spécifique à XSLT. Elle ne fait pas partie de la bibliothèque de fonctions XPath principale. -

-

Définition

-

XSLT 1.0, section 12.3. -

-

Support Gecko

-

Supportée. -

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/format-number/index.md b/files/fr/web/xpath/functions/format-number/index.md new file mode 100644 index 0000000000..3ea1be6d11 --- /dev/null +++ b/files/fr/web/xpath/functions/format-number/index.md @@ -0,0 +1,38 @@ +--- +title: format-number +slug: Web/XPath/Functions/format-number +tags: + - Référence_XSLT +translation_of: Web/XPath/Functions/format-number +original_slug: Web/XPath/Fonctions/format-number +--- +

+{{ XsltRef() }} +


+La fonction format-number évalue un nombre et retourne une chaîne représentant le nombre dans un format donné. +

+

Syntaxe

+
format-number( nombre , motif [, format-décimal] )
+
+

Arguments

+
nombre +
Le nombre à formater. +
+
motif +
Une chaîne au format de la classe Decimal Format (en) du JDK 1.1. La notice du JDK 1.1 n'est plus disponible. Vous trouverez ici la notice pour le JSE 6: Decimal Format (en) +
+
format-décimal (optionnel) +
Le nom d'un élément xsl:decimal-format qui définit le format de nombre à utiliser. Si il est omis, le format décimal par défaut est utilisé. +
+

Retour

+

Une chaîne représentant le nombre dans le nouveau format. +

+

Notes

+

Cette fonction est un ajout à XPath spécifique à XSLT. Elle ne fait pas partie de la bibliothèque de fonctions XPath principale. +

+

Définition

+

XSLT 1.0, section 12.3. +

+

Support Gecko

+

Supportée. +

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/function-available/index.html b/files/fr/web/xpath/functions/function-available/index.html deleted file mode 100644 index 1df4e3aa24..0000000000 --- a/files/fr/web/xpath/functions/function-available/index.html +++ /dev/null @@ -1,29 +0,0 @@ ---- -title: function-available -slug: Web/XPath/Functions/function-available -tags: - - Référence_XSLT -translation_of: Web/XPath/Functions/function-available -original_slug: Web/XPath/Fonctions/function-available ---- -

-{{ XsltRef() }} -


-La fonction function-available détermine si une fonction donnée est disponible et retourne le booléen true ou false. -

-

Syntaxe

-
function-available( nom )
-
-

Arguments

-
nom -
Le nom de la fonction à tester. -
-

Retour

-

La valeur booléenne true ou false. -

-

Définition

-

XPath 1.0, section 15. -

-

Support Gecko

-

Supportée. -

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/function-available/index.md b/files/fr/web/xpath/functions/function-available/index.md new file mode 100644 index 0000000000..1df4e3aa24 --- /dev/null +++ b/files/fr/web/xpath/functions/function-available/index.md @@ -0,0 +1,29 @@ +--- +title: function-available +slug: Web/XPath/Functions/function-available +tags: + - Référence_XSLT +translation_of: Web/XPath/Functions/function-available +original_slug: Web/XPath/Fonctions/function-available +--- +

+{{ XsltRef() }} +


+La fonction function-available détermine si une fonction donnée est disponible et retourne le booléen true ou false. +

+

Syntaxe

+
function-available( nom )
+
+

Arguments

+
nom +
Le nom de la fonction à tester. +
+

Retour

+

La valeur booléenne true ou false. +

+

Définition

+

XPath 1.0, section 15. +

+

Support Gecko

+

Supportée. +

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/generate-id/index.html b/files/fr/web/xpath/functions/generate-id/index.html deleted file mode 100644 index f339308ddc..0000000000 --- a/files/fr/web/xpath/functions/generate-id/index.html +++ /dev/null @@ -1,36 +0,0 @@ ---- -title: generate-id -slug: Web/XPath/Functions/generate-id -tags: - - Référence_XSLT -translation_of: Web/XPath/Functions/generate-id -original_slug: Web/XPath/Fonctions/generate-id ---- -

-{{ XsltRef() }} -


-La fonction generate-id génère un identifiant id unique pour le premier nœud d'un ensemble de nœuds donné et retourne une chaîne contenant cet id. -

-

Syntaxe

-
generate-id( [ensemble-de-nœuds] )
-
-

Arguments

-
ensemble-de-nœuds (optionnel) -
Un id sera généré pour le premier nœud de cet ensemble de nœuds. S'il est omis, le nœud de contexte courant sera utilisé. -
-

Retour

-

Une chaîne contenant l'id généré. -

-

Notes

- - -

Cette fonction est un ajout à XPath spécifique à XSLT. Elle ne fait pas partie de la bibliothèque de fonctions XPath principale. -

-

Définition

-

XSLT 1.0, section 12.4. -

-

Support Gecko

-

Supportée. -

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/generate-id/index.md b/files/fr/web/xpath/functions/generate-id/index.md new file mode 100644 index 0000000000..f339308ddc --- /dev/null +++ b/files/fr/web/xpath/functions/generate-id/index.md @@ -0,0 +1,36 @@ +--- +title: generate-id +slug: Web/XPath/Functions/generate-id +tags: + - Référence_XSLT +translation_of: Web/XPath/Functions/generate-id +original_slug: Web/XPath/Fonctions/generate-id +--- +

+{{ XsltRef() }} +


+La fonction generate-id génère un identifiant id unique pour le premier nœud d'un ensemble de nœuds donné et retourne une chaîne contenant cet id. +

+

Syntaxe

+
generate-id( [ensemble-de-nœuds] )
+
+

Arguments

+
ensemble-de-nœuds (optionnel) +
Un id sera généré pour le premier nœud de cet ensemble de nœuds. S'il est omis, le nœud de contexte courant sera utilisé. +
+

Retour

+

Une chaîne contenant l'id généré. +

+

Notes

+ + +

Cette fonction est un ajout à XPath spécifique à XSLT. Elle ne fait pas partie de la bibliothèque de fonctions XPath principale. +

+

Définition

+

XSLT 1.0, section 12.4. +

+

Support Gecko

+

Supportée. +

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/id/index.html b/files/fr/web/xpath/functions/id/index.html deleted file mode 100644 index d8a9ef2e72..0000000000 --- a/files/fr/web/xpath/functions/id/index.html +++ /dev/null @@ -1,35 +0,0 @@ ---- -title: id -slug: Web/XPath/Functions/id -tags: - - Référence_XSLT -translation_of: Web/XPath/Functions/id -original_slug: Web/XPath/Fonctions/id ---- -

-{{ XsltRef() }} -


-La fonction id recherche les nœuds correspondant aux identifiants id donnés et retourne un ensemble de nœuds contenant les nœuds identifiés. -

-

Syntaxe

-
id( expression )
-
-

Arguments

- -
-
expression
-
Si expression est un ensemble de nœuds, alors la valeur de la chaîne de chacun des nœuds de l'ensemble est traitée individuellement. Les nœuds retournés sont ceux corespondant à ces identifiants id. Si expression est une chaîne, ou n'importe quoi d'autre qu'un ensemble de nœuds, alors expression est traitée comme une liste d'identifiants id séparés par des espaces L'ensemble de nœuds retourné comprend les nœuds corespondant à ces identifiants id.
-
- -

Retour

-

Un ensemble de nœuds contenant les nœuds identifiés par les id donnés. -

-

Notes

- -

Définition

-

XPath 1.0, section 4.1. -

-

Support Gecko

-

Partiellement supportée. -

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/id/index.md b/files/fr/web/xpath/functions/id/index.md new file mode 100644 index 0000000000..d8a9ef2e72 --- /dev/null +++ b/files/fr/web/xpath/functions/id/index.md @@ -0,0 +1,35 @@ +--- +title: id +slug: Web/XPath/Functions/id +tags: + - Référence_XSLT +translation_of: Web/XPath/Functions/id +original_slug: Web/XPath/Fonctions/id +--- +

+{{ XsltRef() }} +


+La fonction id recherche les nœuds correspondant aux identifiants id donnés et retourne un ensemble de nœuds contenant les nœuds identifiés. +

+

Syntaxe

+
id( expression )
+
+

Arguments

+ +
+
expression
+
Si expression est un ensemble de nœuds, alors la valeur de la chaîne de chacun des nœuds de l'ensemble est traitée individuellement. Les nœuds retournés sont ceux corespondant à ces identifiants id. Si expression est une chaîne, ou n'importe quoi d'autre qu'un ensemble de nœuds, alors expression est traitée comme une liste d'identifiants id séparés par des espaces L'ensemble de nœuds retourné comprend les nœuds corespondant à ces identifiants id.
+
+ +

Retour

+

Un ensemble de nœuds contenant les nœuds identifiés par les id donnés. +

+

Notes

+ +

Définition

+

XPath 1.0, section 4.1. +

+

Support Gecko

+

Partiellement supportée. +

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/index.html b/files/fr/web/xpath/functions/index.html deleted file mode 100644 index e4afddab49..0000000000 --- a/files/fr/web/xpath/functions/index.html +++ /dev/null @@ -1,50 +0,0 @@ ---- -title: Fonctions -slug: Web/XPath/Functions -tags: - - Référence_XPath - - Référence_XSLT - - XPath -translation_of: Web/XPath/Functions -original_slug: Web/XPath/Fonctions ---- -

 

-

{{ XsltRef() }} La liste ci-dessous regroupe les principales fonctions de XPath et les ajouts à XPath qui sont spécifiques à XSLT. Chaque lien fournit pour la fonction correspondante description, syntaxe, liste d'arguments, types de résultats, description originelle dans les recommandations du W3C, et niveau de support actuel dans Gecko. Pour plus d'informations sur l'utilisation des fonctions XPath/XSLT, reportez-vous à la page Autres ressources.

- \ No newline at end of file diff --git a/files/fr/web/xpath/functions/index.md b/files/fr/web/xpath/functions/index.md new file mode 100644 index 0000000000..e4afddab49 --- /dev/null +++ b/files/fr/web/xpath/functions/index.md @@ -0,0 +1,50 @@ +--- +title: Fonctions +slug: Web/XPath/Functions +tags: + - Référence_XPath + - Référence_XSLT + - XPath +translation_of: Web/XPath/Functions +original_slug: Web/XPath/Fonctions +--- +

 

+

{{ XsltRef() }} La liste ci-dessous regroupe les principales fonctions de XPath et les ajouts à XPath qui sont spécifiques à XSLT. Chaque lien fournit pour la fonction correspondante description, syntaxe, liste d'arguments, types de résultats, description originelle dans les recommandations du W3C, et niveau de support actuel dans Gecko. Pour plus d'informations sur l'utilisation des fonctions XPath/XSLT, reportez-vous à la page Autres ressources.

+ \ No newline at end of file diff --git a/files/fr/web/xpath/functions/key/index.html b/files/fr/web/xpath/functions/key/index.html deleted file mode 100644 index 3804327e12..0000000000 --- a/files/fr/web/xpath/functions/key/index.html +++ /dev/null @@ -1,37 +0,0 @@ ---- -title: key -slug: Web/XPath/Functions/key -tags: - - Référence_XSLT -translation_of: Web/XPath/Functions/key -original_slug: Web/XPath/Fonctions/key ---- -

-{{ XsltRef() }} -


-La fonction key retourne un ensemble de nœuds ayant la valeur donnée pour la clef donnée. -

-

Syntaxe

-
key( nom-de-clef , valeur )
-
-

Arguments

-
nom-de-clef -
Une chaîne contenant le nom de l'élément xsl:key à utiliser. -
-
valeur -
L'ensemble de nœuds retourné contiendra chaque nœud qui possède cette valeur pour la clef donnée. -
-

Retour

-

Un ensemble de nœuds. -

-

Notes

- -

Cette fonction est un ajout à XPath spécifique à XSLT. Elle ne fait pas partie de la bibliothèque de fonctions XPath principale. -

-

Définition

-

XSLT 1.0, section 12.2. -

-

Support Gecko

-

Supportée. -

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/key/index.md b/files/fr/web/xpath/functions/key/index.md new file mode 100644 index 0000000000..3804327e12 --- /dev/null +++ b/files/fr/web/xpath/functions/key/index.md @@ -0,0 +1,37 @@ +--- +title: key +slug: Web/XPath/Functions/key +tags: + - Référence_XSLT +translation_of: Web/XPath/Functions/key +original_slug: Web/XPath/Fonctions/key +--- +

+{{ XsltRef() }} +


+La fonction key retourne un ensemble de nœuds ayant la valeur donnée pour la clef donnée. +

+

Syntaxe

+
key( nom-de-clef , valeur )
+
+

Arguments

+
nom-de-clef +
Une chaîne contenant le nom de l'élément xsl:key à utiliser. +
+
valeur +
L'ensemble de nœuds retourné contiendra chaque nœud qui possède cette valeur pour la clef donnée. +
+

Retour

+

Un ensemble de nœuds. +

+

Notes

+ +

Cette fonction est un ajout à XPath spécifique à XSLT. Elle ne fait pas partie de la bibliothèque de fonctions XPath principale. +

+

Définition

+

XSLT 1.0, section 12.2. +

+

Support Gecko

+

Supportée. +

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/lang/index.html b/files/fr/web/xpath/functions/lang/index.html deleted file mode 100644 index 56b56c7fb9..0000000000 --- a/files/fr/web/xpath/functions/lang/index.html +++ /dev/null @@ -1,53 +0,0 @@ ---- -title: lang -slug: Web/XPath/Functions/lang -tags: - - Référence_XSLT -translation_of: Web/XPath/Functions/lang -original_slug: Web/XPath/Fonctions/lang ---- -

-{{ XsltRef() }} -


-La fonction lang détermine si le nœud de contexte correspond à la langue indiquée et retourne le booléen true ou false. -

-

Syntaxe

-
lang( chaîne )
-
-

Arguments

-
chaîne -
Le code de langue ou de localisation (langue et pays) à vérifier. -
-

Retour

-

true si le noeud de contexte est dans la langue donnée, false autrement. -

-

Notes

- - -

Regardons le code XML suivant : -

-
<p xml:lang="en">I went up a floor.</p>
-<p xml:lang="en-GB">I took the lift.</p>
-<p xsl:lang="en-US">I rode the elevator.</p>
-

et ce modèle XSL : -

-
<xsl:value-of select="count(//p[lang('en')])" />
-<xsl:value-of select="count(//p[lang('en-GB')])" />
-<xsl:value-of select="count(//p[lang('en-US')])" />
-<xsl:value-of select="count(//p[lang('de')])" />
-
-

La sortie sera : -

-
3
-1
-1
-0
-
-

Définition

-

XPath 1.0, section 4.3. -

-

Support Gecko

-

Supporté. -

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/lang/index.md b/files/fr/web/xpath/functions/lang/index.md new file mode 100644 index 0000000000..56b56c7fb9 --- /dev/null +++ b/files/fr/web/xpath/functions/lang/index.md @@ -0,0 +1,53 @@ +--- +title: lang +slug: Web/XPath/Functions/lang +tags: + - Référence_XSLT +translation_of: Web/XPath/Functions/lang +original_slug: Web/XPath/Fonctions/lang +--- +

+{{ XsltRef() }} +


+La fonction lang détermine si le nœud de contexte correspond à la langue indiquée et retourne le booléen true ou false. +

+

Syntaxe

+
lang( chaîne )
+
+

Arguments

+
chaîne +
Le code de langue ou de localisation (langue et pays) à vérifier. +
+

Retour

+

true si le noeud de contexte est dans la langue donnée, false autrement. +

+

Notes

+ + +

Regardons le code XML suivant : +

+
<p xml:lang="en">I went up a floor.</p>
+<p xml:lang="en-GB">I took the lift.</p>
+<p xsl:lang="en-US">I rode the elevator.</p>
+

et ce modèle XSL : +

+
<xsl:value-of select="count(//p[lang('en')])" />
+<xsl:value-of select="count(//p[lang('en-GB')])" />
+<xsl:value-of select="count(//p[lang('en-US')])" />
+<xsl:value-of select="count(//p[lang('de')])" />
+
+

La sortie sera : +

+
3
+1
+1
+0
+
+

Définition

+

XPath 1.0, section 4.3. +

+

Support Gecko

+

Supporté. +

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/last/index.html b/files/fr/web/xpath/functions/last/index.html deleted file mode 100644 index f7a3251081..0000000000 --- a/files/fr/web/xpath/functions/last/index.html +++ /dev/null @@ -1,28 +0,0 @@ ---- -title: last -slug: Web/XPath/Functions/last -tags: - - Référence_XSLT -translation_of: Web/XPath/Functions/last -original_slug: Web/XPath/Fonctions/last ---- -

-{{ XsltRef() }} -


-La fonction last retourne un nombre égal à la taille du contexte dans le contexte d'évaluation d'expression. -

-

Syntaxe

-
last()
-
-

Retour

-

Un entier égal à la taille du contexte dans le contexte d'évaluation d'expression. -

-

Notes

- -

Définition

-

XPath 1.0, section 4.1. -

-

Support Gecko

-

Supportée. -

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/last/index.md b/files/fr/web/xpath/functions/last/index.md new file mode 100644 index 0000000000..f7a3251081 --- /dev/null +++ b/files/fr/web/xpath/functions/last/index.md @@ -0,0 +1,28 @@ +--- +title: last +slug: Web/XPath/Functions/last +tags: + - Référence_XSLT +translation_of: Web/XPath/Functions/last +original_slug: Web/XPath/Fonctions/last +--- +

+{{ XsltRef() }} +


+La fonction last retourne un nombre égal à la taille du contexte dans le contexte d'évaluation d'expression. +

+

Syntaxe

+
last()
+
+

Retour

+

Un entier égal à la taille du contexte dans le contexte d'évaluation d'expression. +

+

Notes

+ +

Définition

+

XPath 1.0, section 4.1. +

+

Support Gecko

+

Supportée. +

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/local-name/index.html b/files/fr/web/xpath/functions/local-name/index.html deleted file mode 100644 index 2d6092e1ca..0000000000 --- a/files/fr/web/xpath/functions/local-name/index.html +++ /dev/null @@ -1,32 +0,0 @@ ---- -title: local-name -slug: Web/XPath/Functions/local-name -tags: - - Référence_XSLT -translation_of: Web/XPath/Functions/local-name -original_slug: Web/XPath/Fonctions/local-name ---- -

-{{ XsltRef() }} -


-La fonction local-name retourne une chaîne représentant le nom local du premier nœud d'un ensemble de nœuds donné. -

-

Syntaxe

-
local-name( [ensemble-de-nœuds] )
-
-

Arguments

-
ensemble-de-nœuds (optionnel) -
Le nom local du premier nœud de cet ensemble de nœuds sera retourné. Si cet argument est omis, le nœud de contexte courant sera utilisé. -
-

Retour

-

Une chaîne. -

-

Notes

- -

Définition

-

XPath 1.0, section 4.1. -

-

Support Gecko

-

Supportée. -

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/local-name/index.md b/files/fr/web/xpath/functions/local-name/index.md new file mode 100644 index 0000000000..2d6092e1ca --- /dev/null +++ b/files/fr/web/xpath/functions/local-name/index.md @@ -0,0 +1,32 @@ +--- +title: local-name +slug: Web/XPath/Functions/local-name +tags: + - Référence_XSLT +translation_of: Web/XPath/Functions/local-name +original_slug: Web/XPath/Fonctions/local-name +--- +

+{{ XsltRef() }} +


+La fonction local-name retourne une chaîne représentant le nom local du premier nœud d'un ensemble de nœuds donné. +

+

Syntaxe

+
local-name( [ensemble-de-nœuds] )
+
+

Arguments

+
ensemble-de-nœuds (optionnel) +
Le nom local du premier nœud de cet ensemble de nœuds sera retourné. Si cet argument est omis, le nœud de contexte courant sera utilisé. +
+

Retour

+

Une chaîne. +

+

Notes

+ +

Définition

+

XPath 1.0, section 4.1. +

+

Support Gecko

+

Supportée. +

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/name/index.html b/files/fr/web/xpath/functions/name/index.html deleted file mode 100644 index 13a6961723..0000000000 --- a/files/fr/web/xpath/functions/name/index.html +++ /dev/null @@ -1,32 +0,0 @@ ---- -title: name -slug: Web/XPath/Functions/name -tags: - - Référence_XSLT -translation_of: Web/XPath/Functions/name -original_slug: Web/XPath/Fonctions/name ---- -

-{{ XsltRef() }} -


-La fonction name retourne une chaîne représentant le QName du premier nœud d'un ensemble de nœuds donné. -

-

Syntaxe

-
name( [ensemble-de-nœuds] )
-
-

Arguments

-
ensemble-de-nœuds (optionnel) -
Le QName du premier nœud de cet ensemble de nœuds sera retourné. Si cet argument est omis, le nœud de contexte courant sera utilisé. -
-

Retour

-

Une chaîne représentant le QName d'un nœud. -

-

Notes

- -

Définition

-

XPath 1.0, section 4.1. -

-

Support Gecko

-

Supportée. -

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/name/index.md b/files/fr/web/xpath/functions/name/index.md new file mode 100644 index 0000000000..13a6961723 --- /dev/null +++ b/files/fr/web/xpath/functions/name/index.md @@ -0,0 +1,32 @@ +--- +title: name +slug: Web/XPath/Functions/name +tags: + - Référence_XSLT +translation_of: Web/XPath/Functions/name +original_slug: Web/XPath/Fonctions/name +--- +

+{{ XsltRef() }} +


+La fonction name retourne une chaîne représentant le QName du premier nœud d'un ensemble de nœuds donné. +

+

Syntaxe

+
name( [ensemble-de-nœuds] )
+
+

Arguments

+
ensemble-de-nœuds (optionnel) +
Le QName du premier nœud de cet ensemble de nœuds sera retourné. Si cet argument est omis, le nœud de contexte courant sera utilisé. +
+

Retour

+

Une chaîne représentant le QName d'un nœud. +

+

Notes

+ +

Définition

+

XPath 1.0, section 4.1. +

+

Support Gecko

+

Supportée. +

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/namespace-uri/index.html b/files/fr/web/xpath/functions/namespace-uri/index.html deleted file mode 100644 index 2506904f39..0000000000 --- a/files/fr/web/xpath/functions/namespace-uri/index.html +++ /dev/null @@ -1,34 +0,0 @@ ---- -title: namespace-uri -slug: Web/XPath/Functions/namespace-uri -tags: - - Référence_XSLT -translation_of: Web/XPath/Functions/namespace-uri -original_slug: Web/XPath/Fonctions/namespace-uri ---- -

-{{ XsltRef() }} -


-La fonction namespace-uri retourne une chaîne représentant l'URI de l'espace de nommage du premier nœud d'un ensemble de nœuds donné. -

-

Syntaxe

-
namespace-uri( [ensemble-de-nœuds] )
-
-

Arguments

-
ensemble-de-nœuds (optionnel) -
L'URI de l'espace de nommage du premier nœud de cet ensemble de nœuds sera retournée. Si cet argument est omis, le nœud de contexte courant sera utilisé. -
-

Retour

-

Une chaîne représentant l'URI de l'espace de nommage dans lequel se trouve le nœud donné. -

-

Notes

- - -

Définition

-

XPath 1.0, section 4.1. -

-

Support Gecko

-

Supportée. -

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/namespace-uri/index.md b/files/fr/web/xpath/functions/namespace-uri/index.md new file mode 100644 index 0000000000..2506904f39 --- /dev/null +++ b/files/fr/web/xpath/functions/namespace-uri/index.md @@ -0,0 +1,34 @@ +--- +title: namespace-uri +slug: Web/XPath/Functions/namespace-uri +tags: + - Référence_XSLT +translation_of: Web/XPath/Functions/namespace-uri +original_slug: Web/XPath/Fonctions/namespace-uri +--- +

+{{ XsltRef() }} +


+La fonction namespace-uri retourne une chaîne représentant l'URI de l'espace de nommage du premier nœud d'un ensemble de nœuds donné. +

+

Syntaxe

+
namespace-uri( [ensemble-de-nœuds] )
+
+

Arguments

+
ensemble-de-nœuds (optionnel) +
L'URI de l'espace de nommage du premier nœud de cet ensemble de nœuds sera retournée. Si cet argument est omis, le nœud de contexte courant sera utilisé. +
+

Retour

+

Une chaîne représentant l'URI de l'espace de nommage dans lequel se trouve le nœud donné. +

+

Notes

+ + +

Définition

+

XPath 1.0, section 4.1. +

+

Support Gecko

+

Supportée. +

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/normalize-space/index.html b/files/fr/web/xpath/functions/normalize-space/index.html deleted file mode 100644 index 36023b5a12..0000000000 --- a/files/fr/web/xpath/functions/normalize-space/index.html +++ /dev/null @@ -1,36 +0,0 @@ ---- -title: normalize-space -slug: Web/XPath/Functions/normalize-space -tags: - - Référence_XSLT -translation_of: Web/XPath/Functions/normalize-space -original_slug: Web/XPath/Fonctions/normalize-space ---- -

{{ XsltRef() }}

- -


- La fonction normalize-space supprime les espaces de début et de fin d'une chaîne et remplace les successions d’espaces par une seule puis retourne la chaîne résultante.

- -

Syntaxe

- -
normalize-space(chaîne )
-
- -

Arguments

- -
-
chaîne
-
La chaîne à normaliser.
-
- -

Retour

- -

La chaîne nomalisée.

- -

Définition

- -

XPath 1.0, section 4.2.

- -

Support Gecko

- -

Supportée.

diff --git a/files/fr/web/xpath/functions/normalize-space/index.md b/files/fr/web/xpath/functions/normalize-space/index.md new file mode 100644 index 0000000000..36023b5a12 --- /dev/null +++ b/files/fr/web/xpath/functions/normalize-space/index.md @@ -0,0 +1,36 @@ +--- +title: normalize-space +slug: Web/XPath/Functions/normalize-space +tags: + - Référence_XSLT +translation_of: Web/XPath/Functions/normalize-space +original_slug: Web/XPath/Fonctions/normalize-space +--- +

{{ XsltRef() }}

+ +


+ La fonction normalize-space supprime les espaces de début et de fin d'une chaîne et remplace les successions d’espaces par une seule puis retourne la chaîne résultante.

+ +

Syntaxe

+ +
normalize-space(chaîne )
+
+ +

Arguments

+ +
+
chaîne
+
La chaîne à normaliser.
+
+ +

Retour

+ +

La chaîne nomalisée.

+ +

Définition

+ +

XPath 1.0, section 4.2.

+ +

Support Gecko

+ +

Supportée.

diff --git a/files/fr/web/xpath/functions/not/index.html b/files/fr/web/xpath/functions/not/index.html deleted file mode 100644 index 142a814159..0000000000 --- a/files/fr/web/xpath/functions/not/index.html +++ /dev/null @@ -1,32 +0,0 @@ ---- -title: not -slug: Web/XPath/Functions/not -tags: - - Référence_XSLT -translation_of: Web/XPath/Functions/not -original_slug: Web/XPath/Fonctions/not ---- -

-{{ XsltRef() }} -


-La fonction not évalue une expression booléenne et retourne la valeur opposée. -

-

Syntaxe

-
not( expression )
-
-

Arguments

-
expression (optionnel) -
L'expression est évaluée exactement comme si elle était passée en tant qu'argument à la fonction boolean(). -
-

Retour

-

True pour une expression évaluée à false ; false pour une expression évaluée à true. -

-

Notes

- -

Définition

-

XPath 1.0, section 4.3. -

-

Support Gecko

-

Supportée. -

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/not/index.md b/files/fr/web/xpath/functions/not/index.md new file mode 100644 index 0000000000..142a814159 --- /dev/null +++ b/files/fr/web/xpath/functions/not/index.md @@ -0,0 +1,32 @@ +--- +title: not +slug: Web/XPath/Functions/not +tags: + - Référence_XSLT +translation_of: Web/XPath/Functions/not +original_slug: Web/XPath/Fonctions/not +--- +

+{{ XsltRef() }} +


+La fonction not évalue une expression booléenne et retourne la valeur opposée. +

+

Syntaxe

+
not( expression )
+
+

Arguments

+
expression (optionnel) +
L'expression est évaluée exactement comme si elle était passée en tant qu'argument à la fonction boolean(). +
+

Retour

+

True pour une expression évaluée à false ; false pour une expression évaluée à true. +

+

Notes

+ +

Définition

+

XPath 1.0, section 4.3. +

+

Support Gecko

+

Supportée. +

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/number/index.html b/files/fr/web/xpath/functions/number/index.html deleted file mode 100644 index 99a1511cb8..0000000000 --- a/files/fr/web/xpath/functions/number/index.html +++ /dev/null @@ -1,32 +0,0 @@ ---- -title: number -slug: Web/XPath/Functions/number -tags: - - Référence_XSLT -translation_of: Web/XPath/Functions/number -original_slug: Web/XPath/Fonctions/number ---- -

-{{ XsltRef() }} -


-La fonction number convertit un objet en un nombre et retourne ce nombre. -

-

Syntaxe

-
number( [objet] )
-
-

Arguments

-
objet (optionnel) -
L'objet à convertir en nombre. -
-

Retour

-

Le nombre résultant après conversion de l'objet. -

-

Notes

- -

Définition

-

XPath 1.0, section 4.4. -

-

Support Gecko

-

Supportée. -

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/number/index.md b/files/fr/web/xpath/functions/number/index.md new file mode 100644 index 0000000000..99a1511cb8 --- /dev/null +++ b/files/fr/web/xpath/functions/number/index.md @@ -0,0 +1,32 @@ +--- +title: number +slug: Web/XPath/Functions/number +tags: + - Référence_XSLT +translation_of: Web/XPath/Functions/number +original_slug: Web/XPath/Fonctions/number +--- +

+{{ XsltRef() }} +


+La fonction number convertit un objet en un nombre et retourne ce nombre. +

+

Syntaxe

+
number( [objet] )
+
+

Arguments

+
objet (optionnel) +
L'objet à convertir en nombre. +
+

Retour

+

Le nombre résultant après conversion de l'objet. +

+

Notes

+ +

Définition

+

XPath 1.0, section 4.4. +

+

Support Gecko

+

Supportée. +

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/position/index.html b/files/fr/web/xpath/functions/position/index.html deleted file mode 100644 index 2a51e4a9f5..0000000000 --- a/files/fr/web/xpath/functions/position/index.html +++ /dev/null @@ -1,52 +0,0 @@ ---- -title: position -slug: Web/XPath/Functions/position -tags: - - Référence_XSLT -translation_of: Web/XPath/Functions/position -original_slug: Web/XPath/Fonctions/position ---- -

{{ XsltRef() }}

- -


- La fonction position retourne un nombre égal à la position du contexte dans le contexte d'évaluation d'expression.

- -

Syntaxe

- -
position()
-
- -

Retour

- -

Un nombre entier égal à la position du contenu dans le contexte d'évaluation d'expression.

- -

Notes

- - - - - -
<xsl:template match="//a[position() = 5]">
- <!-- cet exemple 'attrape' le cinquième élément "a"
-         n'importe où dans le document. -->
-</xsl:template>
-
- -
<xsl:template match="//div[@class='foo']/bar[position() = 1]">
- <!-- cet exemple 'attrape' le premier
-         élément "bar" enfant d'un élément "div"
-         avec un attribut "class" valant "foo" -->
-</xsl:template>
-
- -

Définition

- -

XPath 1.0, section 4.1.

- -

Support Gecko

- -

Supportée.

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/position/index.md b/files/fr/web/xpath/functions/position/index.md new file mode 100644 index 0000000000..2a51e4a9f5 --- /dev/null +++ b/files/fr/web/xpath/functions/position/index.md @@ -0,0 +1,52 @@ +--- +title: position +slug: Web/XPath/Functions/position +tags: + - Référence_XSLT +translation_of: Web/XPath/Functions/position +original_slug: Web/XPath/Fonctions/position +--- +

{{ XsltRef() }}

+ +


+ La fonction position retourne un nombre égal à la position du contexte dans le contexte d'évaluation d'expression.

+ +

Syntaxe

+ +
position()
+
+ +

Retour

+ +

Un nombre entier égal à la position du contenu dans le contexte d'évaluation d'expression.

+ +

Notes

+ + + + + +
<xsl:template match="//a[position() = 5]">
+ <!-- cet exemple 'attrape' le cinquième élément "a"
+         n'importe où dans le document. -->
+</xsl:template>
+
+ +
<xsl:template match="//div[@class='foo']/bar[position() = 1]">
+ <!-- cet exemple 'attrape' le premier
+         élément "bar" enfant d'un élément "div"
+         avec un attribut "class" valant "foo" -->
+</xsl:template>
+
+ +

Définition

+ +

XPath 1.0, section 4.1.

+ +

Support Gecko

+ +

Supportée.

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/round/index.html b/files/fr/web/xpath/functions/round/index.html deleted file mode 100644 index bca80c65dd..0000000000 --- a/files/fr/web/xpath/functions/round/index.html +++ /dev/null @@ -1,32 +0,0 @@ ---- -title: round -slug: Web/XPath/Functions/round -tags: - - Référence_XSLT -translation_of: Web/XPath/Functions/round -original_slug: Web/XPath/Fonctions/round ---- -

-{{ XsltRef() }} -


-La fonction round retourne le nombre entier le plus proche d'un nombre donné. -

-

Syntaxe

-
round( décimal )
-
-

Arguments

-
décimal -
Le nombre décimal à arrondir. -
-

Retour

-

Le plus proche nombre entier, qu'il soit plus grand, plus petit ou égal à decimal. -

-

Notes

- -

Définition

-

XPath 1.0, section 4.4. -

-

Support Gecko

-

Supportée. -

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/round/index.md b/files/fr/web/xpath/functions/round/index.md new file mode 100644 index 0000000000..bca80c65dd --- /dev/null +++ b/files/fr/web/xpath/functions/round/index.md @@ -0,0 +1,32 @@ +--- +title: round +slug: Web/XPath/Functions/round +tags: + - Référence_XSLT +translation_of: Web/XPath/Functions/round +original_slug: Web/XPath/Fonctions/round +--- +

+{{ XsltRef() }} +


+La fonction round retourne le nombre entier le plus proche d'un nombre donné. +

+

Syntaxe

+
round( décimal )
+
+

Arguments

+
décimal +
Le nombre décimal à arrondir. +
+

Retour

+

Le plus proche nombre entier, qu'il soit plus grand, plus petit ou égal à decimal. +

+

Notes

+ +

Définition

+

XPath 1.0, section 4.4. +

+

Support Gecko

+

Supportée. +

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/starts-with/index.html b/files/fr/web/xpath/functions/starts-with/index.html deleted file mode 100644 index 56b6336b04..0000000000 --- a/files/fr/web/xpath/functions/starts-with/index.html +++ /dev/null @@ -1,22 +0,0 @@ ---- -title: starts-with -slug: Web/XPath/Functions/starts-with -tags: - - Référence_XSLT -translation_of: Web/XPath/Functions/starts-with -original_slug: Web/XPath/Fonctions/starts-with ---- -

{{ XsltRef() }}

-


-La fonction starts-with vérifie si la première chaîne débute par la seconde, et retourne true ou false.

-

Syntaxe

-
starts-with( meule , aiguille)
-
-

Arguments

-
meule
La chaîne dans laquelle chercher.
aiguille
La chaîne à rechercher.
-

Retour

-

true si meule débute par aiguille. Autrement, false.

-

Définition

-

XPath 1.0, section 4.2.

-

Support Gecko

-

Supportée.

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/starts-with/index.md b/files/fr/web/xpath/functions/starts-with/index.md new file mode 100644 index 0000000000..56b6336b04 --- /dev/null +++ b/files/fr/web/xpath/functions/starts-with/index.md @@ -0,0 +1,22 @@ +--- +title: starts-with +slug: Web/XPath/Functions/starts-with +tags: + - Référence_XSLT +translation_of: Web/XPath/Functions/starts-with +original_slug: Web/XPath/Fonctions/starts-with +--- +

{{ XsltRef() }}

+


+La fonction starts-with vérifie si la première chaîne débute par la seconde, et retourne true ou false.

+

Syntaxe

+
starts-with( meule , aiguille)
+
+

Arguments

+
meule
La chaîne dans laquelle chercher.
aiguille
La chaîne à rechercher.
+

Retour

+

true si meule débute par aiguille. Autrement, false.

+

Définition

+

XPath 1.0, section 4.2.

+

Support Gecko

+

Supportée.

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/string-length/index.html b/files/fr/web/xpath/functions/string-length/index.html deleted file mode 100644 index e09490e74d..0000000000 --- a/files/fr/web/xpath/functions/string-length/index.html +++ /dev/null @@ -1,29 +0,0 @@ ---- -title: string-length -slug: Web/XPath/Functions/string-length -tags: - - Référence_XSLT -translation_of: Web/XPath/Functions/string-length -original_slug: Web/XPath/Fonctions/string-length ---- -

-{{ XsltRef() }} -


-La fonction string-length retourne le nombre de caractères dans une chaîne donnée. -

-

Syntaxe

-
string-length( [chaîne] )
-
-

Arguments

-
chaîne (optionnel) -
La chaîne à évaluer. S'il est omis, la chaîne utilisée sera le noeud de contexte converti en chaîne. -
-

Retour

-

Un entier égal au nombre de caractères dans la chaîne. -

-

Définition

-

XPath 1.0, section 4.2. -

-

Support Gecko

-

Supportée. -

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/string-length/index.md b/files/fr/web/xpath/functions/string-length/index.md new file mode 100644 index 0000000000..e09490e74d --- /dev/null +++ b/files/fr/web/xpath/functions/string-length/index.md @@ -0,0 +1,29 @@ +--- +title: string-length +slug: Web/XPath/Functions/string-length +tags: + - Référence_XSLT +translation_of: Web/XPath/Functions/string-length +original_slug: Web/XPath/Fonctions/string-length +--- +

+{{ XsltRef() }} +


+La fonction string-length retourne le nombre de caractères dans une chaîne donnée. +

+

Syntaxe

+
string-length( [chaîne] )
+
+

Arguments

+
chaîne (optionnel) +
La chaîne à évaluer. S'il est omis, la chaîne utilisée sera le noeud de contexte converti en chaîne. +
+

Retour

+

Un entier égal au nombre de caractères dans la chaîne. +

+

Définition

+

XPath 1.0, section 4.2. +

+

Support Gecko

+

Supportée. +

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/string/index.html b/files/fr/web/xpath/functions/string/index.html deleted file mode 100644 index 1345b8ba5f..0000000000 --- a/files/fr/web/xpath/functions/string/index.html +++ /dev/null @@ -1,40 +0,0 @@ ---- -title: string -slug: Web/XPath/Functions/string -tags: - - Référence_XSLT -translation_of: Web/XPath/Functions/string -original_slug: Web/XPath/Fonctions/string ---- -

-{{ XsltRef() }} -


-La fonction string convertit l'argument passé en une chaîne. -

-

Syntaxe

-
string( [objet] )
-
-

Arguments

-
objet (optionnel) -
L'objet à convertir en une chaîne. Si il est omis, le nœud du contexte est utilisé. -
-

Retour

-

Une chaîne. -

-

Notes

- -

Définition

-

XPath 1.0, section 4.2. -

-

Support Gecko

-

Supportée. -

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/string/index.md b/files/fr/web/xpath/functions/string/index.md new file mode 100644 index 0000000000..1345b8ba5f --- /dev/null +++ b/files/fr/web/xpath/functions/string/index.md @@ -0,0 +1,40 @@ +--- +title: string +slug: Web/XPath/Functions/string +tags: + - Référence_XSLT +translation_of: Web/XPath/Functions/string +original_slug: Web/XPath/Fonctions/string +--- +

+{{ XsltRef() }} +


+La fonction string convertit l'argument passé en une chaîne. +

+

Syntaxe

+
string( [objet] )
+
+

Arguments

+
objet (optionnel) +
L'objet à convertir en une chaîne. Si il est omis, le nœud du contexte est utilisé. +
+

Retour

+

Une chaîne. +

+

Notes

+ +

Définition

+

XPath 1.0, section 4.2. +

+

Support Gecko

+

Supportée. +

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/substring-after/index.html b/files/fr/web/xpath/functions/substring-after/index.html deleted file mode 100644 index 8aa294389a..0000000000 --- a/files/fr/web/xpath/functions/substring-after/index.html +++ /dev/null @@ -1,35 +0,0 @@ ---- -title: substring-after -slug: Web/XPath/Functions/substring-after -tags: - - Référence_XSLT -translation_of: Web/XPath/Functions/substring-after -original_slug: Web/XPath/Fonctions/substring-after ---- -

-{{ XsltRef() }} -


-La fonction substring-after() retourne la partie d'une chaîne donnée suivant une sous-chaîne donnée. -

-

Syntaxe

-
substring-after( 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 après la première occurrence de aiguille dans la chaîne bottedefoin sera retourné. -
-

Retour

-

Une chaîne. -

-

Exemples

- -
Exemple XPath Sortie
<xsl:value-of select="substring-after('1999/04/01','/')" /> 04/01
substring-after('aa-bb','-') bb
substring-after('aa-bb','a') a-bb
substring-after('aa-bb','b') b
substring-after('aa-bb','q') (empty string)
-

Définition

-

XPath 1.0, section 4.2. -

-

Support Gecko

-

Supportée. -

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/substring-after/index.md b/files/fr/web/xpath/functions/substring-after/index.md new file mode 100644 index 0000000000..8aa294389a --- /dev/null +++ b/files/fr/web/xpath/functions/substring-after/index.md @@ -0,0 +1,35 @@ +--- +title: substring-after +slug: Web/XPath/Functions/substring-after +tags: + - Référence_XSLT +translation_of: Web/XPath/Functions/substring-after +original_slug: Web/XPath/Fonctions/substring-after +--- +

+{{ XsltRef() }} +


+La fonction substring-after() retourne la partie d'une chaîne donnée suivant une sous-chaîne donnée. +

+

Syntaxe

+
substring-after( 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 après la première occurrence de aiguille dans la chaîne bottedefoin sera retourné. +
+

Retour

+

Une chaîne. +

+

Exemples

+ +
Exemple XPath Sortie
<xsl:value-of select="substring-after('1999/04/01','/')" /> 04/01
substring-after('aa-bb','-') bb
substring-after('aa-bb','a') a-bb
substring-after('aa-bb','b') b
substring-after('aa-bb','q') (empty string)
+

Définition

+

XPath 1.0, section 4.2. +

+

Support Gecko

+

Supportée. +

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/substring-before/index.html b/files/fr/web/xpath/functions/substring-before/index.html deleted file mode 100644 index f9ab5dcf01..0000000000 --- a/files/fr/web/xpath/functions/substring-before/index.html +++ /dev/null @@ -1,35 +0,0 @@ ---- -title: substring-before -slug: Web/XPath/Functions/substring-before -tags: - - Référence_XSLT -translation_of: Web/XPath/Functions/substring-before -original_slug: Web/XPath/Fonctions/substring-before ---- -

-{{ XsltRef() }} -


-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. -

-

Support Gecko

-

Supportée. -

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/substring-before/index.md b/files/fr/web/xpath/functions/substring-before/index.md new file mode 100644 index 0000000000..f9ab5dcf01 --- /dev/null +++ b/files/fr/web/xpath/functions/substring-before/index.md @@ -0,0 +1,35 @@ +--- +title: substring-before +slug: Web/XPath/Functions/substring-before +tags: + - Référence_XSLT +translation_of: Web/XPath/Functions/substring-before +original_slug: Web/XPath/Fonctions/substring-before +--- +

+{{ XsltRef() }} +


+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. +

+

Support Gecko

+

Supportée. +

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/substring/index.html b/files/fr/web/xpath/functions/substring/index.html deleted file mode 100644 index 29cb112c4e..0000000000 --- a/files/fr/web/xpath/functions/substring/index.html +++ /dev/null @@ -1,37 +0,0 @@ ---- -title: substring -slug: Web/XPath/Functions/substring -tags: - - Référence_XSLT -translation_of: Web/XPath/Functions/substring -original_slug: Web/XPath/Fonctions/substring ---- -

-{{ XsltRef() }} -


-La fonction substring retourne une partie d'une chaîne donnée. -

-

Syntaxe

-
substring( chaîne , début [, longueur] )
-
-

Arguments

-
chaîne
La chaîne à évaluer. -
-
début -
La position dans la chaîne où commence la sous-chaîne. -
-
longueur (optionnel) -
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 début jusqu'à la fin de la chaîne. -
-

Retour

-

Une chaîne. -

-

Notes

-

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. -

-

Définition

-

XPath 1.0, section 4.2. -

-

Support Gecko

-

Supportée. -

\ No newline at end of file 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 +--- +

+{{ XsltRef() }} +


+La fonction substring retourne une partie d'une chaîne donnée. +

+

Syntaxe

+
substring( chaîne , début [, longueur] )
+
+

Arguments

+
chaîne
La chaîne à évaluer. +
+
début +
La position dans la chaîne où commence la sous-chaîne. +
+
longueur (optionnel) +
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 début jusqu'à la fin de la chaîne. +
+

Retour

+

Une chaîne. +

+

Notes

+

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. +

+

Définition

+

XPath 1.0, section 4.2. +

+

Support Gecko

+

Supportée. +

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/sum/index.html b/files/fr/web/xpath/functions/sum/index.html deleted file mode 100644 index b5aa70ad1c..0000000000 --- a/files/fr/web/xpath/functions/sum/index.html +++ /dev/null @@ -1,32 +0,0 @@ ---- -title: sum -slug: Web/XPath/Functions/sum -tags: - - Référence_XSLT -translation_of: Web/XPath/Functions/sum -original_slug: Web/XPath/Fonctions/sum ---- -

-{{ XsltRef() }} -


-La fonction sum retourne un nombre qui est la somme des valeurs numériques de chaque nœud d'un ensemble de nœuds donné. -

-

Syntaxe

-
sum( ensemble-de-nœuds )
-
-

Arguments

-
ensemble-de-nœuds -
L'ensemble de nœuds à évaluer. Chaque nœud de l'ensemble est évalué comme s'il était passé à la fonction number(), et la somme des nombres résultants est retournée. -
-

Retour

-

Un nombre. -

-

Notes

-

(Aucune) -

-

Définition

-

XPath 1.0, section 4.3. -

-

Support Gecko

-

Supportée. -

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/sum/index.md b/files/fr/web/xpath/functions/sum/index.md new file mode 100644 index 0000000000..b5aa70ad1c --- /dev/null +++ b/files/fr/web/xpath/functions/sum/index.md @@ -0,0 +1,32 @@ +--- +title: sum +slug: Web/XPath/Functions/sum +tags: + - Référence_XSLT +translation_of: Web/XPath/Functions/sum +original_slug: Web/XPath/Fonctions/sum +--- +

+{{ XsltRef() }} +


+La fonction sum retourne un nombre qui est la somme des valeurs numériques de chaque nœud d'un ensemble de nœuds donné. +

+

Syntaxe

+
sum( ensemble-de-nœuds )
+
+

Arguments

+
ensemble-de-nœuds +
L'ensemble de nœuds à évaluer. Chaque nœud de l'ensemble est évalué comme s'il était passé à la fonction number(), et la somme des nombres résultants est retournée. +
+

Retour

+

Un nombre. +

+

Notes

+

(Aucune) +

+

Définition

+

XPath 1.0, section 4.3. +

+

Support Gecko

+

Supportée. +

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/system-property/index.html b/files/fr/web/xpath/functions/system-property/index.html deleted file mode 100644 index 60c0333072..0000000000 --- a/files/fr/web/xpath/functions/system-property/index.html +++ /dev/null @@ -1,34 +0,0 @@ ---- -title: system-property -slug: Web/XPath/Functions/system-property -tags: - - Référence_XSLT -translation_of: Web/XPath/Functions/system-property -original_slug: Web/XPath/Fonctions/system-property ---- -

-{{ XsltRef() }} -


-La fonction system-property() retourne un objet représentant la propriété système donnée. -

-

Syntaxe

-
system-property( nom )
-
-

Arguments

-
nom (optionnel) -
Le nom de la propriété système. L'argument s'évaluer en une chaîne qui est un QName. Le QName est développé en un nom à l'aide des déclarations d'espaces de nommage s'appliquant à l'expression. La fonction system-property() retourne un objet représentant la valeur de la propriété système identifiée par le nom. Si cette propriété système n'existe pas, une chaîne vide est retournée. -
-

Retour

-

Un objet représentant le propriété système donnée. -

-

Notes

- -

Définition

-

XSLT 1.0, section 12.4. -

-

Support Gecko

-

Supportée. -

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/system-property/index.md b/files/fr/web/xpath/functions/system-property/index.md new file mode 100644 index 0000000000..60c0333072 --- /dev/null +++ b/files/fr/web/xpath/functions/system-property/index.md @@ -0,0 +1,34 @@ +--- +title: system-property +slug: Web/XPath/Functions/system-property +tags: + - Référence_XSLT +translation_of: Web/XPath/Functions/system-property +original_slug: Web/XPath/Fonctions/system-property +--- +

+{{ XsltRef() }} +


+La fonction system-property() retourne un objet représentant la propriété système donnée. +

+

Syntaxe

+
system-property( nom )
+
+

Arguments

+
nom (optionnel) +
Le nom de la propriété système. L'argument s'évaluer en une chaîne qui est un QName. Le QName est développé en un nom à l'aide des déclarations d'espaces de nommage s'appliquant à l'expression. La fonction system-property() retourne un objet représentant la valeur de la propriété système identifiée par le nom. Si cette propriété système n'existe pas, une chaîne vide est retournée. +
+

Retour

+

Un objet représentant le propriété système donnée. +

+

Notes

+ +

Définition

+

XSLT 1.0, section 12.4. +

+

Support Gecko

+

Supportée. +

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/translate/index.html b/files/fr/web/xpath/functions/translate/index.html deleted file mode 100644 index 97c03d561f..0000000000 --- a/files/fr/web/xpath/functions/translate/index.html +++ /dev/null @@ -1,55 +0,0 @@ ---- -title: translate -slug: Web/XPath/Functions/translate -tags: - - Référence_XSLT -translation_of: Web/XPath/Functions/translate -original_slug: Web/XPath/Fonctions/translate ---- -

-{{ XsltRef() }} -


-La fonction translate évalue une chaîne et un ensemble de caractères à traduire, et retourne la chaîne traduite. -

-

Syntaxe

-
translate( chaîne , abc , XYZ )
-
-

Arguments

-
chaîne -
La chaîne à évaluer. -
-
abc -
La chaîne de caractères à remplacer. -
-
XYZ
La chaîne de caractères utilisée pour le remplacement. Le premier caractère de XYZ remplacera chaque occurrence du premier caractère de abc qui apparaît dans chaîne. -
-

Retour

-

La chaîne traduite. -

-

Notes

-

XPath note que la fonction translate n'est pas une solution suffisante pour la conversion majuscule/minuscule dans tous les langages. Une future version de XPath pourrait fournir des fonctions supplémentaires pour la conversion.

Cependant, translate est à l'heure actuelle la fonction la plus proche d'une fonction pouvant convertir une chaîne en bas de casse ou haut de casse. -

-

Exemple

-
<xsl:value-of select="translate('Le rapide renard.', 'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'") />
-
-

Sortie

-
LE RAPIDE RENARD.
-
-


-

- -

Exemple

-
<xsl:value-of select="translate('Le renard rapide.', 'renard', 'panda')" />
-
-

Sortie

-
La pandp pdpia.
-
- -

Définition

-

XPath 1.0, section 4.2. -

-

Support Gecko

-

Supportée. -

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/translate/index.md b/files/fr/web/xpath/functions/translate/index.md new file mode 100644 index 0000000000..97c03d561f --- /dev/null +++ b/files/fr/web/xpath/functions/translate/index.md @@ -0,0 +1,55 @@ +--- +title: translate +slug: Web/XPath/Functions/translate +tags: + - Référence_XSLT +translation_of: Web/XPath/Functions/translate +original_slug: Web/XPath/Fonctions/translate +--- +

+{{ XsltRef() }} +


+La fonction translate évalue une chaîne et un ensemble de caractères à traduire, et retourne la chaîne traduite. +

+

Syntaxe

+
translate( chaîne , abc , XYZ )
+
+

Arguments

+
chaîne +
La chaîne à évaluer. +
+
abc +
La chaîne de caractères à remplacer. +
+
XYZ
La chaîne de caractères utilisée pour le remplacement. Le premier caractère de XYZ remplacera chaque occurrence du premier caractère de abc qui apparaît dans chaîne. +
+

Retour

+

La chaîne traduite. +

+

Notes

+

XPath note que la fonction translate n'est pas une solution suffisante pour la conversion majuscule/minuscule dans tous les langages. Une future version de XPath pourrait fournir des fonctions supplémentaires pour la conversion.

Cependant, translate est à l'heure actuelle la fonction la plus proche d'une fonction pouvant convertir une chaîne en bas de casse ou haut de casse. +

+

Exemple

+
<xsl:value-of select="translate('Le rapide renard.', 'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'") />
+
+

Sortie

+
LE RAPIDE RENARD.
+
+


+

+ +

Exemple

+
<xsl:value-of select="translate('Le renard rapide.', 'renard', 'panda')" />
+
+

Sortie

+
La pandp pdpia.
+
+ +

Définition

+

XPath 1.0, section 4.2. +

+

Support Gecko

+

Supportée. +

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/true/index.html b/files/fr/web/xpath/functions/true/index.html deleted file mode 100644 index 87e34d51c7..0000000000 --- a/files/fr/web/xpath/functions/true/index.html +++ /dev/null @@ -1,25 +0,0 @@ ---- -title: 'true' -slug: Web/XPath/Functions/true -tags: - - Référence_XSLT -translation_of: Web/XPath/Functions/true -original_slug: Web/XPath/Fonctions/true ---- -

-{{ XsltRef() }} -


-La fonction true retourne la valeur booléenne true. -

-

Syntaxe

-
true()
-
-

Retour

-

Le booléen true. -

-

Définition

-

XPath 1.0, section 4.3. -

-

Support Gecko

-

Supportée. -

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/true/index.md b/files/fr/web/xpath/functions/true/index.md new file mode 100644 index 0000000000..87e34d51c7 --- /dev/null +++ b/files/fr/web/xpath/functions/true/index.md @@ -0,0 +1,25 @@ +--- +title: 'true' +slug: Web/XPath/Functions/true +tags: + - Référence_XSLT +translation_of: Web/XPath/Functions/true +original_slug: Web/XPath/Fonctions/true +--- +

+{{ XsltRef() }} +


+La fonction true retourne la valeur booléenne true. +

+

Syntaxe

+
true()
+
+

Retour

+

Le booléen true. +

+

Définition

+

XPath 1.0, section 4.3. +

+

Support Gecko

+

Supportée. +

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/unparsed-entity-url/index.html b/files/fr/web/xpath/functions/unparsed-entity-url/index.html deleted file mode 100644 index a8669bd1d8..0000000000 --- a/files/fr/web/xpath/functions/unparsed-entity-url/index.html +++ /dev/null @@ -1,29 +0,0 @@ ---- -title: unparsed-entity-url -slug: Web/XPath/Functions/unparsed-entity-url -tags: - - Référence_XSLT -translation_of: Web/XPath/Functions/unparsed-entity-url -original_slug: Web/XPath/Fonctions/unparsed-entity-url ---- -

-{{ XsltRef() }} -


-La fonction unparsed-entity-url() retourne l'URI d'une entité non analysée avec le nom donné. C'est une donnée non-XML référencée dans le DTD du document source. -

-

Syntaxe

-
string unparsed-entity-url(chaîne)
-
-

Arguments

-
chaîne -
Le nom de l'entité non analysée. Si l'argument n'est pas une chaîne, il est converti suivant les règles de la fonction string(). Le nom doit être un nom XML. -
-

Retour

-

L'URI de l'entité non analysée récupérée dans la DTD, si elle existe. Autrement, une chaîne vide. -

-

Définition

-

XSLT 1.0, section 12.4.0 -

-

Support Gecko

-

Non supportée. -

\ No newline at end of file diff --git a/files/fr/web/xpath/functions/unparsed-entity-url/index.md b/files/fr/web/xpath/functions/unparsed-entity-url/index.md new file mode 100644 index 0000000000..a8669bd1d8 --- /dev/null +++ b/files/fr/web/xpath/functions/unparsed-entity-url/index.md @@ -0,0 +1,29 @@ +--- +title: unparsed-entity-url +slug: Web/XPath/Functions/unparsed-entity-url +tags: + - Référence_XSLT +translation_of: Web/XPath/Functions/unparsed-entity-url +original_slug: Web/XPath/Fonctions/unparsed-entity-url +--- +

+{{ XsltRef() }} +


+La fonction unparsed-entity-url() retourne l'URI d'une entité non analysée avec le nom donné. C'est une donnée non-XML référencée dans le DTD du document source. +

+

Syntaxe

+
string unparsed-entity-url(chaîne)
+
+

Arguments

+
chaîne +
Le nom de l'entité non analysée. Si l'argument n'est pas une chaîne, il est converti suivant les règles de la fonction string(). Le nom doit être un nom XML. +
+

Retour

+

L'URI de l'entité non analysée récupérée dans la DTD, si elle existe. Autrement, une chaîne vide. +

+

Définition

+

XSLT 1.0, section 12.4.0 +

+

Support Gecko

+

Non supportée. +

\ No newline at end of file -- cgit v1.2.3-54-g00ecf