Hi All,
I have been working on this issue for the past two days. But could not get the solution.
Any help on this would be grateful.
I am using xsl 1.0 and fop 0.20.5. I am generating pdf from xml using xsl-fo's. My part of xml is as follows:
<group_head>
<description>Desc1</description>
<option type="type1">
<description>Option1</description>
<code>01</code>
<status>Standard</status>
</option>
<option type="type2">
<description>Option2</description>
<code>02</code>
<status>NonStandard</status>
</option>
</group_head>
<group_head>
<description>Desc2</description>
<option type="type3">
<description>Option3</description>
<code>01</code>
<status>Standard</status>
</option>
<option type="type4">
<description>Option4</description>
<code>02</code>
<status>Standard</status>
</option>
<option type="type4">
<description>Option5</description>
<code>02</code>
<status>Standard</status>
</option>
</group_head>
I have to loop through the <group_head> element and loop through its child element <option> and
print it on a table of rows(say for example first row will have <description>, second row will have <option> elements like <description> and <status> and it continues for all the <group_head> elements) in my pdf page like as follows.
The number of <group_head> elements and child <option> elements may vary.
Desc1
______________________
Option1 Standard
______________________
Option2 NonStandard
______________________
Desc2
______________________
Option3 Standard
______________________
Option4 Standard
______________________
Option5 Standard
______________________
The table starts at the top left corner of the area and flows down and then across. i.e i have to split the page such that half of the content comes on the left half of the page and half on the right side.
The important thing is the list(number of group_head elements) may be more than one page long, The flow is from the bottom of the second column of the first page to the first column of the second page of the pdf.
And one more important point is if the table goes to the second page, say for example we have some 4 <group_head> elements left to print on the second page, then 2 <group_head> elements should come on first colum of the second page and 2 <group_head>
elements should come on the second column.
Basically they want split it in two columns.
Please suggest me some ideas. Please get back to me if I am not clear with my question.
Regards,
Venkat