OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Hard page break in DocBook 4 document with namespace-aware DocBookXSL stylesheets


I want to insert a hard page break in the XSL-FO document obtained from 
a simple DocBook XML 4 document containing the processing instruction


and transformed with the following customization layer:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format";>

     <xsl:template match="processing-instruction('hard-pagebreak')">
         <fo:block break-after='page'/>

With the namespace aware version of DocBook XSL my template that matches 
on the 'hard-pagebreak' processing instruction is never fired so the 
hard page break is not inserted. With the no namespace version of 
DocBook XSL the template is fired by the xsl:apply-templates element on 
line 350 of docbook/xsl/fo/sections.xsl. This difference between the 
namespace aware and no namespace versions is in both DocBook XSL 1.73.2 
and DocBook XSL 1.74.0. Can anyone figure out why there is this 
difference between the namespace aware and no namespace versions or how 
I could fix/work around it so that I can insert a hard page break with 
the namespace aware version?

A sample DocBook 4 document for reproducing the problem (the 
xsl:apply-templates on line 350 of sections.xsl is inside a template 
that matches on sect1 elements):

<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
     <title>Article Title</title>
         <para>Testing hard page break</para>
         <title>Chapter 1</title>
         <para>There is some text in the first paragraph.</para>
             <title>Subchapter 1.1</title>
             <para>I want this this subchapter on a new page.</para>

Thank you,


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]