bonsoir,

je tente depuis un moment d'executer les fonctions exslt sans succès.

Pour <xsl:value-of select="math:sin(10)"/> par ex. et quelques soit l'extension j'obtiens invariablement :

L'espace de noms http://exslt.org/strings ne contient pas de fonctions.

J'ai tenté de mettre mes propres namespace sans succès...

Qu'y a-t'il d'anormal dans ma liste ?

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
 
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        xmlns:date="http://exslt.org/date"
        xmlns:math="http://exslt.org/math"
        xmlns:str="http://exslt.org/strings"
        xmlns:my="http://192.168.0.10/EXSLT/exslt/my"
        xmlns:func="http://exslt.org/functions"
        extension-element-prefixes="math date func my str"
>
    <xsl:import href="exslt/date/date.xsl" />
    <xsl:import href="exslt/math/math.xsl" />
	<xsl:import href="exslt/str/str.xsl" />    
	<xsl:import href="exslt/my/my.xsl" />
 
        <xsl:output method="xml"
                version="1.0"
                encoding="UTF-8"
                media-type="xml"
                omit-xml-declaration="yes"
                indent="yes"/>
 
        <xsl:template match="/">
                    <xsl:apply-templates/>
        </xsl:template>
 
        <xsl:template match="root">
            <xsl:apply-templates/>
        </xsl:template>
 
        <xsl:template match="tst">
            <root>
                <xsl:apply-templates/><xsl:value-of select="math:sin(10)"/>
            </root>
        </xsl:template>
 
</xsl:stylesheet>