forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <thors...@apache.org>
Subject Re: svn commit: r160775 - in forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo: input.xmap resources/stylesheets/changes2document.xsl resources/stylesheets/dotdots.xsl status.xml
Date Sun, 10 Apr 2005 15:53:23 GMT
On Sun, 2005-04-10 at 14:06 +0000, crossley@apache.org wrote:
> Author: crossley
> Date: Sun Apr 10 07:06:29 2005
> New Revision: 160775
> 
> URL: http://svn.apache.org/viewcvs?view=rev&rev=160775
> Log:
> Enable changes.html and todo.html to also be in subdirectories.
> Use relative location of images directory obtained via dotdots template.
...

> 
> Modified: forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/resources/stylesheets/changes2document.xsl
> URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/resources/stylesheets/changes2document.xsl?view=diff&r1=160774&r2=160775
> ==============================================================================
> --- forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/resources/stylesheets/changes2document.xsl
(original)
> +++ forrest/trunk/plugins/org.apache.forrest.plugin.projectInfo/resources/stylesheets/changes2document.xsl
Sun Apr 10 07:06:29 2005
> @@ -20,6 +20,16 @@
>      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>      version="1.0"> 
>  
> +  <xsl:param name="path"/>
> +  <xsl:include href="dotdots.xsl"/> <!-- FIXME: howto include from forrest
core -->
> +
> 

I defined it in the viewHelper output.xmap like 
<map:match pattern="dotdots">
  <map:generate src="{forrest:context}/skins/common/xslt/html/dotdots.xsl"/>
  <map:serialize type="xml"/>
</map:match>

http://svn.apache.org/viewcvs.cgi/forrest/trunk/plugins/org.apache.forrest.plugin.viewHelper/output.xmap?view=markup


...and then using it in prepare.xhtml.xsl like
<alias:import href="cocoon://dotdots"/>

http://svn.apache.org/viewcvs.cgi/forrest/trunk/plugins/org.apache.forrest.plugin.view/resources/stylesheets/prepare.xhtml.xsl?view=markup


Maybe we should declare the common helper stylesheets in the core and
this way could use them in the plugins.

WDYT?
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)


Mime
View raw message