Tuesday, 20 August 2013

Handling dynamic column numbler in xsl fo

Handling dynamic column numbler in xsl fo

How do I create table with dynamic number of columns with xsl fo. The
number of columns varies with each input file but fixed for a single input
file.
Here is a sample xml
<root>
<ColNo>3</ColNo>
<Objects>
<object id= 1>
<prop1 old=5 new=7>
<prop2 old=2 new=1>
<prop3 old=3 new=6>
</object>
</Objects>
</root>
I want a table with like below
Obj1
------------------------------------------
prop1 | prop2 | prop3
-------------------------------------------
old | new | old | new | old | new
-------------------------------------------
5 | 7 | 2 | 1 | 3 | 6
I came across to number-columns-repeated properties.. But unable to
understand how to use it..
Also let me if there is any better approach.
Thanks.

No comments:

Post a Comment