Thursday, September 11, 2014

Having fun with docbook

For some reason you need to apply the dbfo at different level to apply properties to an element:
<example>
<?dbfo pgwide="1"?> <!-- example level -->
<title>
Full example
</title>
<programlisting language="csharp">
<?dbfo keep-together="auto" ?> <!-- at programlisting level -->
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="MyCode.cs" parse="text"/></programlisting>
</example>
Reference: http://www.sagehill.net/docbookxsl/PageBreaking.html

Don't ask...

No comments: