W3C home > Mailing lists > Public > www-xsl-fo@w3.org > February 2002

FW: How should a formatter work?

From: Kalyan Kumar Mudumbai <mkalyan@wilco-int.com>
Date: Mon, 25 Feb 2002 19:05:20 +0530
Message-ID: <5BF60CD649EDD411A04600B0D049F53A0285152F@hydmail02.hyd.wilco-int.com>
To: "'www-xsl-fo@w3.org'" <www-xsl-fo@w3.org>
Hi All,
	I had put a question few days back and didn't get any help. So, I
thought it would be better to reframe the question so that those who would
like to read less, can also go through it.
This is my quetions:

Will the Formatter/Renderer render pages based on the order of the 
- page-sequence defined in fo:root or 
- on the order defined in the layout-master-set/page-sequence-master ?

P.S: If you are still interested in going deeper in to the question, please
read the attached mail.

> -----Original Message-----
> From:	Kalyan Kumar Mudumbai [SMTP:mkalyan@wilco-int.com]
> Sent:	Tuesday, February 19, 2002 6:03 PM
> To:	www-xsl-fo@w3.org
> Subject:	How should a formatter work?
> Hi All,
> 	I have a question related to the way in which any formatter which
> supports transformation from FO to it's style (like PDF by FOP or RTF by
> JFor) should do the formatting. Suppose I have the FO file in the
> following
> structure.
> <fo:root>
> 	<fo:layout-master-set>
> 		<fo:simple-page-master master-name="FIRST_SM"/>
> 		<fo:simple-page-master master-name="SECOND_SM"/>
> 		<fo:simple-page-master master-name="THIRD_SM"/>
> 		//STEP 1
> 		<fo:page-sequence-master master-name="FIRST_PSM">
> 			<fo:single-page-master master-reference="FIRST_SM">
> 			<fo:repeatable-page-master
> master-reference="SECOND_SM">
> 		</fo:page-sequence-master >
> 		<fo:page-sequence-master master-name="SECOND_PSM">
> 			<fo:single-page-master master-reference="SECOND_SM">
> 			<fo:repeatable-page-master
> master-reference="THIRD_SM">
> 		</fo:page-sequence-master >
> 	</fo:layout-master-set>
> 	<fo:page-sequence master-reference="SECOND_PSM">
> 	.
> 	.
> 	.
> 	</fo:page-sequence>
> 	<fo:page-sequence master-reference="FIRST_PSM">
> 	.
> 	.
> 	.
> 	</fo:page-sequence>
> </fo:root>
> 		How should the formatter process this file? 
> 		To my understanding, the formatter first goes to the first
> fo:page-sequence, gets the master-reference as SECOND_PSM, then goes to
> the
> page sequence master with master-name as SECOND_PSM, instantiates pages
> according to the sequence specified and then fills their content with the
> content of that page sequence. Then it goes to the second fo:page-sequence
> and
> gets it's master name as FIRST_PSM, then goes to the page sequence master
> with
> master name FIRST_PSM, instantiates the pages in that order and fills the
> content with this page sequence's content. Is this the way in which a
> formatter has to work. 
> 		So step wise, it goes in the following way:
> 			STEP3 to STEP2 and then STEP4 to STEP1
> 		I can also think of another way in which a formatter can
> work. Like, it can first go the first page sequence master, get it's
> master
> name as FIRST_PSM, then check for the first occurence of the page sequence
> with that master name (FIRST_PSM) and then fill the contents of this page
> sequence. 
> 		So step wise, it goes in the following way.
> 			STEP1 to STEP4 and then STEP2 to STEP3
> 	Can someone please help me out in this?
> 	Thanks,
> Regards
> Kalyan.

This message is confidential and may also be legally privileged. If you are not the intended recipient, please notify us immediately. You should not copy it or use it for any purpose, nor disclose it's contents to any other person. The views and opinions expressed in this e-mail message are the author's own and may not reflect the views and opinions of Wilco International.
Received on Monday, 25 February 2002 08:38:34 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:09:54 UTC