I\'ve to populate a total of 20 elements with XSLT. In my XML code I have a with the values, there is anyway to not to write 20 forms?
My XM
I. XSLT 1.0 solution:
This is a specific, recursive solution.
When applied to the following XML document:
the wanted, correct result is produced.
II. XSLT 2.0 solution using the f:repeat()
function of FXSL:
Here we use a very generic function that will repeat its first argument N
(the value of its second argument) times.
The function f:repeat()
itself is very simple: