Add missing arch= and revision= support.

This commit is contained in:
hrs 2014-01-14 23:04:31 +00:00
parent 296c7c9901
commit 11b54efacf

View File

@ -12,4 +12,49 @@
<xsl:param name="release.url"/>
<xsl:param name="release.branch"/>
<xsl:template name="paragraph">
<xsl:param name="class" select="''"/>
<xsl:param name="content"/>
<xsl:variable name="p">
<p>
<xsl:choose>
<xsl:when test="$class != ''">
<xsl:call-template name="common.html.attributes">
<xsl:with-param name="class" select="$class"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="locale.html.attributes"/>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="@arch">
<xsl:value-of select="concat('[', @arch, ']')"/>
<xsl:value-of select='" "'/>
</xsl:if>
<xsl:copy-of select="$content"/>
<xsl:value-of select='" "'/>
<xsl:if test="@revision">
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="concat('http://svn.freebsd.org/viewvc/base?view=revision&#38;revision=', @revision)"/>
</xsl:attribute>
<xsl:value-of select="concat('[r', @revision, ']')"/>
</xsl:element>
</xsl:if>
</p>
</xsl:variable>
<xsl:choose>
<xsl:when test="$html.cleanup != 0">
<xsl:call-template name="unwrap.p">
<xsl:with-param name="p" select="$p"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$p"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>