Changeset View
Changeset View
Standalone View
Standalone View
share/xml/libcommon.xsl
Show First 20 Lines • Show All 1,050 Lines • ▼ Show 20 Lines | <xsl:template name="rss-security-advisories-items" | ||||
<xsl:for-each select="document($advisories.xml)/descendant::advisory[position() <= 10]"> | <xsl:for-each select="document($advisories.xml)/descendant::advisory[position() <= 10]"> | ||||
<item> | <item> | ||||
<title><xsl:value-of select="name"/></title> | <title><xsl:value-of select="name"/></title> | ||||
<xsl:choose> | <xsl:choose> | ||||
<xsl:when test="@omithref = 'yes'"> | <xsl:when test="@omithref = 'yes'"> | ||||
<link>https://www.FreeBSD.org/security</link> | <link>https://www.FreeBSD.org/security</link> | ||||
</xsl:when> | </xsl:when> | ||||
<xsl:otherwise> | <xsl:otherwise> | ||||
<link><xsl:value-of select="concat('&ftpbase;', name, '.asc')" /></link> | <link><xsl:value-of select="concat('https:', '&ftpbase;', name, '.asc')" /></link> | ||||
</xsl:otherwise> | </xsl:otherwise> | ||||
</xsl:choose> | </xsl:choose> | ||||
<guid><xsl:value-of select="concat('&ftpbase;', name, '.asc')" /></guid> | <guid><xsl:value-of select="concat('https:', '&ftpbase;', name, '.asc')" /></guid> | ||||
<pubDate> | <pubDate> | ||||
<xsl:call-template name="misc-format-date-string"> | <xsl:call-template name="misc-format-date-string"> | ||||
<xsl:with-param name="year" select="../../../name" /> | <xsl:with-param name="year" select="../../../name" /> | ||||
<xsl:with-param name="month" select="../../name" /> | <xsl:with-param name="month" select="../../name" /> | ||||
<xsl:with-param name="day" select="../name" /> | <xsl:with-param name="day" select="../name" /> | ||||
<xsl:with-param name="date-format" select="$param-l10n-date-format-rfc822" /> | <xsl:with-param name="date-format" select="$param-l10n-date-format-rfc822" /> | ||||
</xsl:call-template> | </xsl:call-template> | ||||
</pubDate> | </pubDate> | ||||
▲ Show 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | <xsl:template name="rss-errata-notices-items" | ||||
<xsl:for-each select="document($notices.xml)/descendant::notice[position() <= 10]"> | <xsl:for-each select="document($notices.xml)/descendant::notice[position() <= 10]"> | ||||
<item> | <item> | ||||
<title><xsl:value-of select="name"/></title> | <title><xsl:value-of select="name"/></title> | ||||
<xsl:choose> | <xsl:choose> | ||||
<xsl:when test="@omithref = 'yes'"> | <xsl:when test="@omithref = 'yes'"> | ||||
<link>https://www.FreeBSD.org/security</link> | <link>https://www.FreeBSD.org/security</link> | ||||
</xsl:when> | </xsl:when> | ||||
<xsl:otherwise> | <xsl:otherwise> | ||||
<link><xsl:value-of select="concat('&ftpbase;', name, '.asc')" /></link> | <link><xsl:value-of select="concat('https:', '&ftpbase;', name, '.asc')" /></link> | ||||
</xsl:otherwise> | </xsl:otherwise> | ||||
</xsl:choose> | </xsl:choose> | ||||
<guid><xsl:value-of select="concat('&ftpbase;', name, '.asc')" /></guid> | <guid><xsl:value-of select="concat('https:', '&ftpbase;', name, '.asc')" /></guid> | ||||
<pubDate> | <pubDate> | ||||
<xsl:call-template name="misc-format-date-string"> | <xsl:call-template name="misc-format-date-string"> | ||||
<xsl:with-param name="year" select="../../../name" /> | <xsl:with-param name="year" select="../../../name" /> | ||||
<xsl:with-param name="month" select="../../name" /> | <xsl:with-param name="month" select="../../name" /> | ||||
<xsl:with-param name="day" select="../name" /> | <xsl:with-param name="day" select="../name" /> | ||||
<xsl:with-param name="date-format" select="$param-l10n-date-format-rfc822" /> | <xsl:with-param name="date-format" select="$param-l10n-date-format-rfc822" /> | ||||
</xsl:call-template> | </xsl:call-template> | ||||
</pubDate> | </pubDate> | ||||
▲ Show 20 Lines • Show All 555 Lines • Show Last 20 Lines |