Article View: fr.comp.text.xml
Article #9728Sommer un calcul
From: Sydney
Date: Sun, 11 Feb 2001 13:35
Date: Sun, 11 Feb 2001 13:35
19 lines
1613 bytes
1613 bytes
Salut
Voici un extrait de mon fichier XML
<module nom="Introduction aux Systèmes Informatiques"
coeff="1">
<note obtenu="14" coeff="2" type="DS" date="01/12/2000"/>
<note obtenu="6" coeff="1" type="TP" date="16/11/2000"/>
</module>
Je veux creer un named-template qui calcule la moyenne de ce module.
Je pensais utiliser la fonction sum mais son prototype ne le permet pas, en
effet
sum(note/@obtenu*note/@coeff) n'est pas correct. Car le calcul est de type
number et non de type node-set.
Comment faire?
merci
A+
Sydney
Technical Details
Message-ID:
<9664aq$h3f$1@front9.grolier.fr>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-04!supernews.com!xfer13.netnews.com!netnews.com!opentransit.net!fr.clara.net!heighliner.fr.clara.net!grolier!club-internet!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII-7-bit X-Google-Thread: 114f60,4a899d71806a4395,start X-Google-Attributes: gid114f60,public X-Google-ArrivalTime: 2001-02-11 05:35:04 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-04!supernews.com!xfer13.netnews.com!netnews.com!opentransit.net!fr.clara.net!heighliner.fr.clara.net!grolier!club-internet!not-for-mail From: "Sydney" <sydney@ifrance.com> Newsgroups: fr.comp.text.xml Subject: Sommer un calcul Date: Sun, 11 Feb 2001 14:35:53 +0100 Organization: Club-Internet (France) Lines: 20 Message-ID: <9664aq$h3f$1@front9.grolier.fr> NNTP-Posting-Host: nas12-220.mci.club-internet.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: front9.grolier.fr 981898394 17519 213.44.86.220 (11 Feb 2001 13:33:14 GMT) NNTP-Posting-Date: 11 Feb 2001 13:33:14 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200