Uploaded image for project: 'Maven Doxia'
  1. Maven Doxia
  2. DOXIA-594

Problem while validating generated .fo: fo:block is not a valid child of fo:list-block

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9
    • None
    • Module - FO
    • None

    Description

      I have got validation error while generating PDF in maven-pdf plugin using command `mvn -Ppdf`

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-pdf-plugin:1.5.0-SNAPSHOT:pdf (default-cli) on project maven-pdf-plugin: Error during document generation: Error creating PDF from maven-pdf-plugin\target\pdf\maven-pdf-plugin.fo: org.apache.fop.fo.ValidationException: file:/maven-pdf-plugin/target/pdf/maven-pdf-plugin.fo:7709:13: "fo:block" is not a valid child of "fo:list-block"! (See position 7709:13) -> [Help 1]

      Problematic generated block:

      <fo:list-block start-indent="inherited-property-value(start-indent)" space-before.optimum="10pt" provisional-distance-between-starts="1em" provisional-label-separation="1em">org.apache.maven.plugins:maven-pdf-plugin:maven-plugin:1.5.0-SNAPSHOT
      
      <fo:block />\-&#160;org.apache.maven.reporting:maven-reporting-impl:jar:2.3:compile
      
      <fo:block />&#160;&#160;&#160;\-&#160;commons-validator:commons-validator:jar:1.3.1:compile
      <fo:block />&#160;&#160;&#160;&#160;&#160;&#160;\-&#160;commons-digester:commons-digester:jar:1.6:compile
      <fo:block />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;\-&#160;(commons-beanutils:commons-beanutils:jar:1.6:compile - omitted for conflict with 1.7.0)
      <fo:block />
      <fo:block /></fo:list-block>
      
      

      Attachments

        1. maven-pdf-plugin.fo
          904 kB
          Sylwester Lachiewicz
        2. mvn-pdf-fo-snip.txt
          4 kB
          Sylwester Lachiewicz

        Activity

          People

            Unassigned Unassigned
            slachiewicz Sylwester Lachiewicz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: