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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
+ Stylus Studio Technical Forum (14621)
+ Website Feedback (249)
- XSLT Help and Discussion (7625)
-> + Use of before and after string (3) Sticky Topic
-> - How do I substitute element ty... (1)
-> + How does one add working days ... (4)
-> - Help, I have existing XLT and... (1)
-> + Need help on XSLT issue - (2)
-> + EDI to XML Conversion (7)
-> - XML To JSON Conversion using X... (1)
-> + Formatting Paragraphs to same ... (2)
-> - Grouping of records (1)
-> + Problems with xsd 1.1 (4)
-> + XML to HL7 mapping (3)
-> + XSLT 3 and Iterate (2)
-> + XSL-FO to PDF preview (3)
-> + java.lang.RuntimeException: Er... (2)
-> + Create Acroforms with Stylus X... (2)
-> + How to change XSLT parameter s... (3)
-> + how to change format of the da... (2)
-> + Search "Next 8 Results " doesn... (2)
-> - Support for Git (1)
-> + newbee (8)
-- [1-20] [21-40] [41-60] Next
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
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.:)

   
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.