Uploaded image for project: 'Forrest (Retired)'
  1. Forrest (Retired)
  2. FOR-514

Do not limit status.xml contexts in project info plugin

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None

    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,

      Attachments

        1. 514-patch.txt
          31 kB
          David Crossley
        2. patchCorrected.txt
          5 kB
          Cyriaque Dupoirieux
        3. patchStatusUpdate.txt
          22 kB
          Cyriaque Dupoirieux

        Activity

          People

            Unassigned Unassigned
            rgardler Ross Gardler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: