[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

selective non duplicates

Subject: selective non duplicates
From: "C Wilson" <corey@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 7 Jul 2003 09:29:43 -0400
select non duplicates
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.pedrini@xxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Monday, July 07, 2003 08:47
Subject: Re:  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.robert21@xxxxxxxxxxxxxx>
A: "XSL-List" <XSL-List@xxxxxxxxxxxxxxxxxxxxxx>
Data invio: lunedì 7 luglio 2003 14.19
Oggetto:  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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.