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.

Looping in Condition and Auto Calculation Options · View
MichaelUA
Posted: Saturday, April 10, 2021 6:39:55 PM
Rank: Newbie

Joined: 10/7/2020
Posts: 8
Location: Ukraine
Hello,

I'm stuck when trying to loop multiple segments (within one parent) in Condition+AutoCalc construction. I'm trying to convert XLM and inside my Altova project I have a usual table where I'm trying to put my values into the appropriate cells. Imagine that in incoming file I have something like <Line><Tax><Amount>, where <Tax> allowed few times. So I need to put all Tax\Amount values into one cell with <cr><lf> (I consider that each <line> goes to it's row). When I'm adding Tax\Amount into a cell as a content of Template, it works and I receive all Amount values. But if I add the same into Condition and/or AutoCalc construction, I receive only the first Amount. Is it possible to loop them all using XPath?

I would appreciate any advice.

Thanks.
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.