xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zeroxff <francesco.fiorava...@eng.it>
Subject Re: How to Disable schema validation in FOP 1.1 (as in FOP 0.20.5)
Date Thu, 13 Mar 2014 14:27:18 GMT
Hello again,

i enclose the examples in plain text:
Examples of XSD violations (ignored by FOP 0.20.5)

<fo:simple-page-master margin-right="7mm" margin-left="7mm"
margin-bottom="7mm" margin-top="7mm" page-height="297mm" page-width="210mm"
master-name="A4">
   <fo:region-before extent="240mm" region-name="xsl-region-before"/>
   <fo:region-after extent="20mm"/>
   <fo:region-body margin-bottom="30.0mm" margin-top="70mm"/>
</fo:simple-page-master>

Here, fo:region-body, according to xsd, must be in first position but is
not mandatory according to w3c

<fo:table-cell border-width="0.1mm" border-before-style="solid"
border-left-style="solid" space-before="13mm" column-number="1">
   <fo:external-graphic scaling-method="integer-pixels" height="58px"
width="245px" src="file:logo.gif"/>
</fo:table-cell>

Here, fo:external-graphic, according to xsd,  must be enclosed in a
<fo:block>...</fo:block> element

sorry for the inconvenience.
ff


2014-03-13 15:12 GMT+01:00 Luis Bernardo [via Apache FOP] <
ml-node+s1065347n40224h56@n5.nabble.com>:

> 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 <[hidden email]<http://user/SendEmail.jtp?type=node&node=40224&i=0>
> > 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: [hidden email]<http://user/SendEmail.jtp?type=node&node=40224&i=1>
>> For additional commands, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=40224&i=2>
>>
>>
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-fop.1065347.n5.nabble.com/How-to-Disable-schema-validation-in-FOP-1-1-as-in-FOP-0-20-5-tp40222p40224.html
>  To unsubscribe from How to Disable schema validation in FOP 1.1 (as in
> FOP 0.20.5), click here<http://apache-fop.1065347.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=40222&code=ZnJhbmNlc2NvLmZpb3JhdmFudGlAZW5nLml0fDQwMjIyfDEwMzg0MDkzNg==>
> .
> NAML<http://apache-fop.1065347.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>



-- 
*Francesco Fioravanti*
Direzione PAL - Area Document Management

*Engineering Ingegneria Informatica spa*
Galleria del Leone, 3 - 40100 Bologna
www.eng.it

c/o
*Regione Emilia-Romagna - PARER*
Viale Aldo Moro, 64 - 40100 Bologna
tel 051 527 8069




--
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-tp40222p40226.html
Sent from the FOP - Users mailing list archive at Nabble.com.
Mime
View raw message