You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Data Nucleus (JIRA)" <ji...@codehaus.org> on 2012/07/03 07:12:21 UTC

[jira] (MPDF-57) PDF plugin creates FO file that results in "fo:list-block is not a valid child element of fo:list-block"

Data Nucleus created MPDF-57:
--------------------------------

             Summary: PDF plugin creates FO file that results in "fo:list-block is not a valid child element of fo:list-block"
                 Key: MPDF-57
                 URL: https://jira.codehaus.org/browse/MPDF-57
             Project: Maven 2.x PDF Plugin
          Issue Type: Bug
    Affects Versions: 1.1
         Environment: Maven 3.0.3, Linux kernel 3.3.6
            Reporter: Data Nucleus
         Attachments: m2_pdf_plugin_proj.zip

The attached project (an attempt to move to using Maven3 for site/pdf, currently using Maven1) causes 

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-pdf-plugin:1.1:pdf (default-cli) on project datanucleus-site: Error during document generation: Error creating PDF from /home/andy/work/datanucleus/documentation/m2_accessplatform/target/pdf/maven-pdf-plugin.fo: org.apache.fop.fo.ValidationException: file:/home/andy/work/datanucleus/documentation/m2_accessplatform/target/pdf/maven-pdf-plugin.fo:28264:175: Error(28264/175): fo:list-block is not a valid child element of fo:list-block. -> [Help 1]

The attached project when you run "mvn clean pdf:pdf" 100% reliably generates the above error. The input docs are all XDOC format. They seem to be parsed/validated ok, so am assuming there is no problem with the content (or maybe there is, but I'm not familiar with FO format to be able to spot it).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MPDF-57) PDF plugin creates FO file that results in "fo:list-block is not a valid child element of fo:list-block"

Posted by "Data Nucleus (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MPDF-57?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=302795#comment-302795 ] 

Data Nucleus commented on MPDF-57:
----------------------------------

Well validation is certainly performed on *some* files, since when I ran Maven3 "site" and "pdf:pdf" on a straight copy of a Maven1 project it whined about missing schema definition on *some* of the files. This then gives the user the *impression* that validation is being run, hence why I thought that. Thanks for the link for how to turn on *full* validation.
                
> PDF plugin creates FO file that results in "fo:list-block is not a valid child element of fo:list-block"
> --------------------------------------------------------------------------------------------------------
>
>                 Key: MPDF-57
>                 URL: https://jira.codehaus.org/browse/MPDF-57
>             Project: Maven 2.x PDF Plugin
>          Issue Type: Bug
>    Affects Versions: 1.1
>         Environment: Maven 3.0.3, Linux kernel 3.3.6
>            Reporter: Data Nucleus
>         Attachments: m2_pdf_plugin_proj.zip
>
>
> The attached project (an attempt to move to using Maven3 for site/pdf, currently using Maven1) causes 
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-pdf-plugin:1.1:pdf (default-cli) on project datanucleus-site: Error during document generation: Error creating PDF from /home/andy/work/datanucleus/documentation/m2_accessplatform/target/pdf/maven-pdf-plugin.fo: org.apache.fop.fo.ValidationException: file:/home/andy/work/datanucleus/documentation/m2_accessplatform/target/pdf/maven-pdf-plugin.fo:28264:175: Error(28264/175): fo:list-block is not a valid child element of fo:list-block. -> [Help 1]
> The attached project when you run "mvn clean pdf:pdf" 100% reliably generates the above error. The input docs are all XDOC format. They seem to be parsed/validated ok, so am assuming there is no problem with the content (or maybe there is, but I'm not familiar with FO format to be able to spot it).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MPDF-57) PDF plugin creates FO file that results in "fo:list-block is not a valid child element of fo:list-block"

Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MPDF-57?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=302694#comment-302694 ] 

Lukas Theussl commented on MPDF-57:
-----------------------------------

Validation is not performed by default by the site plugin, it has to be switched on explicitly, see the [FAQs|http://maven.apache.org/plugins/maven-site-plugin/faq.html#Can_I_validate_xml]. Running 'mvn -Dvalidate=true site:site' on the attached project you get immediately basic validation errors (no schema definition).
                
> PDF plugin creates FO file that results in "fo:list-block is not a valid child element of fo:list-block"
> --------------------------------------------------------------------------------------------------------
>
>                 Key: MPDF-57
>                 URL: https://jira.codehaus.org/browse/MPDF-57
>             Project: Maven 2.x PDF Plugin
>          Issue Type: Bug
>    Affects Versions: 1.1
>         Environment: Maven 3.0.3, Linux kernel 3.3.6
>            Reporter: Data Nucleus
>         Attachments: m2_pdf_plugin_proj.zip
>
>
> The attached project (an attempt to move to using Maven3 for site/pdf, currently using Maven1) causes 
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-pdf-plugin:1.1:pdf (default-cli) on project datanucleus-site: Error during document generation: Error creating PDF from /home/andy/work/datanucleus/documentation/m2_accessplatform/target/pdf/maven-pdf-plugin.fo: org.apache.fop.fo.ValidationException: file:/home/andy/work/datanucleus/documentation/m2_accessplatform/target/pdf/maven-pdf-plugin.fo:28264:175: Error(28264/175): fo:list-block is not a valid child element of fo:list-block. -> [Help 1]
> The attached project when you run "mvn clean pdf:pdf" 100% reliably generates the above error. The input docs are all XDOC format. They seem to be parsed/validated ok, so am assuming there is no problem with the content (or maybe there is, but I'm not familiar with FO format to be able to spot it).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MPDF-57) PDF plugin creates FO file that results in "fo:list-block is not a valid child element of fo:list-block"

Posted by "Data Nucleus (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MPDF-57?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Data Nucleus closed MPDF-57.
----------------------------

    Resolution: Not A Bug

Seemingly when it parses the XDOC files it actually doesn't bother validating many of them, and if one has a missing "<li>" before a nested "<ul>" then it causes this. I can fix that in my project and push it further. Obviously would have been better had the site/PDF plugin or Doxia validated the input in the first place so users wouldn't have some obscure message, and instead just have a validation error at some line in their original XDOC file. Thanks
                
> PDF plugin creates FO file that results in "fo:list-block is not a valid child element of fo:list-block"
> --------------------------------------------------------------------------------------------------------
>
>                 Key: MPDF-57
>                 URL: https://jira.codehaus.org/browse/MPDF-57
>             Project: Maven 2.x PDF Plugin
>          Issue Type: Bug
>    Affects Versions: 1.1
>         Environment: Maven 3.0.3, Linux kernel 3.3.6
>            Reporter: Data Nucleus
>         Attachments: m2_pdf_plugin_proj.zip
>
>
> The attached project (an attempt to move to using Maven3 for site/pdf, currently using Maven1) causes 
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-pdf-plugin:1.1:pdf (default-cli) on project datanucleus-site: Error during document generation: Error creating PDF from /home/andy/work/datanucleus/documentation/m2_accessplatform/target/pdf/maven-pdf-plugin.fo: org.apache.fop.fo.ValidationException: file:/home/andy/work/datanucleus/documentation/m2_accessplatform/target/pdf/maven-pdf-plugin.fo:28264:175: Error(28264/175): fo:list-block is not a valid child element of fo:list-block. -> [Help 1]
> The attached project when you run "mvn clean pdf:pdf" 100% reliably generates the above error. The input docs are all XDOC format. They seem to be parsed/validated ok, so am assuming there is no problem with the content (or maybe there is, but I'm not familiar with FO format to be able to spot it).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira