I've got a list of string values like '123','456','789'
and so on. This list can be very long with a few thousand items. So I have to split it in blocks of max. 750 items.
One idea is to write an own functoid which split in and returns a loopable list. Maybe it is a little bit easier and i could do it direcly in a scripting functoid. But I get the message
`error btm1090: The "Looping" functoid has place holders. Replace these with appropriate links or constants.`
So I don't think that this is possible. Is there a possibility to do it in a Scripting functoid or do I need my own functoid?
I need the splitted values on the one hand to create multiple results lines (by looping) but also the value itself in each line.
Thanks in advance.
Using Inline XSLT Call Template in Scripting functoids you could do something like this.
Functoid 1 (stand-alone):
Functoid 2:
I would use a different approach. Instead of trying to do a restricted loop in Xsl, which is hard, I would generate all the Xml in a C# function, which is pretty easy.
Step 1, write some C# that create the Xml output you need:
An External Assembly is generally preferred but inline works just as well. But, it really doesn't matter, just return this Xml as a string.
Step 2, the only 'trick' you need is to pass the C# output through a Xslt Template so it's treated as Xml, not String content.
disable-output-escaping="yes" is what makes this work.