<!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>&nbsp;</DIV>
<DIV style="FONT: 8pt Bitstream Vera Sans; COLOR: #000000"><FONT face=Arial>take 
a look at the &lt;fo:marker .../&gt; construct and the corresponding 
&lt;fo:retrieve-marker..&gt; construct to retrieve the contents in the static 
areas. </FONT></DIV>
<DIV style="FONT: 8pt Bitstream Vera Sans; COLOR: #000000"><FONT 
face=Arial></FONT>&nbsp;</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>&nbsp;</DIV>
<DIV style="FONT: 8pt Bitstream Vera Sans; COLOR: #000000"><FONT face=Arial>Best 
Regards<BR><BR>Carsten&nbsp;Rogas<BR><BR><BR>--&nbsp;<BR><BR>Carsten&nbsp;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 |&nbsp;D-30938&nbsp;Burgwedel OT 
Fuhrberg<BR>Phone:&nbsp;+49&nbsp;(0)&nbsp;5135&nbsp;-&nbsp;92 54 93</DIV>
<DIV>Fax:&nbsp;+49&nbsp;(0)&nbsp;5135&nbsp;-&nbsp;92 54 87<BR></FONT><FONT 
face=Arial><BR>E-Mail:&nbsp;<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">&nbsp;</DIV>
<DIV style="FONT: 8pt Bitstream Vera Sans; COLOR: #000000">&nbsp;</DIV>
<DIV style="FONT: 8pt Bitstream Vera Sans; COLOR: #000000">&nbsp;</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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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>&nbsp;&nbsp;&nbsp;</FONT></STRONG>&nbsp;</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:&nbsp;</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:&nbsp;&nbsp;&nbsp;&nbsp;</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 
      &lt;longjingjun@gmail.com&gt;</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:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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>&nbsp;</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">&lt;book&gt;<BR>&nbsp;&nbsp;&nbsp; <FONT 
color=#990000>&lt;pagest page_number="1" manual_name="How to cook Chinese food 
by your self" title=""&gt;</FONT><BR>&nbsp;&nbsp;&nbsp; &lt;title&gt;How to cook 
Chinese food by your self&lt;/title&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;Author&gt;The 
big chef&lt;/Author&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;chapter 
chapnbr="1"&gt;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; 
&lt;title&gt;Introduction&lt;/title&gt;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; 
&lt;para&gt;Welcome to the food world ........ 
&lt;/para&gt;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; 
&lt;para&gt;...&lt;/para&gt;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; 
&lt;para&gt;...&lt;/para&gt;<BR><BR></FONT><FONT face="Courier New"><FONT 
color=#cc0000>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;pagest page_number="2" 
manual_name="How to cook Chinese food by your self" 
title="Introduction"&gt;</FONT><BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; </FONT><FONT 
face="Courier New">&lt;para&gt;Before you decide to cook your self 
........&lt;/para&gt;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; 
&lt;para&gt;...&lt;/para&gt;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; 
&lt;para&gt;...&lt;/para&gt;</FONT><BR></SMALL><FONT 
face="Courier New"><SMALL>&nbsp;&nbsp;&nbsp; 
&lt;/chapter&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;chapter 
chapnbr="2"&gt;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; </SMALL></FONT><SMALL><FONT 
face="Courier New"><FONT color=#cc0000>&lt;pagest page_number="10" 
manual_name="How to cook Chinese food by your self" title="Chinese food 
culture"&gt;</FONT></FONT></SMALL><BR><FONT 
face="Courier New"><SMALL>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; 
&lt;title</SMALL></FONT><FONT face="Courier New"><SMALL>&gt;Chinese food 
culture&lt;title&gt;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; 
</SMALL></FONT><SMALL><FONT 
face="Courier New">&lt;para&gt;...&lt;/para&gt;</FONT></SMALL><BR><FONT 
face="Courier New"><SMALL>&lt;/book&gt;</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">&lt;fo:static-content 
flow-name="content-region-before"&gt;<BR>&nbsp;&nbsp;&nbsp; 
&lt;fo:block&gt;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
&lt;fo:block&gt;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; How 
to cook Chinese food by your self<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
&lt;/fo:block&gt;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;fo:leader 
leader-length="7.69in" leader-pattern="rule" rule-thickness="0.5mm" 
color="black" /&gt;<BR>&nbsp;&nbsp;&nbsp; 
&lt;/fo:block&gt;<BR>&lt;/fo:static-content&gt;</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 &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 
<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?&nbsp; In XSLT? 
  <BR><BR>The XSL formatting model dictates that XSLT transformation be entirely 
  complete before XSL-FO processing can begin.&nbsp; There is no feedback 
  loop.&nbsp; 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?&nbsp; 
  I think you have presupposed a processing model that doesn't work the way you 
  imagine.&nbsp; 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. &amp; user group XML, XSL and 
  UBL training <BR>RSS feeds:&nbsp;&nbsp;&nbsp;&nbsp; publicly-available 
  developer resources and training <BR>G. Ken 
  Holman&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  <A class=moz-txt-link-freetext 
  href="mailto:gkholman@CraneSoftwrights.com">mailto:gkholman@CraneSoftwrights.com</A> 
  <BR>Crane Softwrights 
  Ltd.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <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&nbsp;&nbsp;&nbsp; +1(613)489-0999 
  (F:-0995) <BR>Male Cancer Awareness Aug'05&nbsp; <A 
  class=moz-txt-link-freetext 
  href="http://www.cranesoftwrights.com/f/bc">http://www.CraneSoftwrights.com/f/bc</A> 
  <BR>Legal business disclaimers:&nbsp; <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>