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/3/2005 4:28:00 PM Hi,
for counting you would use something like
<xsl:value-of select="count('POD/SomeNode/NodesToCount')" />
For the 2nd instance of the "Details" element within a POD element
<xsl:value-of select="POD/Details[2]" />
For the sum of all POD/Detail lines (if the value of that node
contains a numeric)
<xsl:value-of select="sum(POD/Details)" />
Hope this helps,
Marvin Smit.
On Wed, 03 Aug 2005 06:18:13 -0700, Adam Vaughan
<pornos18@h...> wrote:
>
>
>Ah finnaly got this working so i can reply :P
>
>>>sounds like you are describing the XSLT Debugger from >>the Altova's
>XMLSpy?
>
>yes thats right i was...but i've come to the conclusion thats not what i
>need. Instead i've now found the XPath Evaluator.
>
>But cannot find the specific code to get what i want.
>
>i've queried the XML (red) file and get the Xpath box up.
>
>
>A count of the number of detail lines
>Show the content of the 2nd instance of the POD detail
>Total the value of the POD detail lines
>
>PS my main/starting node is called POD
>
>
>*** Sent via Developersdex http://www.developersdex.com ***
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
