Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: count usage in XSLT. count usage in XSLT.To: NULL Date: 9/8/2006 3:43:00 PM Hi All, I have a question about the count funciotn in XSLT. I have a xml file like below: <test> <n1> 33 </n1> <n2> 22 </n2> </test> <test> <n1> </n1> <n2></n2> </test> .. In this XML, there are a lots of <test/> ndoe. which contain sub nodes <n1/><n2/>... Shoud we have any method to count the node<test> which only have some value in its sub node. For above exampe, the count of <test> should return 1. It just count first <test> node because its sub node have some data inside such as 33, 22. And don't count second <test> ndoe because its sub node have empty value. Anybody know how to do this kind of count in XSLT? Thanks in advance. Jim | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
