Re: Opérations mathématiques

Eric van der Vlist <[email protected]>
Newsgroups gmane.text.xml.french.tech
Organization Dyomedea (http://dyomedea.com)
Message-ID <[email protected]>
Bonjour,
Le lundi 26 juin 2006 à 08:57 +0200, Terence SINDABIZERA a écrit :
> Bonjour a tous.
>    
>   J'aimerai faire certaines opérations mathématiques avec XSLT.
> Existe-il en XSLT une fonction qui extrait la racine carree d'un reel?
> (par exemple: la racine carree de 9 est 3). Si quelqu'un a une idee ou
> une facon de contourner le probleme pour trouver la reponse, j'attends
> son coup de main.

C'est impossible en standard avec XPath et XSLT mais voici trois pistes
à creuser suivant votre contexte :

     1. Utilisation de EXSLT si le processeur XSLT que vous utilisez le
        permet : http://exslt.org/math/index.html
     2. Utilisation d'une extension donnant accès à une bibliothèque
        mathématique. C'est le cas par exemple des processeurs écrits en
        Java (Saxon, Xalan, ...) qui donnent accès aux API Java.
     3. FXSL : http://fxsl.sourceforge.net/

Cordialement,

Eric van der Vlist

-- 
GPG-PGP: 2A528005
If you have a XML document, you have its schema.
                                                  http://examplotron.org
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(ISO) RELAX NG   ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------


-- Attached file included as plaintext by Ecartis --

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQBEn5PsDvn+ZCpSgAURAnr4AJ9wlimQnx/rB9v2GPGxfuUo8745WQCdFr6T
8GNUG+hxD+BivUCjg8cbL2E=
=9OFR
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.