xslt - Dynamically close the table row if row text Goes to next page in pdf using xsl fo style sheet -


i have requirement , "the content have display in table comes dynamically, if it's goes next page have close table row , open new row in next page of pdf.

i using xsl style sheet , fop_0_95.

sample code have used display table in pdf.

                  <fo:table border="0.0px solid black" width="100%">                     <fo:table-column column-width="100%" />                     <fo:table-body>                         <fo:table-row>                             <fo:table-cell border="0.0px solid black" padding-before="0.5cm">                                 <fo:block font-family="times roman" text-align="left" font-size="9pt">                                 -- content goes here -- row1                                 </fo:block>                             </fo:table-cell>                         </fo:table-row>                         <fo:table-row>                             <fo:table-cell border="0.0px solid black" text-align="left" padding-before="0.2cm">                                 <fo:block font-family="times roman" text-align="left" font-size="9pt">                                     -- content goes here -- row2                                 </fo:block>                             </fo:table-cell>                         </fo:table-row>                     </fo:table-body>                 </fo:table> 

for suppose , if row1 content goes next page , have close row , open new row in next page.

please provide me solution in xsl.

thanks in advance. venkat.

this want ...

<fo:table width="50%"  border="1px solid black" border-before-width.conditionality="retain" border-after-width.conditionality="retain">             <fo:table-body>                 <fo:table-row>                     <fo:table-cell border="1px solid black">                         <fo:block font-family="times roman" text-align="left" font-size="9pt">                             tation luptatum nobis vero illum lorem sed sadipscing ipsum ipsum feugait sea dolor ipsum ut sea. justo possim @ et ipsum dolor et eum ullamcorper aliquyam rebum dolor ea labore hendrerit tempor vero nostrud. et lorem est magna eos et et eos est. quod eos erat nonummy sed vero praesent justo sadipscing nulla stet enim tincidunt vero @ et qui aliquam. et accusam consetetur consetetur consetetur kasd wisi ipsum no dolores tempor aliquyam commodo. ad clita takimata molestie stet stet iriure @ duo magna. labore duis eros aliquyam. nulla sed dolores lorem eirmod. ex erat invidunt dolores amet no sadipscing volutpat sanctus vero eirmod et clita clita duo luptatum ut invidunt.                         </fo:block>                     </fo:table-cell>                 </fo:table-row>   ... 

drawing border on table , retaining border-before , border-after draw border @ page break when cell splits across pages, in image below:

enter image description here


Comments