PERFORCE change 160311 for review

Gabor Pali pgj at FreeBSD.org
Mon Apr 6 23:36:44 PDT 2009


http://perforce.freebsd.org/chv.cgi?CH=160311

Change 160311 by pgj at beehive on 2009/04/07 06:36:31

	Translate header for security advisories (missed previously)
	
	MFP4 after:	1 day

Affected files ...

.. //depot/projects/docproj_hu/www/hu/share/sgml/libcommon.xsl#10 edit

Differences ...

==== //depot/projects/docproj_hu/www/hu/share/sgml/libcommon.xsl#10 (text+ko) ====

@@ -296,6 +296,55 @@
     </xsl:choose>
   </xsl:template>
 
+  <!-- template: "html-list-advisories-putitems"
+       sub-routine to generate a list -->
+
+  <xsl:template name="html-list-advisories-putitems">
+    <xsl:param name="items" select="''" />
+    <xsl:param name="prefix" select="''" />
+    <xsl:param name="prefixold" select="''" />
+
+    <xsl:if test="$items">
+      <table>
+        <tr><th>D&aacute;tum</th><th>Figyelmeztet&eacute;s</th></tr>
+        <xsl:for-each select="$items">
+          <xsl:variable name="year" select="../../../name" />
+          <xsl:variable name="month" select="../../name" />
+          <xsl:variable name="day" select="../name" />
+          <tr>
+            <td class="txtdate">
+	      <xsl:value-of select='
+		concat(format-number($year, "####"), "-",
+		format-number($month, "00"), "-",
+		format-number($day, "00"))' />
+            </td>
+            <td>
+	    <xsl:choose>
+	      <xsl:when test="@type='release'">
+                <i><xsl:value-of select="name" /></i>
+	      </xsl:when>
+	      <xsl:when test="@omithref='yes'">
+		<xsl:value-of select="name" />
+	      </xsl:when>
+	      <xsl:when test="name/@role='old'">
+		<a><xsl:attribute name="href">
+		    <xsl:value-of select="concat($prefixold, name, '.asc')" />
+		  </xsl:attribute>
+		  <xsl:value-of select="concat(name, '.asc')" /></a>
+	      </xsl:when>
+	      <xsl:otherwise>
+		<a><xsl:attribute name="href">
+		    <xsl:value-of select="concat($prefix, name, '.asc')" />
+		  </xsl:attribute>
+		  <xsl:value-of select="name" /></a>
+	      </xsl:otherwise>
+	    </xsl:choose>
+          </td></tr>
+	</xsl:for-each>
+      </table>
+    </xsl:if>
+  </xsl:template>
+
   <xsl:template name="html-index-news-project-items-lastmodified">
     <xsl:param name="news.project.xml-master" select="''" />
 


More information about the p4-projects mailing list