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 Navanee <na...@gft.com> on 2006/07/11 11:36:25 UTC

FO2PDF without validation

Hello,

 

Is it possible to convert FO file to PDF without validating FO?  I am
getting the following Exception.

 

org.apache.fop.fo.ValidationException: file:///E:/test.fo:66:1145:
Error(66/1145): fo:table-body is missing child elements. 

Required Content Model: marker* (table-row+|table-cell+)

            at
org.apache.fop.fo.FONode.missingChildElementError(FONode.java:403)

            at
org.apache.fop.fo.flow.TableBody.endOfNode(TableBody.java:103)

            at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:
357)

            at
org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:193)

 

Your suggestions are most welcome!

 

Thanks,

 

Best Regards

Navanee.

 

 


Re: FO2PDF without validation

Posted by Glen Mazza <gm...@apache.org>.
If it's not compliant, then it is not an FO file, and expected output 
would have to be undefined as a result.  I'm unsure why you would want 
to code your stylesheets in an invalid way.  If you have no data, better 
to code your XSLT not to generate a fo:table to begin with.

Glen

Navanee wrote:

> Hello,
>
>  
>
> Is it possible to convert FO file to PDF without validating FO?  I am 
> getting the following Exception.
>
>  
>
> org.apache.fop.fo.ValidationException: file:///E:/test.fo:66:1145: 
> Error(66/1145): fo:table-body is missing child elements.
>
> Required Content Model: marker* (table-row+|table-cell+)
>
>             at 
> org.apache.fop.fo.FONode.missingChildElementError(FONode.java:403)
>
>             at 
> org.apache.fop.fo.flow.TableBody.endOfNode(TableBody.java:103)
>
>             at 
> org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:357) 
>
>
>             at 
> org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:193)
>
>  
>
> Your suggestions are most welcome!
>
>  
>
> Thanks,
>
>  
>
> Best Regards
>
> Navanee.
>
>  
>
>  
>


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