xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clay Leeds <cle...@medata.com>
Subject Re: fo:marker initial child error
Date Thu, 01 Jul 2004 15:20:50 GMT
On Jul 1, 2004, at 7:57 AM, Louis.Masters@log-net.com wrote:
> 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&amp;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"  
   <fo:static-content flow-name="xsl-region-before">
     <fo:block padding="0pt" xsl:use-attribute-sets="attributes_DEFAULT">
       <xsl:call-template name="tmpHeader"/>
   <fo:static-content flow-name="xsl-region-after">
     <fo:block xsl:use-attribute-sets="attributes_DEFAULT">
       <xsl:call-template name="tmpFooter"/>
   <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"/>

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-cell text-align="left" padding-left="6pt">
             <fo:block text-align="left" font-weight="bold">
               <fo:retrieve-marker retrieve-class-name="table-continued"  

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: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org

View raw message