Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XML XPath

From: Marvin Smit <marvin.smit@-----.--->
To: NULL
Date: 8/3/2005 5:43:00 PM
Hi,

">So what do u think a count of the number of detail lines mean"

good question. I don't know. Sounds like your requirements are not
entirely clear.

For counting all "xxxxxDetail" nodes you could do

   <xsl:value-of select="count(POD/CustomerDetails |
POD/CompanyDetails | POD/DeliveryDetails) /">

Hope this helps,

Marvin Smit.


ps: Are you counting nodes, or summing to values in certain nodes?


On Wed, 03 Aug 2005 08:19:13 -0700, Adam Vaughan
<pornos18@h...> wrote:

>
>
>Thx thats great,
>
>Still one problem, the word 'details'
>
>Is that a specific code word used generally or..?
>
>
>Ok i have tried inputting this line, as it stands it appears in red, 
>
> <xsl:value-of select="sum(POD/Details)" />
>
>so i cut it down to this -- sum(POD/Details)
>this is correct coding but the output i get is Number 0
>
>the tree goes POD/CustomerDetails
>              POD/CompanyDetails
>              POD/DeliveryDetails
>
>with address and contact info coming after that.
>
>So what do u think a count of the number of detail lines mean
>
>*** 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