forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iss...@cocoondev.org
Subject [JIRA] Commented: (FOR-514) Do not limit status.xml contexts in project info plugin
Date Wed, 01 Jun 2005 13:45:55 GMT
The following comment has been added to this issue:

     Author: Cyriaque Dupoirieux
    Created: Wed, 1 Jun 2005 8:45 AM
       Body:
Good Ross,

I can work on it with your idea :
<actionContexts>
    <context id="code" description="Changes to the Code Base">
    <context id="docs" description="Changes to the Documentation">
</actionContexts>

And I will send a patch.

By the way, I could not - in my previous comment - send a patch because the issue were closed...
(that's why I send a code sample in the text...)
---------------------------------------------------------------------
View this comment:
  http://issues.cocoondev.org//browse/FOR-514?page=comments#action_12462

---------------------------------------------------------------------
View the issue:
  http://issues.cocoondev.org//browse/FOR-514

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: FOR-514
    Summary: Do not limit status.xml contexts in project info plugin
       Type: Improvement

     Status: Unassigned
   Priority: Minor

    Project: Forrest
 Components: 
             Plugin: projectInfo

   Assignee: 
   Reporter: Ross Gardler

    Created: Wed, 1 Jun 2005 6:02 AM
    Updated: Wed, 1 Jun 2005 8:45 AM

Description:
(This comment brought over from FOR-487)

This improvement of changes page is nice.

I have my own version based on xsl:key definition in order to be able to simply manage as
many contexts as you can define (My Dtd is not limited to "build|docs|code|admin|design".

The advantage - on my opinion - is that my own contexts are very various and not developpement
oriented nor language dependant.
here a short example - using releaseNote... :
        http://cyriaque.dupoirieux.free.fr/changes_6.2.1.html

The following code replace the 5 blocks <xsl:if test="action[@context='build']"> :

   <title>Version <xsl:value-of select="@version"/> (<xsl:value-of select="@date"/>)</title>
+ <xsl:for-each select="action[generate-id()=generate-id(key('contextes',concat(../@version,
'_', @context)))]">
+ <xsl:sort select="@context"/>
+ <section>
+ <title><xsl:value-of select="@context"/></title>
+ <ul>
+ <xsl:apply-templates select="key('contextes',concat(../@version, '_', @context) )">
+ <xsl:sort select="@type"/>
+ </xsl:apply-templates>
+ </ul>
+ </section>
+ </xsl:for-each>

Hope you'll like the idea...

Regards,
Cyriaque,


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.cocoondev.org//secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message