title: Keep table in single page on PDF
body: <p>I'm using Dita-OT 2.1.0 and I have tried to customize PDF output for my Dita document. My document consists of many tables which can be short or multiple pages long. What I would like to do is to prevent tables from breaking to multiple pages if possible. For example I'd like to have a new page before table if that prevents table from breaking to two pages. </p>
  
  <p>What I tried was to put this into my custom.xsl</p>
  
  <pre><code>&lt;xsl:attribute-set name="tbody.row"&gt;
  &lt;xsl:attribute name="keep-with-next.within-page"&gt;always&lt;/xsl:attribute&gt;
  &lt;/xsl:attribute-set&gt;
  </code></pre>
  
  <p>That seems to do that rows stay kind of on same page but if one row is long enough to go to next page then it goes there, instead of just moving whole table there.. Any ideas how to fix this?</p>
  
  <p>With setting </p>
  
  <pre><code>&lt;xsl:attribute-set name="table"&gt;
      &lt;xsl:attribute name="keep-together.within-page"&gt;always&lt;/xsl:attribute&gt;
  &lt;/xsl:attribute-set&gt;
  </code></pre>
  
  <p>It still doesn't work. Now tables stay on same page but tables longer than 1 page don't show up fully.</p>