Re: fo:marker initial child error

2004-07-01 Thread Louis . Masters

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_ladingRBHZamp;P00111/fo:markerfo: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




 
  J.Pietschmann   
 
  [EMAIL PROTECTED] To:  [EMAIL PROTECTED] 
 
  de  cc:  
 
   Subject: Re: fo:marker initial 
child error
  06/27/2004 18:01  
 
  Please respond
 
  to fop-user   
 

 

 



[EMAIL PROTECTED] wrote:
 I'm having a problem with my markers in fop 0.20.3.  The marker data
 displays correctly in the PDF, but I get a log full of the following
 message:

 1088163278596 - ERROR  [fop]:fo:marker must be an initial child,and
 'marker-class-name' must be unique for same parent

The most common reason for the must be an initial child message is
that there is whitespace before the marker. Your code snippet doesn't
give hints for this though. Try to run the XSL transformation
standalone and check the result.

J.Pietschmann


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: fo:marker initial child error

2004-07-01 Thread Clay Leeds
On Jul 1, 2004, at 7:57 AM, [EMAIL PROTECTED] 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_ladingRBHZamp;P00111/fo:markerfo: 
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]


Re: fo:marker initial child error

2004-07-01 Thread J.Pietschmann
[EMAIL PROTECTED] 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
I'd suspect the line feed before the fo:marker might cause the
problem. Every marker will trigger this.
I also suggest to put the markers into a fo:block in the cell
(there must be at least one anyway, I vaguely remember problems
if a marker was an immediate child of a fo:table-row or fo:table-cell.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: fo:marker initial child error

2004-07-01 Thread Louis . Masters

OK, I can get it to work if I manually remove the carriage returns and
place the marker inside an inline:

fo:inlinefo:marker
marker-class-name=marker__bill_of_ladingRBHZamp;P00111/fo:marker/fo:inline
fo:inlinefo:marker marker-class-name=marker__carrier//fo:inline


However, xalan will not let me do this.  When run the code through it, I
get:

fo:inline
fo:marker
marker-class-name=marker__bill_of_ladingRBHZamp;P00111/fo:marker
/fo:inline
fo:inline
fo:marker marker-class-name=marker__carrier/
/fo:inline

Which generates the error.  It looks like I might have to move this
discussion to the xalan group or try to implement what Clay showed on an
earlier thread.

-Lou




 
  J.Pietschmann   
 
  [EMAIL PROTECTED] To:  [EMAIL PROTECTED] 
 
  de  cc:  
 
   Subject: Re: fo:marker initial 
child error
  07/01/2004 13:13  
 
  Please respond
 
  to fop-user   
 

 

 



[EMAIL PROTECTED] 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

I'd suspect the line feed before the fo:marker might cause the
problem. Every marker will trigger this.

I also suggest to put the markers into a fo:block in the cell
(there must be at least one anyway, I vaguely remember problems
if a marker was an immediate child of a fo:table-row or fo:table-cell.

J.Pietschmann

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: fo:marker initial child error

2004-07-01 Thread J.Pietschmann
[EMAIL PROTECTED] wrote:
OK, I can get it to work if I manually remove the carriage returns and
place the marker inside an inline:
...
However, xalan will not let me do this.
The line feed probably comes from the input. Check whether
xsl:strip-space elemets=*, or a better selection of elements,
fixes this. If this doesn't help, or discards whitespace elsewhere,
refine the template which generates the FO containing the
markers.
Otherwise, check whether you've set indent=yes in the xsl:output
element, although this shouldn't have an effect if you run FOP
with the xml+xsl command line.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: fo:marker initial child error

2004-06-27 Thread J.Pietschmann
[EMAIL PROTECTED] wrote:
I'm having a problem with my markers in fop 0.20.3.  The marker data
displays correctly in the PDF, but I get a log full of the following
message:
1088163278596 - ERROR  [fop]:fo:marker must be an initial child,and
'marker-class-name' must be unique for same parent
The most common reason for the must be an initial child message is
that there is whitespace before the marker. Your code snippet doesn't
give hints for this though. Try to run the XSL transformation
standalone and check the result.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]