<!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.2963" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial color=#000080 size=2>Hi Alexei,</FONT></DIV>
<DIV><FONT face=Arial color=#000080 size=2>&nbsp;&nbsp;&nbsp; Thanks. However, 
there is one point I neglected to mention: the position of the chapter or 
section on the header has to alternate between right and left depending if the 
page is recto or verso; whereas this solution uses absolute positioning of the 
title in the header. Is there any way to accomodate this requirement as well? I 
was thinking of something along the lines of defining double sets of the 
markers, one set on the left side of the page and the other on the right side, 
and somehow (possibly using the page-sequence-master) controlling which will be 
visible based on if the page is even or odd? Is this possible?</FONT></DIV>
<DIV><FONT face=Arial color=#000080 size=2>Thank you again,</FONT></DIV>
<DIV><FONT face=Arial color=#000080 size=2>David</FONT></DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000080 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=agagarinov@renderx.com href="mailto:agagarinov@renderx.com">Alexei 
  Gagarinov</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=xep-support@renderx.com 
  href="mailto:xep-support@renderx.com">xep-support@renderx.com</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, September 19, 2006 5:50 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [xep-support] Using markers 
  for headers</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face="Arial Cyr" size=2>Hi David,</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face="Arial CYR" size=2>There is a tricky way to achieve the 
  described behaviour.</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>It consists of 2 steps:</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>1) You need 2 marker class: one for *the 
  content* of subsections and another class&nbsp;for *titles*&nbsp;of chapters, 
  sections, and subsections</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face="Arial CYR" size=2>&lt;fo:flow&gt;</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp;&nbsp; ...</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp;&nbsp;<FONT face="Arial Cyr">&lt;!-- 
  chapter title --&gt;</FONT> </FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp; &lt;fo:block&gt;</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp;&nbsp;&nbsp; &lt;fo:marker 
  marker-class-name="titles"&gt;</FONT></DIV>
  <DIV><!--StartFragment --><FONT face=Arial 
  size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;fo:block-container 
  position="absolute" 
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  top="0.5in" left="1in" width="2in" height="0.5in" 
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  background-color="white"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;fo:block&gt;Chapter x&lt;/fo:block&gt;<BR></FONT>&nbsp;&nbsp;&nbsp;<FONT 
  face=Arial size=2>&nbsp;&nbsp; &lt;/fo:block-container&gt;</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp;&nbsp;&nbsp; 
  &lt;/fo:marker&gt;</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp;&nbsp;&nbsp; Chapter 
  Title</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp; &lt;/fo:block&gt;</FONT></DIV>
  <DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp;&nbsp;<FONT 
  face="Arial Cyr">&lt;!--&nbsp;section title --&gt;</FONT> </FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp; &lt;fo:block&gt;</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp;&nbsp;&nbsp; &lt;fo:marker 
  marker-class-name="titles"&gt;</FONT></DIV>
  <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;fo:block-container position="absolute" 
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  top="0.5in" left="1in" width="2in" height="0.5in" 
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  background-color="white"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;fo:block&gt;Section x&lt;/fo:block&gt;<BR></FONT>&nbsp;&nbsp;&nbsp;<FONT 
  face=Arial size=2>&nbsp;&nbsp; &lt;/fo:block-container&gt;</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp;&nbsp;&nbsp; 
  &lt;/fo:marker&gt;</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp;&nbsp;&nbsp; Section 
  Title</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp; &lt;/fo:block&gt;</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp;&nbsp;&nbsp; &lt;fo:block&gt;chapter 
  and section text goes here...&lt;/fo:block&gt;</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp;&nbsp;&nbsp; &lt;!--&nbsp;subsection 
  title&nbsp;--&gt;</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp;&nbsp;&nbsp; 
  &lt;fo:block&gt;</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;fo:marker marker-class-name="titles"&gt;</FONT></DIV>
  <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;fo:block-container position="absolute" 
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; top="0.5in" left="1in" width="2in" 
  height="0.5in" 
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; 
  background-color="white"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;fo:block&gt;Subsection 1&lt;/fo:block&gt;<BR>&nbsp; 
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/fo:block-container&gt;</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;/fo:marker&gt;</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The First 
  Subsection Title</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp;&nbsp;&nbsp; 
  &lt;/fo:block&gt;</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp;&nbsp;&nbsp; 
  &lt;fo:block&gt;</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;fo:marker marker-class="subsection"&gt;</FONT></DIV>
  <DIV><FONT face=Arial size=2>&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;fo:block-container position="absolute" <BR>&nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; top="0.5in" 
  left="1in" width="2in" height="0.5in" <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  background-color="white"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &nbsp; &lt;fo:block&gt;Subsection 1&lt;/fo:block&gt;</FONT></DIV>
  <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;/fo:block-container&gt;</FONT></DIV>
  <DIV><FONT face="Arial CYR" 
  size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/fo:marker&gt;</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; subsection 
  text goes here...</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp;&nbsp;&nbsp; 
  &lt;/fo:block&gt;</FONT></DIV>
  <DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp;&nbsp;&nbsp; <FONT 
  face="Arial Cyr">...</FONT></FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp;&nbsp;&nbsp; &lt;!--&nbsp;subsection 
  title&nbsp;--&gt;</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>
  <DIV><FONT face="Arial CYR" size=2>&nbsp;&nbsp;&nbsp; &lt;!--&nbsp;subsection 
  title&nbsp;--&gt;</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp;&nbsp;&nbsp; 
  &lt;fo:block&gt;</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;fo:marker marker-class-name="titles"&gt;</FONT></DIV>
  <DIV><FONT face=Arial>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;fo:block-container position="absolute" 
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; top="0.5in" left="1in" width="2in" 
  height="0.5in" 
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; 
  background-color="white"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;fo:block&gt;Subsection 2&lt;/fo:block&gt;<BR>&nbsp; 
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/fo:block-container&gt;</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;/fo:marker&gt;</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  The&nbsp;Second Subsection Title</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp;&nbsp;&nbsp; 
  &lt;/fo:block&gt;</FONT></DIV></FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp;&nbsp;&nbsp; 
  &lt;fo:block&gt;</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;fo:marker marker-class="content"&gt;</FONT></DIV>
  <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;fo:block-container position="absolute" 
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; top="0.5in" left="1in" width="2in" 
  height="0.5in" 
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; 
  background-color="white"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;fo:block&gt;Subsection 2&lt;/fo:block&gt;<BR>&nbsp; 
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/fo:block-container&gt;</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;/fo:marker&gt;</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; subsection 
  text goes here...</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp;&nbsp;&nbsp; 
  &lt;/fo:block&gt;</FONT></DIV></DIV></DIV>
  <DIV><FONT face="Arial CYR" size=2>&lt;/fo:flow&gt;</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face="Arial CYR" size=2>Note that *all* 
  markers&nbsp;are&nbsp;absolute block containers with *the same* position. Step 
  2 explains this.</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face="Arial CYR" size=2>2) Define retrieve markers as described in 
  'XSL FAQ' by Dave Pawson:</FONT></DIV>
  <DIV><FONT face="Arial Cyr" size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>&nbsp; &lt;fo:static-content 
  flow-name="xsl-region-before"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;fo:retrieve-marker retrieve-class-name="content" 
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  retrieve-position="first-including-carryover" 
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  retrieve-boundary="page"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;fo:retrieve-marker retrieve-class-name="<FONT 
  face="Arial CYR">titles</FONT>" 
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  retrieve-position="first-starting-within-page" &lt;!--&nbsp;default; can be 
  omitted&nbsp;--&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  retrieve-boundary="page"/&gt;<BR>&nbsp; 
&lt;/fo:static-content&gt;</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face="Arial CYR" size=2>If there is no titles on a page, it will 
  select the first retrieve marker - the "previous" subsection (i.e subsection 
  whose content on the current page); the second&nbsp;retrieve-marker have no 
  areas to be retrieved.</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>If there is title -&nbsp;i.e. chapter or 
  section or subsection change - break on&nbsp;a page, the second retrieve will 
  override the first marker (that's why we need to use absolute block containers 
  with the same position).</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face="Arial CYR" size=2>I hope this helps,</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face="Arial CYR" size=2>Best regards,</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>&nbsp; Alexei Gagarinov</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2>RenderX</FONT></DIV>
  <DIV><FONT face="Arial CYR" size=2></FONT>&nbsp;</DIV>
  <BLOCKQUOTE dir=ltr 
  style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
    <DIV 
    style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
    <A title=dovid@tech-tav.com href="mailto:dovid@tech-tav.com">Dovid 
    Zalkin</A> </DIV>
    <DIV style="FONT: 10pt arial"><B>To:</B> <A title=xep-support@renderx.com 
    href="mailto:xep-support@renderx.com">xep-support@renderx.com</A> </DIV>
    <DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, September 18, 2006 5:39 
    PM</DIV>
    <DIV style="FONT: 10pt arial"><B>Subject:</B> [xep-support] Using markers 
    for headers</DIV>
    <DIV><BR></DIV>
    <DIV><FONT face=Arial color=#000080 size=2>Hi. I am creating a PDF document, 
    in which the header of each page should be the name of the chapter, or 
    section (of a chapter), or subsection which starts on that page. For 
    example, if section 2.3 starts on page 17, then the header on page 17 should 
    contain the name of section 2.3. Deeper sections are not displayed on the 
    header. The problem is if there is no subsection starting on a particular 
    page: the desired behavior in such a case would be for the name of the 
    previous subsection to be displayed; however, what is actually displayed is 
    the name of the chapter. The problem seems to be that if there is no marker 
    which starts on the page then the marker reverts to the 
    <STRONG>first</STRONG> marker in the page-sequence. This seems to be the 
    proper behavior according to XSL-FO. What I want to know is if there is any 
    way around this? Even though on each page I want the first marker defined on 
    the page, when there is no marker defined on the page I want to use the 
    <STRONG>last</STRONG> marker previously defined.</FONT></DIV>
    <DIV><FONT face=Arial color=#000080 size=2>Thank you,</FONT></DIV>
    <DIV>&nbsp;</DIV>
    <DIV><FONT face=Arial color=#000080 size=2>David Zalkin<BR>Technology 
    Consultant<BR>Tech-Tav Documentation Ltd.<BR>+972 (0)57 313 
  8506</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>