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: How to set the odd and even page into different layout


Hi all,
I'm trying to modify the page layout of my pdf. My attempt is letting the whole content in odd page (including header and footer) keep right, and let the content in even page keep left, so when i bound the pdf into a book, the content is more easier to read.
I think this may related to the page master and page margin, but i don't know how to select the odd/even page and set the attribute correctly.

Here is my try, please correct my mistakes, thanks so much!

  <xsl:template name="page.properties">
<xsl:param name="pageclass" select="''" />
<xsl:param name="sequence" select="''" />
<xsl:choose>
<xsl:when test="$sequence = 'odd'"> 
<fo:simple-page-master master-name="odd"  
 page-height="297mm" page-width="210mm"  
 margin-top="20mm" margin-bottom="20mm"  
 margin-left="15mm" margin-right="35mm"/>    
</xsl:when>
<xsl:otherwise>
<fo:layout-master-set> 
<fo:simple-page-master master-name="even"  
 page-height="297mm" page-width="210mm"  
 margin-top="20mm" margin-bottom="20mm"  
 margin-left="35mm" margin-right="15mm"/>  
</fo:layout-master-set>
</xsl:otherwise>
</xsl:choose>
</xsl:template>

Thanks first!

Yours sincerely,
Mona


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