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