|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: [fo] conditional item in the header of a page
At 2009-04-20 12:24 +0200, Geert Bormans wrote:
In a project I need to add a sign in the header if my page sequence spans multiple pages This is handled very straightforwardly by using markers. Retrieve two markers in your header, one for each of the two arrows. For the left arrow graphic use something like: <retrieve-marker retrieve-class-name="leftarrow"
retrieve-position="first-including-carryover"/>For the right arrow graphic use something like: <retrieve-marker retrieve-class-name="rightarrow"
retrieve-position="last-ending-within-page"/>At the start of your page sequence, have: <block>
<marker marker-class-name="leftarrow"/>
<marker marker-class-name="rightarrow">
.... definition of right arrow ....
</marker>
</block>
<block>
<marker marker-class-name="leftarrow">
.... definition of left arrow ....
</marker>
</block>
... rest of page sequence ...At the end of your page sequence, have: ... rest of page sequence ...
<block>
<marker marker-class-name="rightarrow"/>
</block>With those definitions, the first page's left arrow is empty, but any page break after reveals the left arrow, and the start of the sequence has a definition of right arrow, but at the very end (there is always room for an empty block), the definition is blanked out. So the definition will be blank at the end of the page sequence. The above will work on a single-page page-sequence. I hope this helps (and I haven't mistyped!). . . . . . . . . . Ken -- XSLT/XSL-FO/XQuery hands-on training - Los Angeles, USA 2009-06-08 Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video Video lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18 Video overview: http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18 G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart


![Re: [fo] conditional item in the header of a page](/images/get_stylus.gif)





