Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XML XPath

From: Marvin Smit <marvin.smit@-----.--->
To: 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 ***



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent