Author: bodewig
Date: Fri Aug 12 04:14:12 2011
New Revision: 1156961
URL: http://svn.apache.org/viewvc?rev=1156961&view=rev
Log:
Don't generate 'Bugzilla Issue' lines if there is no issue attribute at all
Modified:
ant/antlibs/common/trunk/stylesheets/changes2readmehtml.xsl
ant/antlibs/common/trunk/stylesheets/changes2whatsnew.xsl
Modified: ant/antlibs/common/trunk/stylesheets/changes2readmehtml.xsl
URL:
http://svn.apache.org/viewvc/ant/antlibs/common/trunk/stylesheets/changes2readmehtml.xsl?rev=1156961&r1=1156960&r2=1156961&view=diff
==============================================================================
--- ant/antlibs/common/trunk/stylesheets/changes2readmehtml.xsl (original)
+++ ant/antlibs/common/trunk/stylesheets/changes2readmehtml.xsl Fri Aug 12
04:14:12 2011
@@ -50,7 +50,7 @@
<xsl:template match="action" mode="li">
<li>
<xsl:value-of select="text()"/>
- <xsl:if test="not(@issue='')">
+ <xsl:if test="@issue and not(@issue='')">
<a>
<xsl:attribute
name="href">http://issues.apache.org/bugzilla/show_bug.cgi?id=<xsl:value-of
select="@issue"/></xsl:attribute>
<xsl:text>BugZilla Issue </xsl:text><xsl:value-of
select="@issue"/><xsl:text></xsl:text>
Modified: ant/antlibs/common/trunk/stylesheets/changes2whatsnew.xsl
URL:
http://svn.apache.org/viewvc/ant/antlibs/common/trunk/stylesheets/changes2whatsnew.xsl?rev=1156961&r1=1156960&r2=1156961&view=diff
==============================================================================
--- ant/antlibs/common/trunk/stylesheets/changes2whatsnew.xsl (original)
+++ ant/antlibs/common/trunk/stylesheets/changes2whatsnew.xsl Fri Aug 12
04:14:12 2011
@@ -54,12 +54,13 @@
<xsl:template match="action" mode="li">
<xsl:value-of select="text()"/>
- <xsl:if test="not(@issue='')">
+ <xsl:if test="@issue and not(@issue='')">
<xsl:text>
BugZilla Issue </xsl:text><xsl:value-of select="@issue"/><xsl:text>
-
-</xsl:text>
+ </xsl:text>
</xsl:if>
+ <xsl:text>
+</xsl:text>
</xsl:template>
<!-- dont copy the text and unmatched nodes as per default in xsl -->