OK, setting strict validation to false relaxes strict validation but it doesn't mean that it is totally lax or just bypassed. It turns out that relaxed validation doesn't forgive your first example.... An example that would pass would be placing an fo:table-footer element after a fo:table-body.

On 3/13/14, 2:27 PM, zeroxff wrote:
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] <[hidden email] </user/SendEmail.jtp?type=node&node=40226&i=0>>:

    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.
    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 <http://www.eng.it>
c/o
*Regione Emilia-Romagna - PARER*
Viale Aldo Moro, 64 - 40100 Bologna
tel 051 527 8069

------------------------------------------------------------------------
View this message in context: Re: How to Disable schema validation in FOP 1.1 (as in FOP 0.20.5) <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 <http://apache-fop.1065347.n5.nabble.com/FOP-Users-f3.html> at Nabble.com.

Reply via email to