<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
<META content="MSHTML 6.00.2900.3059" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV style="FONT: 8pt Bitstream Vera Sans; COLOR: #000000"><FONT face=Arial>Hi
JingJun</FONT></DIV>
<DIV style="FONT: 8pt Bitstream Vera Sans; COLOR: #000000"><FONT
face=Arial></FONT> </DIV>
<DIV style="FONT: 8pt Bitstream Vera Sans; COLOR: #000000"><FONT face=Arial>take
a look at the <fo:marker .../> construct and the corresponding
<fo:retrieve-marker..> construct to retrieve the contents in the static
areas. </FONT></DIV>
<DIV style="FONT: 8pt Bitstream Vera Sans; COLOR: #000000"><FONT
face=Arial></FONT> </DIV>
<DIV style="FONT: 8pt Bitstream Vera Sans; COLOR: #000000"><FONT
face=Arial>There are examples in the renderx docu.</FONT></DIV>
<DIV style="FONT: 8pt Bitstream Vera Sans; COLOR: #000000"><FONT
face=Arial></FONT> </DIV>
<DIV style="FONT: 8pt Bitstream Vera Sans; COLOR: #000000"><FONT face=Arial>Best
Regards<BR><BR>Carsten Rogas<BR><BR><BR>-- <BR><BR>Carsten Rogas<BR><BR>Carsten
Rogas Softwareentwicklung</FONT></DIV>
<DIV style="FONT: 8pt Bitstream Vera Sans; COLOR: #000000"><FONT face=Arial>
<DIV><BR>Zur Alten Burg 2 | D-30938 Burgwedel OT
Fuhrberg<BR>Phone: +49 (0) 5135 - 92 54 93</DIV>
<DIV>Fax: +49 (0) 5135 - 92 54 87<BR></FONT><FONT
face=Arial><BR>E-Mail: <A
href="mailto:carsten.rogas@rogas.de">carsten.rogas@rogas.de</A><BR></FONT></DIV></DIV>
<DIV style="FONT: 8pt Bitstream Vera Sans; COLOR: #000000"> </DIV>
<DIV style="FONT: 8pt Bitstream Vera Sans; COLOR: #000000"> </DIV>
<DIV style="FONT: 8pt Bitstream Vera Sans; COLOR: #000000"> </DIV>
<TABLE id=tobit_repfor
style="BORDER-RIGHT: #e0e0e0 1px solid; BORDER-TOP: #e0e0e0 1px solid; FONT: 10pt Arial; BORDER-LEFT: #e0e0e0 1px solid; COLOR: black; BORDER-BOTTOM: 0px"
cellSpacing=0 cols=3 cellPadding=0 width="99%" border=0>
<TBODY>
<TR borderColor=#dfdfdf borderColorLight=#dfdfdf bgColor=#dfdfdf>
<TD
style="PADDING-LEFT: 4px; PADDING-BOTTOM: 1px; PADDING-TOP: 1px; BORDER-BOTTOM: #ffffff 1px solid"
width=140 colSpan=2 height=22>
<DIV style="FONT: bold 9pt Arial">Original
Message </DIV></TD>
<TD style="BORDER-BOTTOM: #ffffff 1px solid" align=right>
<DIV style="FONT: 8pt Arial">
<DIV style="FONT: 8pt Arial"><STRONG><FONT
color=#808080> </FONT></STRONG> </DIV></DIV></TD></TR></TBODY></TABLE>
<TABLE id=tobit_repfor2
style="BORDER-RIGHT: #e0e0e0 1px solid; BORDER-TOP: 0px; FONT: 8pt Tahoma; BORDER-LEFT: #e0e0e0 1px solid; COLOR: black; BORDER-BOTTOM: #e0e0e0 1px solid"
cellSpacing=0 cols=2 cellPadding=0 width="99%" border=0>
<TBODY>
<TR style="PADDING-BOTTOM: 2px">
<TD style="PADDING-LEFT: 6px; BORDER-BOTTOM: #ffffff 1px solid" width=68
bgColor=#efefef height=18>
<DIV style="FONT: 8pt Tahoma">Subject: </DIV></TD>
<TD style="PADDING-LEFT: 4px; BORDER-BOTTOM: #efefef 1px solid"
bgColor=#ffffff>
<DIV style="FONT: 8pt Tahoma">Re: [xep-support] Event from RenderX
(27-Mrz-2007 10:15)</DIV></TD></TR>
<TR style="PADDING-BOTTOM: 2px">
<TD style="PADDING-LEFT: 6px; BORDER-BOTTOM: #ffffff 1px solid" width=68
bgColor=#efefef height=18>
<DIV style="FONT: 8pt Tahoma">From: </DIV></TD>
<TD style="PADDING-LEFT: 4px; BORDER-BOTTOM: #efefef 1px solid"
bgColor=#ffffff>
<DIV style="FONT: 8pt Tahoma"><A
href="mailto:longjingjun@gmail.com">JingJun Long
<longjingjun@gmail.com></A></DIV></TD></TR>
<TR style="PADDING-BOTTOM: 0px">
<TD style="PADDING-LEFT: 6px" width=68 bgColor=#efefef height=17>
<DIV
style="FONT: 8pt Tahoma">To: </DIV></TD>
<TD style="PADDING-LEFT: 4px" bgColor=#ffffff>
<DIV style="FONT: 8pt Tahoma"><A
href="mailto:carsten@rogas.de">carsten@rogas.de</A></DIV></TD></TR></TBODY></TABLE>
<DIV> </DIV>Ken,<BR><BR>Thank you very much for your comments. It helps me
a lot.<BR><BR>Yes, I am imagining a feedback loop from the XSL-FO compose
engine. <BR><BR>My situation is:<BR>I have an XML file with some page break
information in it like the following:<BR><BR><SMALL><FONT
face="Courier New"><book><BR> <FONT
color=#990000><pagest page_number="1" manual_name="How to cook Chinese food
by your self" title=""></FONT><BR> <title>How to cook
Chinese food by your self</title><BR> <Author>The
big chef</Author><BR> <chapter
chapnbr="1"><BR>
<title>Introduction</title><BR>
<para>Welcome to the food world ........
</para><BR>
<para>...</para><BR>
<para>...</para><BR><BR></FONT><FONT face="Courier New"><FONT
color=#cc0000> <pagest page_number="2"
manual_name="How to cook Chinese food by your self"
title="Introduction"></FONT><BR> </FONT><FONT
face="Courier New"><para>Before you decide to cook your self
........</para><BR>
<para>...</para><BR>
<para>...</para></FONT><BR></SMALL><FONT
face="Courier New"><SMALL>
</chapter><BR> <chapter
chapnbr="2"><BR> </SMALL></FONT><SMALL><FONT
face="Courier New"><FONT color=#cc0000><pagest page_number="10"
manual_name="How to cook Chinese food by your self" title="Chinese food
culture"></FONT></FONT></SMALL><BR><FONT
face="Courier New"><SMALL>
<title</SMALL></FONT><FONT face="Courier New"><SMALL>>Chinese food
culture<title><BR>
</SMALL></FONT><SMALL><FONT
face="Courier New"><para>...</para></FONT></SMALL><BR><FONT
face="Courier New"><SMALL></book></SMALL><BR><BR></FONT>I would like to
print the page information in header. <BR><BR>In XSL-FO, we can do the following
generate header:<BR><BR><SMALL><FONT face="Courier New"><fo:static-content
flow-name="content-region-before"><BR>
<fo:block><BR>
<fo:block><BR> How
to cook Chinese food by your self<BR>
</fo:block><BR> <fo:leader
leader-length="7.69in" leader-pattern="rule" rule-thickness="0.5mm"
color="black" /><BR>
</fo:block><BR></fo:static-content></FONT></SMALL><BR><BR>But the
header above is static. In my situation, the contents in the header are dynamic
and vary from page to page. <BR><BR>Originally and naturally (maybe not the way
which XSL-FO want me but my own way), I was thinking about I get the page
information and put it into header when there is a page break event from RenderX
compose engine.<BR><BR>Another solution I was ever thinking about is each page
use one fo:page-sequence. But this will not work because the page break can be
in the middle of an element, for an example: in the middle of a list.
<BR><BR>Thank you very much
<BR><BR>JingJun Long<BR><BR><BR>G. Ken Holman wrote:
<BLOCKQUOTE cite=mid7.0.1.0.2.20070327063423.02a3d2e8@CraneSoftwrights.com
type="cite">At 2007-03-27 10:21 +0800, JingJun Long wrote: <BR>
<BLOCKQUOTE type="cite">I have a requirement like the following: <BR><BR>I
would like to control the generation of header and footer. <BR><BR>Let's say
there is a new page started. Before the engine generate header and footer,
is there any event from RenderX compose engine like "new_page_event".
<BR></BLOCKQUOTE><BR>Where do you want this event to show up? In XSLT?
<BR><BR>The XSL formatting model dictates that XSLT transformation be entirely
complete before XSL-FO processing can begin. There is no feedback
loop. For my XSL students who have a background in Frame or PageMaker or
InDesign, they are surprised to hear that the XSL model is "arms length" in
that the XSLT transformation must inject contingencies into the XSL-FO
expression because the XSL-FO engine has no way of communicating formatting
status back to the XSLT process. <BR><BR>From your brief description I get the
impression you are imagining a feedback loop to your XSLT transform that is
occurring during the XSL-FO layout process. <BR><BR>But perhaps I am
misunderstanding the processes you are asking about, since I am assuming your
question is similar to the questions of some of my students. <BR><BR>
<BLOCKQUOTE type="cite">Just like a hook. I can write my own code to handle
this event. So that I can prepare the data which will appear in header or
footer? <BR></BLOCKQUOTE><BR>The XSL-FO model requires all header and footer
content of all pages to be placed into the XSL-FO instance before the
formatting of the very first page. <BR><BR>
<BLOCKQUOTE type="cite">Or do you have other mechanism to handle requirement
like this? <BR></BLOCKQUOTE><BR>Instead of asking your question the way you
have, can you describe what it is you want in your headers and footers?
I think you have presupposed a processing model that doesn't work the way you
imagine. If you describe your requirement as a formatting requirement
(not as a processing requirement) then perhaps someone on the list can suggest
how you can get what you need with the processing model as it is implemented.
<BR><BR>I hope this helps. <BR><BR>. . . . . . . . . . . . . . Ken
<BR><BR><BR>-- <BR>World-wide corporate, govt. & user group XML, XSL and
UBL training <BR>RSS feeds: publicly-available
developer resources and training <BR>G. Ken
Holman
<A class=moz-txt-link-freetext
href="mailto:gkholman@CraneSoftwrights.com">mailto:gkholman@CraneSoftwrights.com</A>
<BR>Crane Softwrights
Ltd. <A
class=moz-txt-link-freetext
href="http://www.cranesoftwrights.com/f/">http://www.CraneSoftwrights.com/f/</A>
<BR>Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999
(F:-0995) <BR>Male Cancer Awareness Aug'05 <A
class=moz-txt-link-freetext
href="http://www.cranesoftwrights.com/f/bc">http://www.CraneSoftwrights.com/f/bc</A>
<BR>Legal business disclaimers: <A class=moz-txt-link-freetext
href="http://www.cranesoftwrights.com/legal">http://www.CraneSoftwrights.com/legal</A>
<BR><BR>------------------- <BR>(*) To unsubscribe, send a message with words
'unsubscribe xep-support' <BR>in the body of the message to <A
class=moz-txt-link-abbreviated
href="mailto:majordomo@renderx.com">majordomo@renderx.com</A> from the address
<BR>you are subscribed from. <BR>(*) By using the Service, you expressly agree
to these Terms of Service <A class=moz-txt-link-freetext
href="http://www.renderx.com/terms-of-service.html">http://www.renderx.com/terms-of-service.html</A>
<BR><BR></BLOCKQUOTE><BR></BODY></HTML>