title: How to keep rows together on a page xsl fo?
body: <p>I want code and its description to be displayed on same page. If the description is long then code and description both should be displayed on next page.</p>
  <pre><code>&lt;xsl:template match=&quot;LineOfTastingNote&quot;&gt;
  &lt;fo:table-row font-family=&quot;Avenir&quot; keep-together.within-page=&quot;always&quot; &gt;
    
    &lt;fo:table-cell padding-bottom=&quot;0.5mm&quot; padding-left=&quot;0.1cm&quot; &gt;
      &lt;fo:block font-size=&quot;8pt&quot; text-align=&quot;left&quot; font-weight=&quot;bold&quot;&gt;
     &lt;xsl:value-of select=&quot;Code&quot; /&gt; 
      &lt;/fo:block&gt;
    &lt;/fo:table-cell&gt;
    
  &lt;/fo:table-row&gt;
  
   &lt;fo:table-row font-family=&quot;Avenir&quot; &gt;
    
    
    &lt;fo:table-cell padding-left=&quot;0.1cm&quot; padding-bottom=&quot;0.5mm&quot; padding-right=&quot;8cm&quot; &gt;
      &lt;fo:block font-size=&quot;8pt&quot; text-align=&quot;left&quot;&gt;
      &lt;xsl:value-of select=&quot;Description&quot; /&gt; 
      &lt;/fo:block&gt;
    &lt;/fo:table-cell&gt;
  
  &lt;/fo:table-row&gt;
  
  
  
   &lt;/xsl:template&gt;
  </code></pre>
  <p><strong>Example:</strong></p>
  <pre><code>product1
  Apple Cider vineger1
  product2
  Apple Cider vineger2
  *
  *
  *
  
  productlastofpage
  -------------------------------end of page 1 
  -------------------------------start of page 2
  Apple Cider vinegerend
  
  
   -------------------------------endof page 2
  </code></pre>
  <p>I want code productlastofpage to be displayed on page 2 with its description 'Apple Cider vinegerend', tried keep-together.within-page=&quot;always&quot; but no luck.</p>