Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>As suggested already by @Navin Ravat, you could use a table.</p> <p>This is the general structure of a table in XSL-FO:</p> <pre><code>&lt;fo:table xmlns:fo="http://www.w3.org/1999/XSL/Format"&gt; &lt;fo:table-column width="50mm"/&gt; &lt;fo:table-column width="50mm"/&gt; &lt;fo:table-column width="50mm"/&gt; &lt;fo:table-body&gt; &lt;fo:table-row&gt; &lt;fo:table-cell&gt; &lt;fo:block/&gt; &lt;/fo:table-cell&gt; &lt;fo:table-cell&gt; &lt;fo:block/&gt; &lt;/fo:table-cell&gt; &lt;fo:table-cell&gt; &lt;fo:block/&gt; &lt;/fo:table-cell&gt; &lt;/fo:table-row&gt; &lt;/fo:table-body&gt; &lt;/fo:table&gt; </code></pre> <p>Above is a simple example table with just one row, you can add more of course. Now you have to incorporate this structure into your XSLT stylesheet. For instance, like this:</p> <pre><code>&lt;xsl:element name="fo:table"&gt; &lt;xsl:element name="fo:table-column"&gt; &lt;xsl:attribute name="width"&gt;50mm&lt;/xsl:attribute&gt; &lt;/xsl:element&gt; &lt;xsl:element name="fo:table-column"&gt; &lt;xsl:attribute name="width"&gt;50mm&lt;/xsl:attribute&gt; &lt;/xsl:element&gt; &lt;xsl:element name="fo:table-column"&gt; &lt;xsl:attribute name="width"&gt;50mm&lt;/xsl:attribute&gt; &lt;/xsl:element&gt; &lt;xsl:element name="fo:table-body"&gt; &lt;xsl:element name="fo:table-row"&gt; &lt;xsl:element name="fo:table-cell"&gt; &lt;xsl:element name="fo:block"&gt; &lt;xsl:value-of select="platz/platzdesc[code=2]"/&gt; &lt;/xsl:element&gt; &lt;/xsl:element&gt; &lt;/xsl:element&gt; &lt;/xsl:element&gt; &lt;/xsl:element&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload