Here is a sample table cell from the xalan processor (I stripped out almost
anything that might cause an issue):
<fo:table-row>
<fo:table-cell>
<fo:marker
marker-class-name="bill_of_lading">RBHZ&P000000111</fo:marker><fo: marker
marker-class-name="carrier"/><fo:marker
marker-class-name="vesselVoyage">/</fo:marker>
</fo:table-cell>
</fo:table-row>
I get the following errors:
[ERROR]: fo:marker must be an initial child,and 'marker-class-name' must be
unique for same parent
[ERROR]: fo:marker must be an initial child,and 'marker-class-name' must be
unique for same parent
It looks like the first marker is OK, but anything after that generates the
error.
Anything stand out? -Lou
Since they must be unique, they can only be on the page once. I don't know what you're trying to do, but the way I use them is to place a "Continued on next page" item. My solution was to place the marker at the *end* of my document--you could place yours after the table (the table-footer probably wouldn't work since it needs to be unique):
<fo:page-sequence master-reference="repeating" force-page-count="no-force">
<fo:static-content flow-name="xsl-region-before">
<fo:block padding="0pt" xsl:use-attribute-sets="attributes_DEFAULT">
<xsl:call-template name="tmpHeader"/>
</fo:block>
</fo:static-content>
<fo:static-content flow-name="xsl-region-after">
<fo:block xsl:use-attribute-sets="attributes_DEFAULT">
<xsl:call-template name="tmpFooter"/>
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block xsl:use-attribute-sets="attributes_DEFAULT">
<xsl:call-template name="tmpBody"/>
<fo:block padding="0pt" font-size="1pt">
<fo:marker marker-class-name="table-continued"/>
</fo:block>
</fo:block>
</fo:flow>
</fo:page-sequence>
Then I call it like this:
<!-- REGION-AFTER: tmpFooter TEMPLATE -->
<xsl:template name="tmpFooter">
<fo:block padding-left="18pt">
<fo:table border="0pt" padding-bottom="0pt" padding-right="0pt" padding-before="4pt" table-layout="fixed">
<fo:table-column column-width="20cm"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell text-align="left" padding-left="6pt">
<fo:block text-align="left" font-weight="bold">
<fo:retrieve-marker retrieve-class-name="table-continued" retrieve-position="last-starting-within-page" retrieve-boundary="page"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
..
</xsl:template>
Hope this information is useful...
Web Maestro Clay
p.s. Also, I suspect markers were improved in fop-0.20.4 & fop-0.20.5.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
