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

RE: fo:marker - can this be used to display header on

Subject: RE: fo:marker - can this be used to display header on page 3 using da ta from page 2?
From: "Williams, Brett L" <brett.williams@xxxxxxx>
Date: Wed, 19 May 2004 12:46:08 +0100
fo marker
Thanks.

I am still having trouble though.  I adapted the glossary.xsl and
glossary.xml (stripped this down to just a
glossary><definition></definition></glossary> structure) example that is
supplied with FOP. Now all I get is a marker on the first page of my
document (where it is not needed) and not on subsequent pages where glossary
definitions are broken over two pages.

<fo:static-content flow-name="xsl-region-before">
	<fo:block text-align="start" font-size="10pt" font-family="serif"
line-height="1em + 2pt">
		<fo:retrieve-marker retrieve-class-name="term"
retrieve-boundary="page-sequence"/>
	</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
	<xsl:apply-templates select="definition"/>
</fo:flow>

<xsl:template match="definition">
		<fo:block>
			<fo:marker marker-class-name="definition">
				<xsl:value-of select="."/>
			</fo:marker>
			<fo:block>
				<xsl:value-of select="."/>
			</fo:block>
			<fo:block>
				<fo:marker marker-class-name="definition"/>
			</fo:block>
		</fo:block>
</xsl:template>

Thanks.

Brett Williams.

-----Original Message-----
From: G. Ken Holman [mailto:gkholman@xxxxxxxxxxxxxxxxxxxx]
Sent: 18 May 2004 15:00
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  fo:marker - can this be used to display header on
page 3 using da ta from page 2?


To answer the question in your subject: no ... but you don't need to from 
what I interpret from your post.

At 2004-05-18 14:41 +0100, Williams, Brett L wrote:
>I am hoping to clarify what I have gathered from elsewhere with regard to 
>limitations of fo:marker.

Not sure what you classify about markers as limitations.

>I am producing a report that is broken down into classrooms, each 
>classroom has a number  (n) - there are a list of names under each 
>classroom. Occasionally the list of names runs over onto the next page of 
>the document. I need to add the text 'Classroom (n) Continued' at the top 
>of the next page only if this happens.

The design pattern is as follows:

   <static-content ...>
      <retrieve-marker .../>
   </static-content>
   ...
   <xsl:for-each select="classroom">
     <block>
       <marker ...>Classroom (n) Continued</marker>
       <block>...</block>
       <block>...</block>
       <block>...</block>
       <block>...</block>
     </block>
     <block>
       <marker ...></marker>
     </block>
   </xsl:for-each>

That way the marker is ready to be used if a page breaks in the middle of 
the blocks, but if all of the blocks fit, the following marker "clears out" 
the "continued text" and it doesn't show at the top.

I hope this helps.

........................ Ken


--
Public courses: Spring 2004 world tour of hands-on XSL instruction
Next: 3-day XSLT/XPath; 2-day XSL-FO - Birmingham, UK June 14,2004

World-wide on-site corporate, govt. & user group XML/XSL training.
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Breast Cancer Awareness  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

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.