title: XSL-FO: Forcing a page break between each <xi:include>
body: <p>I'm trying to generate a mod spec with pdf generation.  The way I have it be generated is using a contents.xml file which looks like this...</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;article xmlns="http://docbook.org/ns/docbook"
  xmlns:xlink="http://www.w3.org/1999/xlink"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:xi="http://www.w3.org/2001/XInclude"
  xsi:schemaLocation="http://docbook.org/ns/docbook http://schema.5d.ca/docbook/docbook.xsd
                      http://www.w3.org/2001/XInclude http://schema.5d.ca/docbook/XInclude.xsd"&gt;
  
  &lt;title&gt;Mod Spec&lt;/title&gt;
  &lt;?dbfo-need height="8in" space-before="3em" ?&gt;
  &lt;xi:include href="first.xml"/&gt;    
  &lt;section&gt;
      &lt;title&gt;View Stuff&lt;/title&gt;
      &lt;xi:include href="./stuff/panel.xml"/&gt;
  &lt;/section&gt;
  &lt;section&gt;
      &lt;title&gt;Nav things&lt;/title&gt;
      &lt;xi:include href="./things/about.xml"/&gt;        
      &lt;xi:include href="./things/control.xml"/&gt;
      &lt;xi:include href="./things/launch.xml"/&gt;        
  &lt;/section&gt;
  ...(more sections with includes)
  &lt;/article&gt;
  </code></pre>
  
  <p>Now I also have a stylesheet that sets header, footer, and table style stuff before the above xml is sent off for XSL-FO, and this stylesheet will need to add the page breaks.</p>
  
  <p>So my question is:  How do do I add a page break between all my sperate modspecs in contents.xml?</p>
  
  <p><strong>EDIT</strong>
  <a href="http://www.sagehill.net/docbookxsl/PageBreaking.html" rel="nofollow">http://www.sagehill.net/docbookxsl/PageBreaking.html</a> States I should add this to my XSLT:</p>
  
  <pre><code>&lt;xsl:template match="processing-instruction('hard-pagebreak')"&gt;
     &lt;fo:block break-after='page'/&gt;
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p>So that it picks up <code>&lt;?hard-pagebreak?&gt;</code> in the .xml files.  I would like to keep the solution as compact as possible, so how do I edit my stylesheet so that a first pass will add the <code>&lt;?hard-pagebreak?&gt;</code> after each <code>&lt;xi:include&gt;</code> followed by the template given my sagehill?</p>