You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by bonekrusher <dj...@yahoo.com> on 2008/03/23 14:31:19 UTC

fo:marker - help with 2 different tables

Hi,

I;ve been working on this for days and seem to keep going in circles. I am
trying to create a marker when a table breaks between pages. The marker will
be on the second thru last pages only.

The problem is when I have two tables back to back. The markers work as they
are suppose to on the first table, however when I have the second table, I
get an unexpected marker "- (O) PROCEDURE MIDDLE" on the first page of the
2nd table.

if the first table finishes at the end of a page, I do not want the next
page to say ""- (O) PROCEDURE MIDDLE" as this is the start of the second
table, if should be "BLANK".

Here is my code xsl:


- For the sake of troubleshooting:

 I  use the following makers for the first table:

"BLANK" for 1st occurrence of the table
"- (M) PROCEDURE MIDDLE" - all tables that are not the first page and not
the last page
"- (M) PROCEDURE END" for the last occurrence of the table

 I  use the following markers for the 2nd table:

"BLANK" for 1st occurrence of the table
"- (O) PROCEDURE MIDDLE" - all tables that are not the first page and not
the last page
"- (O) PROCEDURE END" for the last occurrence of the table



My retrieve-markers are in the "xsl-region-before" :

<fo:block>
<fo:retrieve-marker retrieve-class-name="continued" retrieve-boundary="page"
retrieve-position="last-ending-within-page"/>
<fo:retrieve-marker retrieve-class-name="blank" retrieve-boundary="page"
retrieve-position="last-ending-within-page"/>
</fo:block>

Here are my tables is the "xsl-region-body"

<xsl:if test="//@mprocedure = '1'">
			<fo:table table-layout="fixed" width="100%">
				<fo:table-header>
					<fo:table-row keep-together="always">
						<fo:table-cell height="16px">
							<fo:block>
								<fo:marker marker-class-name="blank"/>
								<fo:marker marker-class-name="continued">- (M) PROCEDURE
MIDDLE</fo:marker>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
					<fo:table-row border-style="solid">
						<fo:table-cell xsl:use-attribute-sets="default-cell-padding"
height="16px">
							<xsl:call-template name="output-border-top"/>
							<xsl:call-template name="output-border-bottom"/>
							<xsl:call-template name="output-border-left"/>
							<xsl:call-template name="output-border-right"/>
							<fo:block height="16px">  (M) PROCEDURE </fo:block>
						</fo:table-cell>
					</fo:table-row>
				</fo:table-header>
				<fo:table-body>
					<fo:table-row>
						<fo:table-cell height="16px"
xsl:use-attribute-sets="default-cell-padding">
							<xsl:call-template name="output-border-top"/>
							<xsl:call-template name="output-border-bottom"/>
							<xsl:call-template name="output-border-left"/>
							<xsl:call-template name="output-border-right"/>
							<fo:block>
								<xsl:apply-templates select="ACM:MPROC"/>
							</fo:block>
							<fo:block>
								<fo:marker marker-class-name="blank"/>
								<fo:marker marker-class-name="continued">- (M) PROCEDURE
END</fo:marker>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
				</fo:table-body>
			</fo:table>
		</xsl:if>
		<xsl:if test="//@oprocedure = '1'">
			<fo:table table-layout="fixed" width="100%">
				<fo:table-header>
					<fo:table-row keep-together="always">
						<fo:table-cell height="16px">
							<fo:block>
								<fo:marker marker-class-name="continued">- (O) PROCEDURE
MIDDLE</fo:marker>
								<fo:marker marker-class-name="blank">BLANK</fo:marker>
							</fo:block>
							<fo:block/>
						</fo:table-cell>
					</fo:table-row>
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="default-cell-padding">
							<xsl:call-template name="output-border-top"/>
							<xsl:call-template name="output-border-bottom"/>
							<xsl:call-template name="output-border-left"/>
							<xsl:call-template name="output-border-right"/>
							<fo:block height="16px">
								<xsl:text>(O) PROCEDURE</xsl:text>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
				</fo:table-header>
				<fo:table-body>
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="default-cell-padding">
							<xsl:call-template name="output-border-top"/>
							<xsl:call-template name="output-border-bottom"/>
							<xsl:call-template name="output-border-left"/>
							<xsl:call-template name="output-border-right"/>
							<fo:block>
								<xsl:apply-templates select="ACM:OPROC"/>
							</fo:block>
							<fo:block>
								<fo:marker marker-class-name="blank">BLANK</fo:marker>
								<fo:marker marker-class-name="continued">- (O) PROCEDURE
END</fo:marker>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
				</fo:table-body>
			</fo:table>
		</xsl:if>
-- 
View this message in context: http://www.nabble.com/fo%3Amarker---help-with-2-different-tables-tp16235955p16235955.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org