[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: In XSL FO: how do I repeat a piece of text other t

Subject: RE: In XSL FO: how do I repeat a piece of text other than the header or footer
From: "SANWAL, ABHISHEK (HP-Houston)" <abhishek.sanwal@xxxxxx>
Date: Wed, 3 Sep 2003 18:01:29 -0500
fo block overlap
Wendell
Markus

Thanks to both of you. I kind of got what you were saying thanks to the
little sample code you wrote. Let's see if I can make it work for what I
want to do.

One last question about the above

Does a marker have to be written into a Header or Footer region (true or
false)? Can it be a part of the "xsl-body" region? Because that is kind
of the "fee' I am getting from the FO example of RenderX. Of course, I
may be wrong as I have yet to include the marker stuff into the bigger
picture that I am trying to paint.

And if it does not have to be in the header/footer if it gets placed in
some other area then does it "OVERLAP" on other content or "PUSH" the
other content down in the body-flow region of the paginated document ? 

Thanks a million :)

Abhishek Sanwal
HP - Houston Campus
abhishek.sanwal@xxxxxx

-----Original Message-----
From: Wendell Piez [mailto:wapiez@xxxxxxxxxxxxxxxx] 
Sent: Wednesday, September 03, 2003 12:41 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  In XSL FO: how do I repeat a piece of text other than
the header or footer

Hi Abhishek,

At 12:26 PM 9/3/2003, you wrote:
>Thanks for the help. I believe my point did not get across clearly.
>My question is not the usage of the markers and the blocks around it.
>
>My question is how would I use XSL to "modify" or "repopulate" markers
>whenever the pages "hit" (or are incident upon) content from the "next"
>chapter.

If a new chapter starts and a new marker is presented to the formatter,
it 
knows how to do the modification on the pages. (That's what markers are
for.)

Your solution is as easy as:

<xsl:template match="chapter">
   <fo:block>
     <fo:marker marker-class-name="chapter-title">
        <xsl:apply-templates select="title" mode="header"/>
     </fo:marker>
     <xsl:apply-templates/>
   </fo:block>
<xsl:template>

Each chapter gets a marker with its own title in it; the
fo:retrieve-marker 
(which refers to this marker class), placed into the static content
(that 
is, the header), then updates itself. That job is done by the formatter;
as 
long as the marker is there, your XSLT doesn't have to do anything else.

>? Any clearer or should I try once again :) ??

I'm not sure I got it wrong the first time. (I did mention the template
for 
the chapter.) Why not look up markers and try them, using an example to
go by?

Or am I still missing the point of the question?

Cheers,
Wendell



======================================================================
Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
   Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.