Subject: Re: [xsl] calculate unique items in xsl From: Joerg Heinicke <joerg.heinicke@xxxxxx> Date: Thu, 10 Oct 2002 22:13:16 +0200 |
Thanks for your help in my previous post! Given the below xml,how can I get the
the number of unique warehouse codes? Do I need to use <xsl:key>?
<inventory> <item> <warehousecode>BA</warehousecode> <item>bolt</item> <quantity>34</quantity> </item> <item> <warehousecode>BA</warehousecode> <item>nail</item> <quantity>50</quantity> </item> <item> <warehousecode>AC</warehousecode> <item>tack</item> <quantity>5</quantity> </item> <item> <warehousecode>BA</warehousecode> <item>hammer</item> <quantity>10</quantity> </item> <item> <warehousecode>AD</warehousecode> <item>screwdriver</item> <quantity>60</quantity> </item> <item> <warehousecode>AB</warehousecode> <item>wrench</item> <quantity>13</quantity> </item> </inventory>
Desired output:
Number of unique warehouse codes: 4
Thanks for helping an xsl newbie!!
RJ
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] calculate unique items in xsl, RJ P | Thread | RE: [xsl] calculate unique items in, Michael Kay |
Re: [xsl] removing tab formatting d, Joerg Heinicke | Date | RE: [xsl] removing tab formatting d, Richard Lander |
Month |