svn commit: r260655 - head/release/doc/share/xml
Hiroki Sato
hrs at FreeBSD.org
Tue Jan 14 23:04:32 UTC 2014
Author: hrs
Date: Tue Jan 14 23:04:31 2014
New Revision: 260655
URL: http://svnweb.freebsd.org/changeset/base/260655
Log:
Add missing arch= and revision= support.
Modified:
head/release/doc/share/xml/release.xsl
Modified: head/release/doc/share/xml/release.xsl
==============================================================================
--- head/release/doc/share/xml/release.xsl Tue Jan 14 22:56:25 2014 (r260654)
+++ head/release/doc/share/xml/release.xsl Tue Jan 14 23:04:31 2014 (r260655)
@@ -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&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>
More information about the svn-src-head
mailing list