[xsl] as efficient as possible...

Subject: [xsl] as efficient as possible...
From: "Corey Wilson" <corey@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 2 Jul 2003 13:06:27 -0400
XML
---
<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>


XSL
---

./products/product[id=../../commissions/commission[earnerId=$earnerId]/produ
ct/productId]


Problem
-------
I am trying to get a list of the products that are listed in the <products>
node that are also in the <commission/product> node... The way I have above
works.. but it seems to be very slow... I am working with a large amount of
data... but I was curious if there was a better way?   $earnerId would be
the current earner I am trying to calculate totals for... Thanks very much
for any help!!


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread