IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Summing filtered values Options · View
highdiver
Posted: Sunday, February 12, 2012 7:23:51 AM
Rank: Member

Joined: 1/26/2012
Posts: 27
Hi!

I'm having trouble with summing two or more amounts.

I have a variable number of nodes, and each of them has two charges with different ID numbers (for example '1' and '2').

I need to add only the values with ID=2, and skip the rest.

I have to use XSLT1, and SUM function isn't doing the job if I filter the data first: [XSLT] The input connection of the icon 'values' of the aggregate function 'core.sum' is invalid. In XSLT 1.0 this aggregate function is supported only when 'values' is directly connected to a structure component.

Is there any workaround?

Please help!
vlad
Posted: Monday, February 13, 2012 8:46:39 AM
Rank: Advanced Member

Joined: 12/13/2005
Posts: 2,856
Location: Mauritius
Use XSLT2.
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.