xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tecshine <tecsh...@yahoo.com>
Subject Re: org.apache.fop.fo.ValidationException: "fo:list-block" is missing child elements
Date Tue, 12 Jul 2011 08:52:22 GMT

Thanks for the reply Pascal

I have tried using fopFactory.setStrictValidation(false); but it doesnt
solve the problem.
Our entire application was based on FOP 0.20.5 and rewriting all XSLTs would
mean a lot of work.
Is there any other way we can resolve the issue.




Pascal Sancho wrote:
> 
> Hi Swetha,
> 
> FOP 1.0 is more strict than FOP 0.2x regarding the XSL-FO REC 1.1.
> Probably you will experiment further ValidationExceptions against FO
> elements or attributes (missing %block% in fo:table-cell is the most
> popular).
> 
> The best way is to rewrite your XSL-T to produce strict XSL-FO.
> 
> But FOP team offered a configuration tip to help in FOP 0.2x to Latest
> migration: see [strict-validation] element at [1].
> 
> 
> [1]
> http://xmlgraphics.apache.org/fop/1.0/configuration.html#general-available
> 
> Le 12/07/2011 08:14, tecshine a écrit :
>> 
>> I have migrated from fop 0.20.5 to FOP 1.0. I get the following exception 
>> javax.xml.transform.TransformerException:
>> org.apache.fop.fo.ValidationException: "fo:list-block" is missing child
>> elements. Required content model: marker* (list-item)+ (See position
>> 369:112)
>> I am aware that this kind of errors occur when the parent is empty or
>> doesnt
>> have child elements, so check the xsl file .All "fo:list-block" elements
>> in
>> the xsl file contain at least one  "fo:list-item" child element. Even
>> then I
>> stumble upon this exception. 
>> Can someone help me get out of this please.
>> 
>> Thanks in advance
>> Swetha
> 
> -- 
> Pascal
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/org.apache.fop.fo.ValidationException%3A-%22fo%3Alist-block%22-is-missing-child-elements-tp32043465p32044249.html
Sent from the FOP - Users mailing list archive at Nabble.com.


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


Mime
View raw message