[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: DOCBOOK-APPS: Writing a customization layer for FOP columns
On Fri, Apr 05, 2002 at 08:57:47AM -0800, Carlos wrote: > Good Morning! > > I found the setup.pagemasters template > > How can I use left2 and right2 on my documents? Is that a parameter or a > variable? If it's not, how I write the customization layer to use the right > pagemasters? The left2, right2, etc. are the named page masters predefined in DocBook XSL, along with several others. They all end up as masters at the top of each FO file. The various templates call the different masters in different contexts as needed. You use parameters to select single or double sided, one or multicolumn, and set margins. The parameters are documented at: http://docbook.sourceforge.net/release/xsl/1.50.0/doc/fo/rn15.html A sample fo customization file looks like this: <?xml version='1.0'?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" version='1.0'> <xsl:import href="../docbook-xsl-1.50.0/fo/docbook.xsl"/> <xsl:param name="double.sided" select="1"/> <xsl:param name="column.count" select="2"/> <xsl:param name="page.margin.inner" select="'1in'"/> <xsl:param name="page.margin.outer" select="'0.5in'"/> <!-- etc. --> </xsl:stylesheet> The 'select.pagemaster' template selects the right page master based on context and parameters. In this example, the double.sided parameters means different left and right pages, and the column.count=2 means you get left2 and right2 masters for your body pages. Bob Stayton 400 Encinal Street Publications Architect Santa Cruz, CA 95060 Technical Publications voice: (831) 427-7796 Caldera International, Inc. fax: (831) 429-1887 email: bobs@caldera.com > > On 04/05/02 8:44, "Carlos" <carlos@cvc.edu> wrote: > > > I want to use something like the fragment below with my XSL-FO stylesheets. > > > > <fo:root> > > <fo:layout-master-set> > > <fo:simple-page-master master-name ="page-first" > > page-height ="8.5in" > > page-width ="11in"> > > <fo:region-body margin-top ="5cm" > > margin-bottom =".5in" > > margin-left =".5in" > > margin-right =".5in" > > column-count ="3"/> > > <fo:region-before extent="6cm"/> > > </fo:simple-page-master> > > </fo:layout-master-set> > > > > Which template should I modify? > > > > Carlos > > -- > Carlos E. Araya > ---+ WebCT Administrator/Trainer > P | California Virtual Campus > - | C/O De Anza College > G | 21250 Stevens Creek Blvd > ---+ Cupertino, CA 95014 > > email carlos@cvc.edu > web http://www.cvc1.org/ (work) > http://www.silverwolf-net.net (personal) > phone 408 257 0420 (work) > PGP Fingerprint: E629 5DFD 7EAE 4995 E9D7 3D2F 5A9F 0CE7 DFE7 1756 > > Three things are certain: > Death, taxes, and lost data. > Guess which has occurred. > --
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC