You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Brent Worden <br...@worden.org> on 2005/06/27 04:47:27 UTC

[math] RE: svn commit: r201912 - /jakarta/commons/proper/math/trunk/release-notes.xsl

Not to poo-poo on your work, but have you considered using the Maven
Announcement plugin for generating release notes?  It performs the same job
of creating a text file based on the changes.xml items.

Brent Worden  

> -----Original Message-----
> From: psteitz@apache.org [mailto:psteitz@apache.org] 
> Sent: Sunday, June 26, 2005 4:44 PM
> To: commons-cvs@jakarta.apache.org
> Subject: svn commit: r201912 - 
> /jakarta/commons/proper/math/trunk/release-notes.xsl
> 
> Author: psteitz
> Date: Sun Jun 26 14:43:34 2005
> New Revision: 201912
> 
> URL: http://svn.apache.org/viewcvs?rev=201912&view=rev
> Log:
> Eliminated trailing spaces.
> 
> Modified:
>     jakarta/commons/proper/math/trunk/release-notes.xsl
> 
> Modified: jakarta/commons/proper/math/trunk/release-notes.xsl
> URL: 
> http://svn.apache.org/viewcvs/jakarta/commons/proper/math/trun
> k/release-notes.xsl?rev=201912&r1=201911&r2=201912&view=diff
> ==============================================================
> ================
> --- jakarta/commons/proper/math/trunk/release-notes.xsl (original)
> +++ jakarta/commons/proper/math/trunk/release-notes.xsl Sun Jun 26 
> +++ 14:43:34 2005
> @@ -77,27 +77,27 @@
>       kludge to re-insert line feeds removed by parser. 
> Assumes new lines all
>       start with three or more leading spaces. 
>  -->
> -<xsl:variable name="pad" select="'   '"/>
> -<xsl:template name="keep.breaks">
> +<xsl:variable name="pad" select="'   '"/>
> +<xsl:template name="keep.breaks">
>    <xsl:param name="input"/>
> -  <xsl:if test="string-length($input) &gt; 0">      
> -    <xsl:choose>
> -      <xsl:when test="contains($input,$pad)">
> -        <xsl:variable name="init" 
> select="normalize-space(substring-before($input,$pad))"/>
> -        <xsl:variable name="term" 
> select="substring-after($input,$pad)"/>
> +  <xsl:if test="string-length($input) &gt; 0">
> +    <xsl:choose>
> +      <xsl:when test="contains($input,$pad)">
> +        <xsl:variable name="init" 
> select="normalize-space(substring-before($input,$pad))"/>
> +        <xsl:variable name="term" 
> + select="substring-after($input,$pad)"/>
>          <xsl:if test="string-length($init) &gt; 0">
>            <xsl:value-of select="$init"/><xsl:value-of 
> select="$CRLF"/>
> -        </xsl:if>
> +        </xsl:if>
>          <xsl:if test="string-length($term) &gt; 0">
>            <xsl:call-template name="keep.breaks">
>              <xsl:with-param name="input" select="$term"/>
>            </xsl:call-template>
> -        </xsl:if>
> -      </xsl:when>
> -      <xsl:otherwise>
> -        <xsl:value-of select="normalize-space($input)"/>
> -      </xsl:otherwise>
> -    </xsl:choose>           
> -  </xsl:if>    
> +        </xsl:if>
> +      </xsl:when>
> +      <xsl:otherwise>
> +        <xsl:value-of select="normalize-space($input)"/>
> +      </xsl:otherwise>
> +    </xsl:choose>
> +  </xsl:if>
>  </xsl:template>
>  </xsl:stylesheet>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Re: [math] RE: svn commit: r201912 - /jakarta/commons/proper/math/trunk/release-notes.xsl

Posted by Phil Steitz <ph...@gmail.com>.
Poo it is, then :-)
Much rather use something from maven.  I was unaware that this existed. 
I Will rip this stuff out, assuming the plugin works OK.  Thanks!

Phil

On 6/26/05, Brent Worden <br...@worden.org> wrote:
> Not to poo-poo on your work, but have you considered using the Maven
> Announcement plugin for generating release notes?  It performs the same job
> of creating a text file based on the changes.xml items.
> 
> Brent Worden
> 
> > -----Original Message-----
> > From: psteitz@apache.org [mailto:psteitz@apache.org]
> > Sent: Sunday, June 26, 2005 4:44 PM
> > To: commons-cvs@jakarta.apache.org
> > Subject: svn commit: r201912 -
> > /jakarta/commons/proper/math/trunk/release-notes.xsl
> >
> > Author: psteitz
> > Date: Sun Jun 26 14:43:34 2005
> > New Revision: 201912
> >
> > URL: http://svn.apache.org/viewcvs?rev=201912&view=rev
> > Log:
> > Eliminated trailing spaces.
> >
> > Modified:
> >     jakarta/commons/proper/math/trunk/release-notes.xsl
> >
> > Modified: jakarta/commons/proper/math/trunk/release-notes.xsl
> > URL:
> > http://svn.apache.org/viewcvs/jakarta/commons/proper/math/trun
> > k/release-notes.xsl?rev=201912&r1=201911&r2=201912&view=diff
> > ==============================================================
> > ================
> > --- jakarta/commons/proper/math/trunk/release-notes.xsl (original)
> > +++ jakarta/commons/proper/math/trunk/release-notes.xsl Sun Jun 26
> > +++ 14:43:34 2005
> > @@ -77,27 +77,27 @@
> >       kludge to re-insert line feeds removed by parser.
> > Assumes new lines all
> >       start with three or more leading spaces.
> >  -->
> > -<xsl:variable name="pad" select="'   '"/>
> > -<xsl:template name="keep.breaks">
> > +<xsl:variable name="pad" select="'   '"/>
> > +<xsl:template name="keep.breaks">
> >    <xsl:param name="input"/>
> > -  <xsl:if test="string-length($input) &gt; 0">
> > -    <xsl:choose>
> > -      <xsl:when test="contains($input,$pad)">
> > -        <xsl:variable name="init"
> > select="normalize-space(substring-before($input,$pad))"/>
> > -        <xsl:variable name="term"
> > select="substring-after($input,$pad)"/>
> > +  <xsl:if test="string-length($input) &gt; 0">
> > +    <xsl:choose>
> > +      <xsl:when test="contains($input,$pad)">
> > +        <xsl:variable name="init"
> > select="normalize-space(substring-before($input,$pad))"/>
> > +        <xsl:variable name="term"
> > + select="substring-after($input,$pad)"/>
> >          <xsl:if test="string-length($init) &gt; 0">
> >            <xsl:value-of select="$init"/><xsl:value-of
> > select="$CRLF"/>
> > -        </xsl:if>
> > +        </xsl:if>
> >          <xsl:if test="string-length($term) &gt; 0">
> >            <xsl:call-template name="keep.breaks">
> >              <xsl:with-param name="input" select="$term"/>
> >            </xsl:call-template>
> > -        </xsl:if>
> > -      </xsl:when>
> > -      <xsl:otherwise>
> > -        <xsl:value-of select="normalize-space($input)"/>
> > -      </xsl:otherwise>
> > -    </xsl:choose>
> > -  </xsl:if>
> > +        </xsl:if>
> > +      </xsl:when>
> > +      <xsl:otherwise>
> > +        <xsl:value-of select="normalize-space($input)"/>
> > +      </xsl:otherwise>
> > +    </xsl:choose>
> > +  </xsl:if>
> >  </xsl:template>
> >  </xsl:stylesheet>
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org