PDF生成でmod仕様を生成しようとしています。私がそれを生成する方法は、次のようなcontents.xmlファイルを使用することです...
<?xml version="1.0" encoding="UTF-8"?>
<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">
<title>Mod Spec</title>
<?dbfo-need height="8in" space-before="3em" ?>
<xi:include href="first.xml"/>
<section>
<title>View Stuff</title>
<xi:include href="./stuff/panel.xml"/>
</section>
<section>
<title>Nav things</title>
<xi:include href="./things/about.xml"/>
<xi:include href="./things/control.xml"/>
<xi:include href="./things/launch.xml"/>
</section>
...(more sections with includes)
</article>
これで、上記のxmlがXSL-FOに送信される前に、ヘッダー、フッター、およびテーブルスタイルのものを設定するスタイルシートもあります。このスタイルシートでは、ページ分割を追加する必要があります。
だから私の質問は:contents.xmlのすべてのsperatemodspecsの間にページ分割を追加するにはどうすればよいですか?
http://www.sagehill.net/docbookxsl/PageBreaking.html状態を編集します。これをXSLTに追加する必要があります。
<xsl:template match="processing-instruction('hard-pagebreak')">
<fo:block break-after='page'/>
</xsl:template>
<?hard-pagebreak?>
.xmlファイルで取得されるようにします。ソリューションを可能な限りコンパクトに保ちたいので、スタイルシートを編集して、最初のパス<?hard-pagebreak?>
で各<xi:include>
後に追加され、その後にセージヒルのテンプレートが追加されるようにするにはどうすればよいですか?