Forrest
  1. Forrest
  2. FOR-1224

xslt transformation of resume2.xml generates invalid fo file

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.10-dev
    • Fix Version/s: 0.10-dev
    • Component/s: Plugin: input.Resume
    • Labels:
      None
    • Urgency:
      Normal

      Description

      I have customized my web site to include the file resume2.xml from the trunk

      I am using forrest-0.9 and I am attempting to transform resume2.xml in jetty into PDF by clicking on the link with the PDF icon.

      I have installed the resume plugin by copying the resume plugin of trunk into the folder $FORREST_HOME/whiteboard/plugins . There is a tiny potential version mismatch as my FORREST_HOME is version 0.9 and the plugin is from trunk.
      At the startup of forrest I see this message : No locationmap provided for plugin org.apache.forrest.plugin.input.Resume

      I can see in html the resume2, but once I click on the link for PDF I see this message : INTERNAL SERVER ERROR ... Error(Unknown location): fo:inline is not a valid child element of fo:list-block.

      I think somewhere in the documentation of forrest there is a paragraph explaining how to debug transformations, and I googled the error above, some people say that it happens when an empty <ul/> tag is generated in a transformation ? Not sure.

      resume.xml can be transformed into PDF properly.

      http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Resume/src/documentation/content/xdocs/resume2.xml
      1. patch.txt
        0.9 kB
        Antoine Levy-Lambert

        Activity

        Hide
        Brian M Dube added a comment -
        Patch reviewed and applied. Thanks.
        Show
        Brian M Dube added a comment - Patch reviewed and applied. Thanks.
        Hide
        Antoine Levy-Lambert added a comment -
        I just added a patch which resolves the issue of getting a PDF, at least in my use case.
        The problem could probably also be fixed in a different way by hardening the stylesheets which transform from <document/> to fo format.
        Likely it is only helper-commonElements.xsl which would need to become more strict.
        Show
        Antoine Levy-Lambert added a comment - I just added a patch which resolves the issue of getting a PDF, at least in my use case. The problem could probably also be fixed in a different way by hardening the stylesheets which transform from <document/> to fo format. Likely it is only helper-commonElements.xsl which would need to become more strict.
        Hide
        Antoine Levy-Lambert added a comment -
        patch for the resume-to-document.xsl file of the Resume plugin
        Show
        Antoine Levy-Lambert added a comment - patch for the resume-to-document.xsl file of the Resume plugin

          People

          • Assignee:
            Unassigned
            Reporter:
            Antoine Levy-Lambert
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development