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.

user defined function creating multiple output Options · View
michel777
Posted: Sunday, July 24, 2016 6:51:55 AM
Rank: Advanced Member

Joined: 1/23/2016
Posts: 54
Hi,

how to generate multiple outputs (maxOccours="unbounded") from a single iput (maxOccours="1") ? Is there any "add new element to output" ?

Task: the input represents a single element. Using rules should be generated several output elements. The count of elements is determined during the transformation.

How to do it ?

Thanks a lot in advance ,

Michel
vlad
Posted: Sunday, July 24, 2016 10:23:44 AM
Rank: Advanced Member

Joined: 12/13/2005
Posts: 2,856
Location: Mauritius
There is a function generate-sequence which allows you to produce multiple results dynamically
michel777
Posted: Sunday, July 24, 2016 7:58:39 PM
Rank: Advanced Member

Joined: 1/23/2016
Posts: 54
Vlad: thanks a lot, especially for your effort on the weekend.

Just a question: I have an array of integer, but how to create the elements (complex type ) to each of them ?

Thanks,

Michel
that
Posted: Monday, July 25, 2016 4:41:59 PM
Rank: Advanced Member

Joined: 6/16/2006
Posts: 487
Location: AT
Maybe the function replicate-item is what you need.
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.