Yes, the comment states what my code is doing.
It would have to be modified accordingly for this case, ie 
 - retrieve-position="first-starting-within-page"
 - set the static description at the start not the end.
 - formatting etc. Note for markers this comes from the setting block not the 
retriever.  
    (not sure if this is the spec or just FOP)

Cheers,
Roland.

> -----Original Message-----
> From: Glen Mazza [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 2 March 2005 1:07 PM
> To: [EMAIL PROTECTED]
> Subject: RE: check to see if newpage is created
> 
> 
> I'm confused about the comment:
> 
> <!-- This marker contains "Continued" til last page
> then the total -->
> 
> But we don't want to see the text "continued" until
> (=up to) the last page--we *do* want to see it on the
> last page, and every page, except the first.  Is your
> code doing this or are is it solving the above issue
> instead?
> 
> Thanks,
> Glen
> 
> --- Roland Neilands <[EMAIL PROTECTED]>
> wrote:
> 
> > Some working code:
> > 
> > ...
> > fo:static-content:
> >         <fo:block text-align="end"
> > space-after.optimum="3pt" line-height="15pt"
> > font-family="serif" font-size="10pt">
> >           <!-- This marker contains "Continued" til
> > last page then the total -->
> >           <!-- <xsl:value-of
> > select="Header/OrderTotal"/> -->
> >           <fo:retrieve-marker
> > retrieve-class-name="table-continued"
> >                              
> > retrieve-boundary="page"
> >                              
> > retrieve-position="last-ending-within-page"/>
> >         </fo:block>
> > 
> > 
> > ...
> > In the fo:flow (each iteration):
> >                   <fo:block>
> >                   <fo:marker
> > marker-class-name="table-continued">Continued
> > ...</fo:marker>
> >                 </fo:block>
> > ...
> > At the end:
> >       <fo:block text-align="end"
> > space-after.optimum="3pt" line-height="15pt"
> > font-family="serif" font-size="10pt">
> >         <fo:marker
> > marker-class-name="table-continued">
> >           <xsl:value-of select="Header/OrderTotal"/>
> >         </fo:marker>
> >       </fo:block>
> > 
> > More detail:
> >
> http://marc.theaimsgroup.com/?l=fop-user&w=2&r=1&s=marker+continued&q=b
> > 
> > Cheers,
> > Roland
> > 
> > > -----Original Message-----
> > > From: Glen Mazza [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, 2 March 2005 11:30 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: RE: check to see if newpage is created
> > > 
> > > 
> > > Are you sure?  If I understand the question
> > correctly
> > > he wants a different title on page 2 (and 3, and
> > 4,
> > > and 5...) from page 1.
> > > 
> > > For example:  Page One:  ACME INVOICE
> > > Page Two & onwards:    ACME INVOICE (cont'd).
> > > 
> > > Would markers really help here?
> > > 
> > > Glen
> > > 
> > > --- Roland Neilands <[EMAIL PROTECTED]>
> > > wrote:
> > > 
> > > > Markers sound much easier for this.
> > > > See examples\fo\markers\ included in the FOP
> > > > distribution.
> > > > 
> > > > Plenty of examples in the list archive too.
> > > > 
> > > > Cheers,
> > > > Roland
> > > > 
> > > > > -----Original Message-----
> > > > > From: Glen Mazza [mailto:[EMAIL PROTECTED]
> > > > > Sent: Wednesday, 2 March 2005 10:48 AM
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: Re: check to see if newpage is
> > created
> > > > > 
> > > > > 
> > > > > I think he can, although I don't have an exact
> > > > example
> > > > > for him--[1] may come close.  It would be
> > > > convoluted,
> > > > > and I'm unsure whether it works in FOP, but:
> > > > > 
> > > > > Basically, he wants the static header to be
> > > > different
> > > > > on pages after one, if there is more than one
> > > > page. 
> > > > > That normally indicates using a
> > > > > fo:page-sequence-master with maximum-repeats =
> > 1
> > > > (see
> > > > > line 26 of [1]) for the first
> > > > > fo:repeatable-page-master-reference, and
> > > > "no-limit"
> > > > > for the second, with the two fo:r-p-m-r using
> > > > > different fo:simple-page-masters.
> > > > > 
> > > > > The first fo:s-p-m would be same as what he's
> > > > > currently using, the second fo:s-p-m would be
> > the
> > > > same
> > > > > as the first, *except* that fo:region-before
> > would
> > > > > have a different region-name property (say
> > > > > "show-contd-msg")
> > > > > 
> > > > > Next, within the fo:page-sequence, construct
> > two
> > > > > fo:static-contents for the differing headers
> > (see
> > > > line
> > > > > 38), one having a flow-name of
> > > > "xsl-region-before",
> > > > > and the other having a flow-name of
> > > > "show-contd-msg"
> > > > > (which has the "cont'd" message).  The first
> > > > fo:s-c
> > > > > will be activated for the first page, and the
> > > > second
> > > > > fo:s-c will activated for all other pages.
> > > > > 
> > > > > HTH,
> > > > > Glen
> > > > > 
> > > > > [1] http://tinyurl.com/4mwdc
> > > > > 
> > > > > 
> > > > > --- [EMAIL PROTECTED] wrote:
> > > > > 
> > > > > > If you are using static-content blocks to
> > create
> > > > > > headers and footers, 
> > > > > > you'll automatically get that content on the
> > new
> > > > > > page. You can also put a 
> > > > > > running title in the header or footer. If
> > you
> > > > make
> > > > > > the header area big 
> > > > > > enough and apply the same style choices to
> > the
> > > > > > running title, I suppose 
> > > > > > you could make it like like a continued
> > title
> > > > > > (perhaps even with the word 
> > > > > > "continued" after the title). As a rule,
> > that's
> > > > OK
> > > > > > in short (two pages or 
> > > > > > so) documents but will be seen as
> > heavy-handed
> > > > for
> > > > > > long documents.
> > > > > > 
> > > > > > If you want to insert a new title in the
> > body of
> > > > the
> > > > > > document each time a 
> > > > > > new page is created, I think you're out of
> > luck.
> > > > I
> > > > > > don't believe FOP 
> > > > > > offers a mechanism to detect when a flow has
> > > > crossed
> > > > > > a page boundary.
> > > > > > 
> > > > > > I don't think this is a weakness of FOP, by
> > the
> > > > way.
> > > > > > I'm pretty sure the 
> > > > > > FO spec offers no such mechanism, so any
> > > > compliant
> > > > > > implementation of the 
> > > > > > spec does not have that feature.
> > > > > > 
> > > > > > (I have qualified all my statements because
> > I
> > > > have
> > > > > > not taken the time to 
> > > > > > go check the spec.)
> > > > > > 
> > > > > > HTH
> > > > > > 
> > > > > > Jay Bryant
> > > > > > Bryant Communication Services
> > > > > > (presently consulting at Synergistic
> > Solution
> > > > > > Technologies)
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > "Jaysheel Bhavsar" <[EMAIL PROTECTED]>
> > 
> > > > > > 03/01/2005 04:08 PM
> > > > > > Please respond to
> > > > > > [EMAIL PROTECTED]
> > > > > > 
> > > > > > 
> > > > > > To
> > > > > > <[EMAIL PROTECTED]>
> > > > > > cc
> > > > > > 
> > > > > > Subject
> > > > > > check to see if newpage is created
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > Hi,
> > > > > >   I am displaying some text on one of the
> > pages,
> > > > and
> > > > > > some times the text
> > > > > > might be long enough that a new page is
> > created.
> > > > Is
> > > > > > there a way to check
> > > > > > if a new page is created so I put some page
> > > > title
> > > > > > eg. (cont...) or
> > > > > > something else.
> > > > > > 
> > > > > > Thanks
> > > > > > 
> > > > > > Jaysheel. 
> > > > > > 
> > > > > >
> > > > >
> > > >
> > >
> >
> ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail:
> > > > > > [EMAIL PROTECTED]
> > > > > > For additional commands, e-mail:
> > > > > > [EMAIL PROTECTED]
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > >
> > > > >
> > > >
> > >
> >
> ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail:
> > > > > > [EMAIL PROTECTED]
> > > > > > For additional commands, e-mail:
> > > > > > [EMAIL PROTECTED]
> > > > > > 
> > > > > > 
> > > > > 
> > > > > 
> > > > >
> > > >
> > >
> >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail:
> > > > [EMAIL PROTECTED]
> > > > > For additional commands, e-mail:
> > > > [EMAIL PROTECTED]
> > > > > 
> > > > > 
> > > > 
> > > >
> > >
> >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > > [EMAIL PROTECTED]
> > > > For additional commands, e-mail:
> > > > [EMAIL PROTECTED]
> > > > 
> > > > 
> > > 
> > > 
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > > 
> > > 
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to