[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Section Orientation
First, your new template is not working
because you aren't understanding how XSL templates and parameters
work. You can't reset a global parameter from within a
template. The effect of your template is as follows:
1. When a sect1 with attribute @orient='l'
is encountered, set a local parameter named 'page.orientation'.
2. When the template is finished, the
parameter goes out of scope, and no further processing is done on the
sect1.
You have overridden the default processing
for sect1 when that attribute is set, so that is why the section
disappears. In general, when you want to extend the processing done for a
match, you would use xsl:apply-imports to apply the standard DocBook templates
to the sect1. But the parameter setting will have no effect, because
the page orientation is set when a page
sequence in FO is started, but a sect1 does not start a page
sequence.
Unfortunately, switching orientation in the
middle of a page sequence is not a standard feature in XSL-FO. It can be
done, but, you will need to apply Ken Holman's brilliant Page Sequence Master
Interleave (PSMI) solution:
|
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]