<!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> 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> </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> </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 for *titles* of chapters,
sections, and subsections</FONT></DIV>
<DIV><FONT face="Arial CYR" size=2></FONT> </DIV>
<DIV><FONT face="Arial CYR" size=2><fo:flow></FONT></DIV>
<DIV><FONT face="Arial CYR" size=2> ...</FONT></DIV>
<DIV><FONT face="Arial CYR" size=2> <FONT face="Arial Cyr"><!--
chapter title --></FONT> </FONT></DIV>
<DIV><FONT face="Arial CYR" size=2> <fo:block></FONT></DIV>
<DIV><FONT face="Arial CYR" size=2> <fo:marker
marker-class-name="titles"></FONT></DIV>
<DIV><!--StartFragment --><FONT face=Arial
size=2> <fo:block-container
position="absolute"
<BR>
top="0.5in" left="1in" width="2in" height="0.5in"
<BR>
background-color="white"><BR>
<fo:block>Chapter x</fo:block><BR></FONT> <FONT
face=Arial size=2> </fo:block-container></FONT></DIV>
<DIV><FONT face="Arial CYR" size=2>
</fo:marker></FONT></DIV>
<DIV><FONT face="Arial CYR" size=2> Chapter
Title</FONT></DIV>
<DIV><FONT face="Arial CYR" size=2> </fo:block></FONT></DIV>
<DIV>
<DIV><FONT face="Arial CYR" size=2> <FONT
face="Arial Cyr"><!-- section title --></FONT> </FONT></DIV>
<DIV><FONT face="Arial CYR" size=2> <fo:block></FONT></DIV>
<DIV><FONT face="Arial CYR" size=2> <fo:marker
marker-class-name="titles"></FONT></DIV>
<DIV><FONT face=Arial size=2>
<fo:block-container position="absolute"
<BR>
top="0.5in" left="1in" width="2in" height="0.5in"
<BR>
background-color="white"><BR>
<fo:block>Section x</fo:block><BR></FONT> <FONT
face=Arial size=2> </fo:block-container></FONT></DIV>
<DIV><FONT face="Arial CYR" size=2>
</fo:marker></FONT></DIV>
<DIV><FONT face="Arial CYR" size=2> Section
Title</FONT></DIV>
<DIV><FONT face="Arial CYR" size=2> </fo:block></FONT></DIV>
<DIV><FONT face="Arial CYR" size=2> <fo:block>chapter
and section text goes here...</fo:block></FONT></DIV>
<DIV><FONT face="Arial CYR" size=2> <!-- subsection
title --></FONT></DIV>
<DIV><FONT face="Arial CYR" size=2>
<fo:block></FONT></DIV>
<DIV><FONT face="Arial CYR" size=2>
<fo:marker marker-class-name="titles"></FONT></DIV>
<DIV><FONT face=Arial size=2>
<fo:block-container position="absolute"
<BR>
top="0.5in" left="1in" width="2in"
height="0.5in"
<BR>
background-color="white"><BR>
<fo:block>Subsection 1</fo:block><BR>
</fo:block-container></FONT></DIV>
<DIV><FONT face="Arial CYR" size=2>
</fo:marker></FONT></DIV>
<DIV><FONT face="Arial CYR" size=2> The First
Subsection Title</FONT></DIV>
<DIV><FONT face="Arial CYR" size=2>
</fo:block></FONT></DIV>
<DIV><FONT face="Arial CYR" size=2>
<fo:block></FONT></DIV>
<DIV><FONT face="Arial CYR" size=2>
<fo:marker marker-class="subsection"></FONT></DIV>
<DIV><FONT face=Arial size=2>
<fo:block-container position="absolute" <BR>
top="0.5in"
left="1in" width="2in" height="0.5in" <BR>
background-color="white"><BR>
<fo:block>Subsection 1</fo:block></FONT></DIV>
<DIV><FONT face=Arial size=2>
</fo:block-container></FONT></DIV>
<DIV><FONT face="Arial CYR"
size=2> </fo:marker></FONT></DIV>
<DIV><FONT face="Arial CYR" size=2> subsection
text goes here...</FONT></DIV>
<DIV><FONT face="Arial CYR" size=2>
</fo:block></FONT></DIV>
<DIV>
<DIV><FONT face="Arial CYR" size=2> <FONT
face="Arial Cyr">...</FONT></FONT></DIV>
<DIV><FONT face="Arial CYR" size=2> <!-- subsection
title --></FONT></DIV>
<DIV><FONT face="Arial CYR" size=2>
<DIV><FONT face="Arial CYR" size=2> <!-- subsection
title --></FONT></DIV>
<DIV><FONT face="Arial CYR" size=2>
<fo:block></FONT></DIV>
<DIV><FONT face="Arial CYR" size=2>
<fo:marker marker-class-name="titles"></FONT></DIV>
<DIV><FONT face=Arial>
<fo:block-container position="absolute"
<BR>
top="0.5in" left="1in" width="2in"
height="0.5in"
<BR>
background-color="white"><BR>
<fo:block>Subsection 2</fo:block><BR>
</fo:block-container></FONT></DIV>
<DIV><FONT face="Arial CYR" size=2>
</fo:marker></FONT></DIV>
<DIV><FONT face="Arial CYR" size=2>
The Second Subsection Title</FONT></DIV>
<DIV><FONT face="Arial CYR" size=2>
</fo:block></FONT></DIV></FONT></DIV>
<DIV><FONT face="Arial CYR" size=2>
<fo:block></FONT></DIV>
<DIV><FONT face="Arial CYR" size=2>
<fo:marker marker-class="content"></FONT></DIV>
<DIV><FONT face=Arial size=2>
<fo:block-container position="absolute"
<BR>
top="0.5in" left="1in" width="2in"
height="0.5in"
<BR>
background-color="white"><BR>
<fo:block>Subsection 2</fo:block><BR>
</fo:block-container></FONT></DIV>
<DIV><FONT face="Arial CYR" size=2>
</fo:marker></FONT></DIV>
<DIV><FONT face="Arial CYR" size=2> subsection
text goes here...</FONT></DIV>
<DIV><FONT face="Arial CYR" size=2>
</fo:block></FONT></DIV></DIV></DIV>
<DIV><FONT face="Arial CYR" size=2></fo:flow></FONT></DIV>
<DIV><FONT face="Arial CYR" size=2></FONT> </DIV>
<DIV><FONT face="Arial CYR" size=2>Note that *all*
markers are absolute block containers with *the same* position. Step
2 explains this.</FONT></DIV>
<DIV><FONT face="Arial CYR" size=2></FONT> </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> </DIV>
<DIV><FONT face=Arial size=2> <fo:static-content
flow-name="xsl-region-before"><BR>
<fo:retrieve-marker retrieve-class-name="content"
<BR>
retrieve-position="first-including-carryover"
<BR>
retrieve-boundary="page"/><BR>
<fo:retrieve-marker retrieve-class-name="<FONT
face="Arial CYR">titles</FONT>"
<BR>
retrieve-position="first-starting-within-page" <!-- default; can be
omitted --><BR>
retrieve-boundary="page"/><BR>
</fo:static-content></FONT></DIV>
<DIV><FONT face="Arial CYR" size=2></FONT> </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 retrieve-marker have no
areas to be retrieved.</FONT></DIV>
<DIV><FONT face="Arial CYR" size=2>If there is title - i.e. chapter or
section or subsection change - break on 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> </DIV>
<DIV><FONT face="Arial CYR" size=2>I hope this helps,</FONT></DIV>
<DIV><FONT face="Arial CYR" size=2></FONT> </DIV>
<DIV><FONT face="Arial CYR" size=2>Best regards,</FONT></DIV>
<DIV><FONT face="Arial CYR" size=2> Alexei Gagarinov</FONT></DIV>
<DIV><FONT face="Arial CYR" size=2>RenderX</FONT></DIV>
<DIV><FONT face="Arial CYR" size=2></FONT> </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> </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>