forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Crossley <cross...@apache.org>
Subject suite of helper xsl templates (Was: svn commit: r160775)
Date Mon, 11 Apr 2005 01:36:36 GMT
Thorsten Scherler 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.

Yes, i noticed what you did while i was preparing my patch.
However, i have never seen this use of
<alias:import href="cocoon://..."/>
so i did my quick fix until i can get my head around it.

Yes i reckon that we should have some method for a library
of helper xsl templates.

--David

Mime
View raw message