[Home] [By Thread] [By Date] [Recent Entries]
hi!
i have a table with some columns which number depends of the data which arrives to the xsl. if the number of columns is too high, the result is not really ideal ;) as u can imagine, because the site will end somewhere.... so here is my question. can i say, that if a specific number of columns are open (or if the end of the sitewidth is arrived...), make a "break" , make a new site, and show the rest of the columns on the next site? here is an example with one row: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg"> <xsl:template match="test"> <xsl:processing-instruction name="cocoon-format">type="text/xslfo"</xsl:processing-instruction> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg"> <fo:layout-master-set> <fo:simple-page-master master-name="page1" page-width="210mm" page-height="297mm" margin-top="10mm" margin-bottom="5mm" margin-left="20mm" margin-right="10mm"> <fo:region-body margin-top="10mm" margin-bottom="5mm" /> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="page1">
<fo:flow flow-name="xsl-region-body">
<fo:table>
<fo:table-column column-width="60mm" /><fo:table-column column-width="45mm" /> <xsl:for-each select="inventorlist">
<fo:table-column column-width="10mm" />
</xsl:for-each><fo:table-header> <fo:table-row> <fo:table-cell border-width="0.1mm" border-color="black" border-style="solid"> <fo:block font-famliy="sans-serif" font-size="9pt" start-indent="1.5mm">Criteria</fo:block> </fo:table-cell> <fo:table-cell border-width="0.1mm" border-color="black" border-style="solid"> <fo:block font-famliy="sans-serif" font-size="9pt" start-indent="1.5mm">Evaluation</fo:block> </fo:table-cell> <xsl:for-each select="inventorlist"> <fo:table-cell border-width="0.1mm" border-color="black" border-style="solid"> <fo:block font-famliy="sans-serif" font-size="9pt" start-indent="1.5mm"> <xsl:value-of select="position()" /> </fo:block> </fo:table-cell> </xsl:for-each> </fo:table-row> </fo:table-header> <fo:table-body> <!--eval a--> <fo:table-row> <!--bewertungstitle--> <fo:table-cell border-width="0.1mm" border-color="black" border-style="solid" border-top-width="0.6mm"> <fo:block font-famliy="sans-serif" font-size="9pt" start-indent="1.5mm">Likelihood the invention is (or will be) embodied in an SAP product</fo:block> </fo:table-cell> <!--bewertungskriterien--> <fo:table-cell border-width="0.1mm" border-color="black" border-style="solid" border-top-width="0.6mm"> </fo:table-cell> <xsl:for-each select="inventorlist"> <!--bewertung--> <fo:table-cell border-width="0.1mm" border-color="black" border-style="solid" border-top-width="0.6mm"> </fo:table-cell> </xsl:for-each> </fo:table-row> </fo:table-body> </fo:table> </fo:flow> </fo:page-sequence> </fo:root> </xsl:template> </xsl:stylesheet> xml: <test> <inventorlist>
<eval>
<a>1</a>
</eval>
</inventorlist>
<inventorlist>
<eval>
<a>1</a>
</eval>
</inventorlist>
<inventorlist>
<eval>
<a>1</a>
</eval>
</inventorlist>
<inventorlist>
<eval>
<a>1</a>
</eval>
</inventorlist>
<inventorlist>
<eval>
<a>1</a>
</eval>
</inventorlist>
<inventorlist>
<eval>
<a>1</a>
</eval>
</inventorlist>
<inventorlist>
<eval>
<a>1</a>
</eval>
</inventorlist>
<inventorlist>
<eval>
<a>1</a>
</eval>
</inventorlist>
<inventorlist>
<eval>
<a>1</a>
</eval>
</inventorlist>
<inventorlist>
<eval>
<a>1</a>
</eval>
</inventorlist>
<inventorlist>
<eval>
<a>1</a>
</eval>
</inventorlist>
</test>-- Herwig Posedu unycom Information Technology Services GmbH Schmiedlstrasse 1/III A-8042 Graz Tel: ++43/316/818828-19 Fax: ++43/316/818828-38 herwig.posedu@xxxxxxxxxx www.unycom.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



