XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
push singhSubject: using different margin settings in
Author: push singh
Date: 27 Mar 2006 03:36 AM
i have a master.xsl which is used to generate the word document,
in my case, my requirement is to pick a specific margin settings depending upn the value of <fo:page-sequence>, but some how specifications always picks the last margin settings i.e. in the followings

<fo:layout-master-set>
<fo:simple-page-master master-name="content" margin-bottom="1.2in" margin-right="1in" margin-left="1in" margin-top="0.5in"
page-height="29.7cm"
page-width="21cm">
<fo:region-body />
<fo:region-after />
</fo:simple-page-master>

<fo:simple-page-master master-name="tableofcontents" margin-bottom="1in" margin-right="1in" margin-left="1in" margin-top="0.5in"
page-height="29.7cm"
page-width="21cm">
<fo:region-body />
<fo:region-after />
</fo:simple-page-master>

if the <fo:layout-master-set> tag has more than one <fo:simple-page-master> tags, it always picks the last margin settings no matter what is provided through <fo:page-sequence master-reference=" ">

Although I have tried few things including the following one inside the </fo:layout-master-set> tag
</fo:page-sequence-master>
<fo:page-sequence-master master-name="content">
<fo:single-page-master-reference master-name="content"/>
</fo:page-sequence-master>

but it also didn’t work out and the issue still persists. Please help me out. if you have any inputs.

Postnext
Lisa BergqvistSubject: using different margin settings in
Author: Lisa Bergqvist
Date: 27 Mar 2006 08:07 AM
Hi,
I havent tried different layouts yet,but will soon, but the structure that should work is as below:
The page-sequence is defined after the layout-master set end tag, and the flow is following. Is that how you do it?


<fo:root>
<fo:layout-master-set>
<!--A4 format is defined in simple-page-master-->
<fo:simple-page-master master-name="A4" page-width="210mm" page-height="297mm" margin-top="1cm" margin-bottom="1cm" margin-left="1cm" margin-right="1cm">
<fo:region-body margin="3cm"/>
<fo:region-before extent="2cm"/>
<fo:region-after extent="2cm"/>
<fo:region-start extent="2cm"/>
<fo:region-end extent="2cm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="A4">
<fo:flow flow-name="xsl-region-body">

Posttop
push singhSubject: using different margin settings in
Author: push singh
Date: 27 Mar 2006 08:58 AM
thanks for ur reply.
Although i am following the same pattern.
but some how it does not work.if something else come across ur way please do send me also.:)

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.