forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Turner <je...@apache.org>
Subject Re: cvs commit: xml-forrest/src/resources/stylesheets changes2document.xsl
Date Wed, 10 Sep 2003 11:00:30 GMT
On Wed, Sep 10, 2003 at 09:37:10AM -0000, cheche@apache.org wrote:
> cheche      2003/09/10 02:37:10
> 
>   Modified:    .        forrest.properties status.xml
>                src/resources/conf cocoon.xconf
>                src/resources/forrest-shbat forrest.build.xml
>                src/resources/fresh-site forrest.properties
>                src/resources/stylesheets changes2document.xsl
>   Log:
>   New attribute to allow a bug tracking system other than bugzilla.
...  
...  
>   Index: changes2document.xsl
>   ===================================================================
>   RCS file: /home/cvs/xml-forrest/src/resources/stylesheets/changes2document.xsl,v
>   retrieving revision 1.16
>   retrieving revision 1.17
>   diff -u -r1.16 -r1.17
>   --- changes2document.xsl	7 Aug 2003 16:23:19 -0000	1.16
>   +++ changes2document.xsl	10 Sep 2003 09:37:10 -0000	1.17
>   @@ -6,8 +6,8 @@
>    
>     <xsl:import href="copyover.xsl"/>
>    
>   + <xsl:variable name="bugtracking-url" select="document('../../WEB-INF/cocoon.xconf')/cocoon/input-modules/component-instance/values/bugtracking-url"/>

!?

Full marks for innovation :)  And apologies for not replying to your
earlier mail.

How about instead, passing the bugtracking-url into the XSLT as a
parameter, and accessing the cocoon.xconf value through the predefined
'defaults' input module:

  <map:transform ...>
   <map:parameter name="bugtracking-url" value="{defaults:bugtracking-url}"/>
 
In truth, this business of replacing @tokens@ in cocoon.xconf is just a
hack, and forrest.properties needs replacing with something more
permanent and accessible.  There's some RTs in the archives about this,
which we should dust off in 0.6.

Thanks for tackling this bug though.


--Jeff

Mime
View raw message