At 2007-05-16 15:07 -0700, Horace Burke wrote:
Thanks for the info! I added a bigger chunk of XSL-FO and sample data.
No, you gave me the XSLT and sample data and that isn't what I asked
for. I asked you for the XSL-FO created by your XSLT ... you have an
XSL-FO question and not an XSLT question so why post the XSLT? Since
you still didn't give me what was needed I had to take the time to
turn your XSLT into a running stylesheet, pass the data, and *then* I
had the XSL-FO to work with to figure out the problem.
I'm sorry I didn't make it clear, but in my post I specifically
requested you to post the XSL-FO that was causing the problem, not
the XSLT that you gave.
The
fo:marker (marker-class-name="continued") is in the "title" xsl:template
and fo:retrieve-marker is in "RegulatoryInfo" template.
That is irrelevant ... I looked at your incorrect XSL-FO and
determined what working XSL-FO you need ... you can figure out what
changes are needed for your stylesheet.
The problem that I am having is the "(Continued)" text is displaying on
the first and second occurrences of the table title.
Yes, because you are using invalid constructs and your processor
isn't giving you any errors.
(1) - in your table header you were using <fo:retrieve-marker> which
is not allowed outside of static content according to FO 1.1 section
6.13.6 ... what you have to use is <fo:retrieve-table-marker>
(2) - you were defining your <fo:markers> inside of the table header
rather than inside the table body ... below I've defined two markers
adjacent and used the "first-including-carryover" thus picking up the
empty "continued" in the first header and the non-empty "continued"
in following headers, and I'm scoping the retrieval to the table.
Other problems unrelated to your question:
(1) - you have an <fo:marker> inside of <fo:static-content> and that
is not allowed according to 6.31.5
(2) - you have an footer with a one-cell row that was putting
irrelevant borders on the page, so I removed the footer
However you write your XSLT (which I have not inspected) the XSL-FO
below for a typical chapter appears to work fine with Antenna House V4.
I hope this helps.
. . . . . . . . . . . . . . Ken
<fo:table-header>
<fo:table-row>
<fo:table-cell border-style="solid" border-width="1.5pt"
border-bottom="1.5pt" border-left="1.5pt"
border-right="1.5pt" padding-top="2.5mm"
padding-bottom="2.5mm" number-columns-spanned="7">
<fo:block text-align="center" font-weight="bolder">
<fo:inline font-weight="bolder" font-size="14pt"
text-align="center">Section 15 Regulatory Information</fo:inline>
<fo:retrieve-table-marker retrieve-class-name="continued"
retrieve-position="first-including-carryover"
retrieve-boundary-within-table="table"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-header>
<fo:table-body>
<fo:table-row>
<fo:table-cell border-style="solid" border-width="1pt"
border-bottom="1pt" border-left="1.5pt" border-right="1.5pt"
padding-top="1.5mm" padding-bottom="1.5mm" text-align="left"
number-columns-spanned="7">
<fo:block>
<fo:marker marker-class-name="continued"/>
<fo:marker marker-class-name="continued">
<fo:inline font-weight="bolder">
(Continued)
</fo:inline>
</fo:marker>
</fo:block>
<fo:block start-indent=".3em" font-weight="bold">
US Federal and State Regulations
</fo:block>
</fo:table-cell>
</fo:table-row>
--
Upcoming hands-on training(Europe 2007): XSL-FO Jun 11; UBL Oct 01
World-wide corporate, govt. & user group XML, XSL and UBL training
RSS feeds: publicly-available developer resources and 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 Cancer Awareness Aug'05 http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers: http://www.CraneSoftwrights.com/legal