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

Antoine ROBERT commented on FOR-1135:
-------------------------------------

Hi back,

I worked part of the day on this ... Trying to understand Locationmap and 
output.xmap ...

I'm not sure I really anderstood, but anyway, I found something to correct my 
problem

What I did is to change file 
%FORREST_HOME%\plugins\org.apache.forrest.plugin.output.pdf\output.xmap

In this file I changed 

<map:transform src="{lm:pdf.transform.document.fo}">
                        <map:parameter name="imagesdir"  
value="{properties:resources.images}/"/>
                        <map:parameter name="xmlbasedir" 
value="{properties:content.xdocs}{1}"/>
                        <map:parameter name="path"       value="{1}"/>
                    </map:transform>

to 

<map:transform src="{lm:transform.document.fo}">
                        <map:parameter name="imagesdir"  
value="{properties:resources.images}/"/>
                        <map:parameter name="xmlbasedir" 
value="{properties:content.xdocs}{1}"/>
                        <map:parameter name="path"       value="{1}"/>
                    </map:transform>

Notice that the @src of the transformer changed  

I would not be really able to explain why I did that, but in my opinion, by 
resolving pdf.transform.document.fo we only resolve file which are defined in 
the file : %FORREST_HOME%\main\webapp\locationmap-transforms.xml

And in this file we don't talk about pdf.transform.*.fo but transform.*.fo ... 
And in other hand we have the file 
%FORREST_HOME%\plugins\org.apache.forrest.plugin.output.pdf\locationmap.xml 
which contains pattern : pdf.transform.*.* and which define only two locations 
which are : 
<match pattern="pdf.transform.*.*">
      <select>
        <location src="resources/stylesheets/{1}-to-{2}.xsl"/>
        <location
          
src="{forrest:forrest.plugins}/org.apache.forrest.plugin.output.pdf/resources/stylesheets/{1}-to-{2}.xsl"/>
      </select>
    </match>

So in my opinion this file is read in place of the first, and we never resolve 
file in Skins folder ...

I'm not sure to be really understandable with my poor english, anyway you can 
contact me on GoogleTalk to discuss about that [ 
antoine(dot)robert(dot)pro(at)gmail(dot)com ] 
PS: In my country (france) it's 19:37 pm so don't try to contact me at (my) 
05:00 am :) :)



> document-to-fo.xsl doesn't seem to be used anymore
> --------------------------------------------------
>
>                 Key: FOR-1135
>                 URL: https://issues.apache.org/jira/browse/FOR-1135
>             Project: Forrest
>          Issue Type: Bug
>          Components: Skins (general issues)
>            Reporter: Antoine ROBERT
>             Fix For: 0.9-dev
>
>
> Hi,
> I'm trying 0.9-dev version, and I used to overiding my PDF skin using 
> %FORREST_PROJECT%/src/documentation/skins/myskin/xslt/fo/document-to-fo.xsl
> But in my current test, forrest doesn't seem to use this file anymore ... It 
> seems to work for HTML xsl files, but not for my fo xsl ...
> So do you know what to do to correct this ? 
> Best regards

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.