I am trying to select the non duplicate entries out of my xml document, but
it doesn't seem to be working. I do not want the distinct productId's out
of the whole document, only the distinct productId in the current
"clients/client/commissions/commission/product" The statement I have below
seems to give me all of them, no matter if they are a duplicate or not....
(statement [1] gives me the same results as statement [2]) This leads me to
believe that not(productId = preceding-sibling::product/productId is always
true...
[1]
sum(clients/client[commissions/commission/earnerId =
$curEarner]/products/product[id=../../commissions/commission[earnerId=$curEa
rner]/product/productId and not(productId =
preceding-sibling::product/productId]/count)
[2]
sum(clients/client[commissions/commission/earnerId =
$curEarner]/products/product[id=../../commissions/commission[earnerId=$curEa
rner]/product/productId]/count)
<earners>
<earner>
<id />
<name />
</earner>
</earners>
<clients>
<client>
<id>
<name>
<commissions>
<commission>
<id />
<earnerId />
<product>
<productId />
<rate />
</prodcut>
</commission>
</commissions>
<products>
<product>
<id />
<name />
</product>
</products>
</client>
</clients>
----- Original Message -----
From: "marco pedrini" <marco(_dot_)pedrini(_at_)engisan(_dot_)it>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Monday, July 07, 2003 08:47
Subject: Re: [xsl] number total of page
hallo Robert21,
time ago I asked the list for the same question, this was the answer, it
works fine!
Always look inside the FAQ, is your friend.
http://www.dpawson.co.uk/xsl/sect3/N8703.html
Hope it helps.
Ciao
Marco
-----Messaggio Originale-----
Da: <a(_dot_)robert21(_at_)libertysurf(_dot_)fr>
A: "XSL-List" <XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com>
Data invio: lunedì 7 luglio 2003 14.19
Oggetto: [xsl] number total of page
Hi I'm generating a (PDF file) XSL-FO code from some XSLT
script,
I'm trying to get the number total of page , but I don't
achieve to get it, could you help me to find how to get it?
********** L'ADSL A 20 EUR/MOIS**********
Tiscali propose l'ADSL le moins cher du marché : 20 EUR/mois et le modem
ADSL offert !
Pour profiter de cette offre exceptionnelle, cliquez ici :
http://register.tiscali.fr/adsl/
Offre soumise à conditions.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list