Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XML XPath

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



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