[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Starting a page sequence at the section level
I don't know of a light solution to this requirement. One approach would be to modify the template with match="chapter" in fo/component.xsl. Instead of generating a single page-sequence, you would need to parse the content of a chapter into multiple page sequences. Processing sequential elements usually requires using a recursive template that selects all the content up to the next special section, which can be a bit tricky. Another appoach uses the PSMI technique [1] that G. Ken Holman created. It is typically used to insert a landscape page sequence in the middle of a page sequence to handle a landscape table, but it could be adapted to your two-column page sequences instead. It requires inserting some markers into the FO output for your special sections, then post processing the FO output to detect such markers. When detected, the post-processing stylesheet closes the current page-sequence, puts the marker section in a new page-sequence with different page-master, and starts a new regular page-sequence for the content after the marker section. But I have to say it is tricky to implement as well. [1] http://www.cranesoftwrights.com/resources/psmi/index.htm Bob Stayton Sagehill Enterprises bobs@sagehill.net ----- Original Message ----- From: "Emmanuel Bégué" <emmanuel.begue@diadeis.com> To: <docbook-apps@lists.oasis-open.org> Sent: Tuesday, February 26, 2008 9:23 PM Subject: [docbook-apps] Starting a page sequence at the section level > Hello, > > We have a document of the following structure: > book/part/chapter/section/section/section... > > When generating PDF, we would like to use a specific > page setup for one of the deep sections that needs to > be in two-column mode, whereas the rest of the book > (all other divisions and sections) should be in one > column mode. > > If I'm correct, this means generating a page-sequence > in FO output at the section level (and then starting > another page-sequence at the next section). > > Is this possible, using Docbook-xsl (version 1.73.2)? > > Apparently only chapters (for our document) start > page sequences, and not sections which are rendered > as blocks under fo:flow started at the chapter level. > > What would be the best (and lightest) customization > approach to achieve this goal? > > Many thanks for any input. > > Regards, > Emmanuel Bégué > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]