Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Is this possible to do in XSL? Is this possible to do in XSL?To: NULL Date: 8/3/2005 7:46:00 PM I have what I think is a horrible xml file to work with and don't know how I can do this with xsl. Using the xml file excerpt below I need to sum the price for each /Order/Prod/Prod/@nID that is equal to /Order/Summary/Report/Record/AssocProductID where (SelNo=0 and @tID=0) or (@nID=2 and @tID=9). Any suggestions would really be appreciated. Nothing I can think of to try gets the results I need. Thank you, Sarah <Order> <Prod> <Prod nID="93"/> <Prod nID="227"/> </Prod> <Summary> <Report> <Record nID="1" tID="0"> <Price pvalue="8976"/> <SelNo>0</SelNo> <AssocProductID>93</AssocProductID> </Record> <Record nID="1" tID="0"> <Price pvalue="8976"/> <SelNo>1</SelNo> <AssocProductID>93</AssocProductID> </Record> <Record nID="2" tID="9"> <Price pvalue="600"/> <SelNo>0</SelNo> <AssocProductID>93</AssocProductID> </Record> <Record nID="3" tID="9"> <Price pvalue="200"/> <SelNo>0</SelNo> <AssocProductID>93</AssocProductID> </Record> <Record nID="3" tID="9"> <Price pvalue="400"/> <SelNo>0</SelNo> <AssocProductID>93</AssocProductID> </Record> <Record nID="1" tID="0"> <Price pvalue="855"/> <SelNo>0</SelNo> <AssocProductID>227</AssocProductID> </Record> <Record nID="1" tID="0"> <Price pvalue="825"/> <SelNo>1</SelNo> <AssocProductID>227</AssocProductID> </Record> <Record nID="1" tID="0"> <Price pvalue="30"/> <SelNo>2</SelNo> <AssocProductID>227</AssocProductID> </Record> <Record nID="2" tID="9"> <Price pvalue="400"/> <SelNo>0</SelNo> <AssocProductID>227</AssocProductID> </Record> <Record nID="3" tID="9"> <Price pvalue="400"/> <SelNo>0</SelNo> <AssocProductID>227</AssocProductID> </Record> <Record nID="1" tID="5"> <Price pvalue="500"/> <SelNo>0</SelNo> <AssocProductID>0</AssocProductID> </Record> </Report> </Summary> </Order> | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
