Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: XML XPath >Thread Next - Re: XML XPath Re: XML XPathTo: NULL Date: 8/4/2005 11:24:00 AM Hi, the first example is XSLT and won't work in expression builder. The second is the native XPath query, If you have apples, pears , oranges, mango's and bananas and you want to count the total amount "apples, pears & oranges" you'll have to specify what you counting right? You could alter the question and say "count all of the first 3 of those", thereby loosing the name but being less precise (which might work just fine, but sometimes won't ;) ) If those 3 Details nodes are the only nodes beneath the POD element, you could simply count the number of child elements of POD. Hope this helps, Marvin Smit. On Wed, 03 Aug 2005 09:09:26 -0700, Adam Vaughan <pornos18@h...> wrote: > > >If i type in this it gives an error > ><xsl:value-of select="count(POD/CustomerDetails | >POD/CompanyDetails | POD/DeliveryDetails) /"> > >If i type in this: > >count(POD/CustomerDetails | >POD/CompanyDetails | POD/DeliveryDetails) > >It prints out number 3 >This is just counting the number of nodes CD, CD, DD = 3 > >there must be a way to count these without having to type out >'CustomerDetails |POD/CompanyDetails | POD/DeliveryDetails)' > >So i'm thinking that this would be the first instance, and the 2nd >instance would be the next set of nodes...but seeing as these are >separated from each other how do I count them all... > >*** Sent via Developersdex http://www.developersdex.com *** | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
