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

Subject: AW: [xsl] In XSL FO: how do I repeat a piece of text other than the header or footer
From: Markus Abt <abt@xxxxxxxx>
Date: Wed, 3 Sep 2003 19:05:12 +0200
Hi Abhishek,

to "repopulate" your marker, simply output it:

<xsl:template match="Chapter">
  <fo:marker marker-class-name="yourMarkerName">
    <xsl:value-of select="@name"/>
  </fo:marker> 
  <!-- other Chapter element processing -->
</xsl:template>

Regards,
Markus
__________________________
Markus Abt
Comet Computer GmbH
http://www.comet.de


----------
Von: 	SANWAL, ABHISHEK (HP-Houston)
Gesendet: 	Mittwoch, 3. September 2003 18:26
An: 	xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Betreff: 	RE: [xsl] In XSL FO: how do I repeat a piece of text other   than the header or footer

Wendell,

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.

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

Abhishek Sanwal
HP - Houston Campus
abhishek.sanwal@xxxxxx

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

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


 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