🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fr.comp.text.xml
Article #9745

Sommer un calcul

#9745
From: Sydney
Date: Wed, 14 Feb 2001 10:49
19 lines
1710 bytes
Salut

Voici un extrait de mon fichier XML
         <module nom="Introduction aux Syst&#232;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. On se situe dans un noeud module

Comment faire?

merci
A+
Sydney
Technical Details
Message-ID: <96dnk2$13g$1@capella.worldonline.fr>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!cyclone-sf.pbi.net!63.208.208.143!feed2.onemain.com!feed1.onemain.com!fr.clara.net!heighliner.fr.clara.net!news.worldonline.fr!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII-7-bit
X-Google-Thread: 114f60,4a899d71806a4395
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-02-14 02:46:03 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!cyclone-sf.pbi.net!63.208.208.143!feed2.onemain.com!feed1.onemain.com!fr.clara.net!heighliner.fr.clara.net!news.worldonline.fr!not-for-mail
From: "Sydney" <sydney@ifrance.com>
Newsgroups: fr.comp.text.xml
Subject: Sommer un calcul
Date: Wed, 14 Feb 2001 11:49:17 +0100
Organization: World Online France News server
Lines: 21
Message-ID: <96dnk2$13g$1@capella.worldonline.fr>
NNTP-Posting-Host: ppp-54.dialup-176.worldonline.fr
Mime-Version: 1.0
Content-Type: text/plain;
 charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Trace: capella.worldonline.fr 982147522 1136 212.83.176.54 (14 Feb 2001 10:45:22 GMT)
X-Complaints-To: abuse@worldonline.fr
NNTP-Posting-Date: 14 Feb 2001 10:45:22 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