Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Forrest: Dev

[jira] Commented: (FOR-1224) xslt transformation of resume2.xml generates invalid fo file

 

 

Forrest dev RSS feed   Index | Next | Previous | View Threaded


jira at apache

Mar 1, 2011, 7:53 PM

Post #1 of 3 (656 views)
Permalink
[jira] Commented: (FOR-1224) xslt transformation of resume2.xml generates invalid fo file

[ https://issues.apache.org/jira/browse/FOR-1224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13001264#comment-13001264 ]

Antoine Levy-Lambert commented on FOR-1224:
-------------------------------------------

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.

> xslt transformation of resume2.xml generates invalid fo file
> ------------------------------------------------------------
>
> Key: FOR-1224
> URL: https://issues.apache.org/jira/browse/FOR-1224
> Project: Forrest
> Issue Type: Bug
> Components: Plugin: input.Resume
> Affects Versions: 0.10-dev
> Reporter: Antoine Levy-Lambert
> Priority: Minor
> Attachments: patch.txt
>
>
> 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

--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


jira at apache

Mar 1, 2011, 10:00 PM

Post #2 of 3 (616 views)
Permalink
[jira] Commented: (FOR-1224) xslt transformation of resume2.xml generates invalid fo file [In reply to]

[ https://issues.apache.org/jira/browse/FOR-1224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13001297#comment-13001297 ]

Brian M Dube commented on FOR-1224:
-----------------------------------

Patch reviewed and applied. Thanks.

> xslt transformation of resume2.xml generates invalid fo file
> ------------------------------------------------------------
>
> Key: FOR-1224
> URL: https://issues.apache.org/jira/browse/FOR-1224
> Project: Forrest
> Issue Type: Bug
> Components: Plugin: input.Resume
> Affects Versions: 0.10-dev
> Reporter: Antoine Levy-Lambert
> Priority: Minor
> Fix For: 0.10-dev
>
> Attachments: patch.txt
>
>
> 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

--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


antoine at gmx

Mar 3, 2011, 7:43 PM

Post #3 of 3 (611 views)
Permalink
Re: [jira] Commented: (FOR-1224) xslt transformation of resume2.xml generates invalid fo file [In reply to]

Thanks for the fast turnaround.

Regards,

Antoine

On 3/2/11 1:00 AM, Brian M Dube (JIRA) wrote:
> [ https://issues.apache.org/jira/browse/FOR-1224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13001297#comment-13001297 ]
>
> Brian M Dube commented on FOR-1224:
> -----------------------------------
>
> Patch reviewed and applied. Thanks.
>

Forrest dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.