xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luis Bernardo <lmpmberna...@gmail.com>
Subject Re: How to Disable schema validation in FOP 1.1 (as in FOP 0.20.5)
Date Thu, 13 Mar 2014 14:11:31 GMT
In general setting strict validation to false or passing the -r switch in
the command line should do the trick. Can you send your example?


On Thu, Mar 13, 2014 at 11:54 AM, zeroxff <francesco.fioravanti@eng.it>wrote:

> Hello,
>
> Is it possible to convert FO file to PDF without validating FO? I've a set
> of old .fo files which can be processed and converted to PDF by FOP 0.20.5.
>
> Those files violate the (unofficial) FO XSD but the old release of Apache
> FOP ignores this and produces a PDF file.
>
> I've tried to disable the strict validation in Apache FOP 1 (via
> fopFactory.setStrictValidation(false)) but i've got no result.
>
> Is there any way to disable validation, as a backward compatibility measure
> with FOP 0.20.5?
>
> Examples of XSD violations (ignored by FOP 0.20.5)
>
>
> Here, fo:region-body, according to xsd, must be in first position but is
> not
> mandatory according to w3c
>
>
> Here, fo:external-graphic, according to xsd,  must be enclosed in a
> <fo:block>...</fo:block> element
>
> Thanks in advance.
> ff
>
>
>
>
> --
> View this message in context:
> http://apache-fop.1065347.n5.nabble.com/How-to-Disable-schema-validation-in-FOP-1-1-as-in-FOP-0-20-5-tp40222.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