You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by "Brian M Dube (JIRA)" <ji...@apache.org> on 2009/12/04 05:10:20 UTC

[jira] Commented: (FOR-1000) Use locationmap to resolve XSL imports in skins

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

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

The rewrites are done in r887050. I have not yet updated the documentation.

I used something like this:
$ grep -r --exclude-dir=\.svn xsl:import main/webapp/skins \
| awk -F : '{ print $1 }' \
| xargs sed -i 's_../../../common/xslt/.*/\(.*\)-to-\(.*\)\.xsl_lm://transform.skin.common.\2.\1-to-\2_'

and a slightly different version for the css. Changes to the naming scheme I used are fine by me.

There are a few files that may need to be handled separately:
$ grep -r --exclude-dir=\.svn xsl:import . | grep -v lm
./common/images/rc.svg.xslt:  <xsl:import href="corner-imports.svg.xslt" />
./common/images/dc.svg.xslt:  <xsl:import href="corner-imports.svg.xslt" />
./leather-dev/xslt/xml/contract.xsl:  <xsl:import href="fct-bits/fct-bits.xsl"/>
./leather-dev/xslt/xml/ft-to-xhtml.xsl:  <xsl:import href="fct-bits/fct-bits.xsl"/>

> Use locationmap to resolve XSL imports in skins
> -----------------------------------------------
>
>                 Key: FOR-1000
>                 URL: https://issues.apache.org/jira/browse/FOR-1000
>             Project: Forrest
>          Issue Type: Improvement
>          Components: Skins (general issues)
>    Affects Versions: 0.8
>            Reporter: Brian M Dube
>            Assignee: Brian M Dube
>            Priority: Minor
>             Fix For: 0.9-dev
>
>
> To create a custom skin that imports stylesheets from common, for example by copying pelt and modifying it for a project, it is also necessary to copy the common skin because the xsl:import calls use relative paths. The imports can be done with the help of the locationmap.

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