RE: [xsl] In XSL FO: how do I repeat a piece of text other than the header or footer

Subject: RE: [xsl] In XSL FO: how do I repeat a piece of text other than the header or footer
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Wed, 03 Sep 2003 11:17:05 -0400
Abhishek,

I'm writing off the top of my head since I haven't actually used markers lately (my most recent project didn't need em); maybe David or Ken or DaveP or someone could speak up.

But as I recall, it's pretty simple. The fo:marker is just an fo element that you place into the flow like any other. It does not, however, appear on the page; rather it just sits there invisible. The fo:retrieve-marker retrieves the value of the marker currently in scope (it should be the most recent one or the first one on the page, whichever comes later; this can be tweaked using attributes on the fo:retrieve-marker element).

So all you have to do is place a marker with your chapter (inside whatever it is that wraps your chapter, which could be an fo:block -- you'll do this in the template matching the chapter), containing your chapter name or whatever, and then reference the marker from your header.

Isn't this documented on line someplace? At worst, consult the XSL-FO spec. Among other things, I find the test files for the FO formatters to be useful resources for inspecting supported patterns of usage.

Cheers,
Wendell

At 09:10 PM 9/2/2003, you wrote:
Wendell
David

I looked up marker but was wondering how I could use XSL with markers to
change the value of a Marker based on the <chapter name = "xxx"> (the
attribute) that the content (of the page) to which the marker text is
being applied belongs to.

<Document>
<Header...></>
<Footer...></>
       <Chapter name = "Introduction">
        <Section SHeading  = "Section1">
                <Paragraph>..

>From what I gather marker is just a container from which one can
retrieve values and store them. But how can I do that "modification of
value" programmatically in XSL - depending on the value of the attribute
"name" in the Chapter element?


======================================================================
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



Current Thread