Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Aug 2012 10:13:04 +0000 (UTC)
From:      Gabor Kovesdan <gabor@FreeBSD.org>
To:        doc-committers@freebsd.org, svn-doc-projects@freebsd.org
Subject:   svn commit: r39352 - projects/sgml2xml/hu_HU.ISO8859-2/share/sgml
Message-ID:  <201208101013.q7AAD4VG019877@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gabor
Date: Fri Aug 10 10:13:04 2012
New Revision: 39352
URL: http://svn.freebsd.org/changeset/doc/39352

Log:
  - Convert these forgotten XSL files to the new convention
  
  Approved by:	doceng (implicit)

Modified:
  projects/sgml2xml/hu_HU.ISO8859-2/share/sgml/templates.events.xsl
  projects/sgml2xml/hu_HU.ISO8859-2/share/sgml/templates.newsflash.xsl
  projects/sgml2xml/hu_HU.ISO8859-2/share/sgml/templates.oldnewsflash.xsl
  projects/sgml2xml/hu_HU.ISO8859-2/share/sgml/templates.oldpress.xsl
  projects/sgml2xml/hu_HU.ISO8859-2/share/sgml/templates.pastevents.xsl
  projects/sgml2xml/hu_HU.ISO8859-2/share/sgml/templates.press.xsl

Modified: projects/sgml2xml/hu_HU.ISO8859-2/share/sgml/templates.events.xsl
==============================================================================
--- projects/sgml2xml/hu_HU.ISO8859-2/share/sgml/templates.events.xsl	Fri Aug 10 01:40:19 2012	(r39351)
+++ projects/sgml2xml/hu_HU.ISO8859-2/share/sgml/templates.events.xsl	Fri Aug 10 10:13:04 2012	(r39352)
@@ -50,14 +50,7 @@
   exclude-result-prefixes="cvs">
 
   <xsl:import href="http://www.FreeBSD.org/XML/www/lang/share/sgml/libcommon.xsl"/>;
-
-  <xsl:variable name="date">
-    <xsl:value-of select="//cvs:keyword[@name='freebsd']"/>
-  </xsl:variable>
-
-  <xsl:output method="xml" encoding="&xml.encoding;"
-    doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
-    doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"/>
+  <xsl:import href="http://www.FreeBSD.org/XML/www/share/sgml/xhtml.xsl"/>;
 
   <xsl:param name="startyear">2009</xsl:param>
   <xsl:param name="pastyears">2008 2007 2006 2005 2004 2003</xsl:param>
@@ -78,10 +71,9 @@
 
   <xsl:variable name="charturl" select="'http://chart.apis.google.com/chart?cht=t&amp;chs=400x200&amp;chtm=world&amp;chco=ffffff,ffbe38,600000&amp;chf=bg,s,4D89F9'" />
 
-  <!-- Template: events -->
-  <xsl:template match="events">
+  <xsl:template name="process.content">
   <xsl:variable name="chart-countries">
-    <xsl:for-each select="event[
+    <xsl:for-each select="/events/event[
 	generate-id() =
 	generate-id(key('event-by-country', location/country/@code)[1])]">
       <xsl:sort select="format-number(count(key('event-by-country', location/country/@code)), '000')" order="descending"/>
@@ -90,7 +82,7 @@
   </xsl:variable>
 
   <xsl:variable name="chart-country-counts">
-    <xsl:for-each select="event[
+    <xsl:for-each select="/events/event[
 	generate-id() =
 	generate-id(key('event-by-country', location/country/@code)[1])]">
       <xsl:sort select="format-number(count(key('event-by-country', location/country/@code)), '000')" order="descending"/>
@@ -101,16 +93,6 @@
 
   <xsl:variable name="imageurl"><xsl:value-of select="$charturl"/>&amp;chd=t:<xsl:value-of select="$chart-country-counts"/>&amp;chld=<xsl:value-of select="$chart-countries"/></xsl:variable>
 
-    <html>
-      &header1;
-
-      <body>
-
-	<div id="containerwrap">
-	  <div id="container">
-	  &header2;
-
-	    <div id="content">
               <div id="SIDEWRAP">
                 &nav;
                 <div id="FEEDLINKS">
@@ -137,6 +119,7 @@
 	    format-number($curdate.day, '00'))"/>
 	</xsl:comment>
 
+	<xsl:for-each select="/events">
 		<xsl:call-template name="html-events-list-preface" />
 
 		<xsl:call-template name="html-events-map">
@@ -144,8 +127,9 @@
 		</xsl:call-template>
 
 		<xsl:call-template name="html-events-list-upcoming-heading" />
+	</xsl:for-each>
 
-	<xsl:for-each select="event[generate-id() =
+	<xsl:for-each select="/events/event[generate-id() =
           generate-id(key('event-by-month',
 	    concat(startdate/year, format-number(startdate/month, '00')))[1])
 	  and ((number(enddate/year) &gt; number($curdate.year)) or
@@ -182,9 +166,11 @@
 	  </ul>
 	</xsl:for-each>
 
+	<xsl:for-each select="/events">
 		<xsl:call-template name="html-events-list-past-heading" />
+	</xsl:for-each>
 
-	<xsl:for-each select="event[generate-id() =
+	<xsl:for-each select="/events/event[generate-id() =
 	  generate-id(key('event-by-month', concat(startdate/year,
 	    format-number(startdate/month, '00')))[1])
 	  and ((number(enddate/year) &gt;= $startyear)) and
@@ -225,24 +211,14 @@
 	<p>A kor&aacute;bbi &eacute;vek rendezv&eacute;nyei:</p>
 
         <ul id="events-past-years">
+	<xsl:for-each select="/events">
 	<xsl:call-template name="split-string">
           <xsl:with-param name="seperator" select="' '"/>
           <xsl:with-param name="text" select="$pastyears"/>
         </xsl:call-template>
+	</xsl:for-each>
         </ul>
 	      </div> <!-- contentwrap -->
-
-	      <br class="clearboth" />
-	    </div> <!-- content -->
-
-            <div id="FOOTER">
-               &copyright;<br />
-               &date;
-            </div> <!-- FOOTER -->
-	  </div> <!-- container -->
-	</div> <!-- containerwrap -->
-      </body>
-    </html>
   </xsl:template>
 
   <!-- Template: event -->

Modified: projects/sgml2xml/hu_HU.ISO8859-2/share/sgml/templates.newsflash.xsl
==============================================================================
--- projects/sgml2xml/hu_HU.ISO8859-2/share/sgml/templates.newsflash.xsl	Fri Aug 10 01:40:19 2012	(r39351)
+++ projects/sgml2xml/hu_HU.ISO8859-2/share/sgml/templates.newsflash.xsl	Fri Aug 10 10:13:04 2012	(r39352)
@@ -20,26 +20,12 @@
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
   xmlns:cvs="http://www.FreeBSD.org/XML/CVS">;
   <xsl:import href="http://www.FreeBSD.org/XML/www/lang/share/sgml/libcommon.xsl"/>;
-
-  <xsl:variable name="date">
-    <xsl:value-of select="//cvs:keyword[@name='freebsd']"/>
-  </xsl:variable>
+  <xsl:import href="http://www.FreeBSD.org/XML/www/share/sgml/xhtml.xsl"/>;
 
   <xsl:param name="news.project.xml-master" select="'none'" />
   <xsl:param name="news.project.xml" select="'none'" />
 
-  <xsl:output type="html" encoding="&xml.encoding;"/>
-
-  <xsl:template match="news">
-    <html>
-      &header1;
-      <body>
-
-	<div id="CONTAINERWRAP">
-	  <div id="CONTAINER">
-	    &header2;
-
-	    <div id="CONTENT">
+  <xsl:template name="process.content">
               <div id="SIDEWRAP">
                 &nav;
                 <div id="FEEDLINKS">
@@ -61,6 +47,7 @@
 	      <div id="CONTENTWRAP">
 		&header3;
 
+		<xsl:for-each select="/news">
 		<xsl:call-template name="html-news-list-newsflash-preface" />
 
 		<xsl:call-template name="html-news-list-newsflash">
@@ -71,19 +58,8 @@
 		<xsl:call-template name="html-news-make-olditems-list" />
 
 		<xsl:call-template name="html-news-list-newsflash-homelink" />
+		</xsl:for-each>
 
 	      </div> <!-- CONTENTWRAP -->
-	      <br class="clearboth" />
-	    </div> <!-- CONTENT -->
-
-            <div id="FOOTER">
-               &copyright;<br />
-               &date;
-            </div> <!-- FOOTER -->
-        </div> <!-- CONTAINER -->
-   </div> <!-- CONTAINERWRAP -->
-
-      </body>
-    </html>
   </xsl:template>
 </xsl:stylesheet>

Modified: projects/sgml2xml/hu_HU.ISO8859-2/share/sgml/templates.oldnewsflash.xsl
==============================================================================
--- projects/sgml2xml/hu_HU.ISO8859-2/share/sgml/templates.oldnewsflash.xsl	Fri Aug 10 01:40:19 2012	(r39351)
+++ projects/sgml2xml/hu_HU.ISO8859-2/share/sgml/templates.oldnewsflash.xsl	Fri Aug 10 10:13:04 2012	(r39352)
@@ -18,33 +18,17 @@
   xmlns:cvs="http://www.FreeBSD.org/XML/CVS">;
 
   <xsl:import href="http://www.FreeBSD.org/XML/www/lang/share/sgml/libcommon.xsl"/>;
+  <xsl:import href="http://www.FreeBSD.org/XML/www/share/sgml/xhtml.xsl"/>;
 
   <xsl:variable name="year">
     <xsl:value-of select="descendant::year/name"/>
   </xsl:variable>
-  <xsl:variable name="date">
-    <xsl:value-of select="//cvs:keyword[@name='freebsd']"/>
-  </xsl:variable>
-  
-  <xsl:output type="html" encoding="&xml.encoding;"/>
 
   <xsl:template match="p">
     <xsl:copy-of select="." />
   </xsl:template>
 
-  <xsl:template match="news">
-    <html>
-
-      &header1;
-
-      <body>
-
-	<div id="CONTAINERWRAP">
-	<div id="CONTAINER">
-
-	  &header2;
-
-	<div id="CONTENT">
+  <xsl:template names="process.content">
 	<div id="SIDEWRAP">
 	  &nav;
 	</div> <!-- SIDEWRAP -->
@@ -77,21 +61,6 @@
 
 	<a href="&base;/news/news.html">H&iacute;rek f&#245;oldal</a>
 	</div> <!-- CONTENTWRAP -->
-	<br class="clearboth" />
-
-	  </div> <!-- CONTENT -->
-
-            <div id="FOOTER">
-               &copyright;<br />
-               &date;
-
-            </div> <!-- FOOTER -->
-
-	</div> <!-- CONTAINER -->
-	</div> <!-- CONTAINERWRAP -->
-
-      </body>
-    </html>
   </xsl:template>
 
   <xsl:template match="month">

Modified: projects/sgml2xml/hu_HU.ISO8859-2/share/sgml/templates.oldpress.xsl
==============================================================================
--- projects/sgml2xml/hu_HU.ISO8859-2/share/sgml/templates.oldpress.xsl	Fri Aug 10 01:40:19 2012	(r39351)
+++ projects/sgml2xml/hu_HU.ISO8859-2/share/sgml/templates.oldpress.xsl	Fri Aug 10 10:13:04 2012	(r39352)
@@ -18,30 +18,13 @@
   xmlns:cvs="http://www.FreeBSD.org/XML/CVS">;
 
   <xsl:import href="http://www.FreeBSD.org/XML/www/lang/share/sgml/libcommon.xsl"/>;
+  <xsl:import href="http://www.FreeBSD.org/XML/www/share/sgml/xhtml.xsl"/>;
 
   <xsl:variable name="year">
     <xsl:value-of select="descendant::year/name"/>
   </xsl:variable>
 
-  <xsl:variable name="date">
-    <xsl:value-of select="//cvs:keyword[@name='freebsd']"/>
-  </xsl:variable>
-  
-  <xsl:output type="html" encoding="&xml.encoding;"/>
-
-  <xsl:template match="press">
-    <html>
-      
-      &header1;
-
-      <body>
-
-	<div id="CONTAINERWRAP">
-	<div id="CONTAINER">
-
-	  &header2;
-
-	<div id="CONTENT">
+  <xsl:template name="process.content">
 	<div id="SIDEWRAP">
 	  &nav;
 	</div> <!-- SIDEWRAP -->
@@ -68,20 +51,6 @@
 
 	<a href="&base;/news/news.html">H&iacute;rek f&#245;oldal</a>
 	</div> <!-- CONTENTWRAP -->
-	<br class="clearboth" />
-
-	</div> <!-- CONTENT -->
-
-            <div id="FOOTER">
-               &copyright;<br />
-               &date;
-            </div> <!-- FOOTER -->
-
-	</div> <!-- CONTAINER -->
-	</div> <!-- CONTAINERWRAP -->
-
-      </body>
-    </html>
   </xsl:template>
 
   <xsl:template match="month">

Modified: projects/sgml2xml/hu_HU.ISO8859-2/share/sgml/templates.pastevents.xsl
==============================================================================
--- projects/sgml2xml/hu_HU.ISO8859-2/share/sgml/templates.pastevents.xsl	Fri Aug 10 01:40:19 2012	(r39351)
+++ projects/sgml2xml/hu_HU.ISO8859-2/share/sgml/templates.pastevents.xsl	Fri Aug 10 10:13:04 2012	(r39352)
@@ -50,14 +50,7 @@
   exclude-result-prefixes="cvs">
 
   <xsl:import href="http://www.FreeBSD.org/XML/www/lang/share/sgml/libcommon.xsl"/>;
-
-  <xsl:variable name="date">
-    <xsl:value-of select="//cvs:keyword[@name='freebsd']"/>
-  </xsl:variable>
-
-  <xsl:output method="xml" encoding="&xml.encoding;"
-    doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
-    doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"/>
+  <xsl:import href="http://www.FreeBSD.org/XML/www/share/sgml/xhtml.xsl"/>;
 
   <xsl:param name="pastyears">2008 2007 2006 2005 2004 2003</xsl:param>
 
@@ -77,10 +70,9 @@
 
   <xsl:variable name="charturl" select="'http://chart.apis.google.com/chart?cht=t&amp;chs=400x200&amp;chtm=world&amp;chco=ffffff,ffbe38,600000&amp;chf=bg,s,4D89F9'" />
 
-  <!-- Template: events -->
-  <xsl:template match="events">
+  <xsl:template name="process.content">
   <xsl:variable name="chart-countries">
-    <xsl:for-each select="event[
+    <xsl:for-each select="/events/event[
 	generate-id() =
 	generate-id(key('event-by-country', location/country)[1])]">
       <xsl:sort select="format-number(count(key('event-by-country', location/country)), '000')" order="descending"/>
@@ -89,7 +81,7 @@
   </xsl:variable>
 
   <xsl:variable name="chart-country-counts">
-    <xsl:for-each select="event[
+    <xsl:for-each select="/events/event[
 	generate-id() =
 	generate-id(key('event-by-country', location/country)[1])]">
       <xsl:sort select="format-number(count(key('event-by-country', location/country)), '000')" order="descending"/>
@@ -100,16 +92,6 @@
 
   <xsl:variable name="imageurl"><xsl:value-of select="$charturl"/>&amp;chd=t:<xsl:value-of select="$chart-country-counts"/>&amp;chld=<xsl:value-of select="$chart-countries"/></xsl:variable>
 
-    <html>
-      &header1;
-
-      <body>
-
-	<div id="containerwrap">
-	  <div id="container">
-	  &header2;
-
-	    <div id="content">
               <div id="SIDEWRAP">
                 &nav;
                 <div id="FEEDLINKS">
@@ -136,6 +118,7 @@
 	    format-number($curdate.day, '00'))"/>
 	</xsl:comment>
 
+	<xsl:for-each select="/events">
 		<xsl:call-template name="html-events-list-preface" />
 
 		<xsl:call-template name="html-events-map">
@@ -144,8 +127,9 @@
 
 <!-- with parameter $year here? -->
 		<xsl:call-template name="html-events-list-past-heading" />
+	</xsl:for-each>
 
-	<xsl:for-each select="event[generate-id() =
+	<xsl:for-each select="/events/event[generate-id() =
 	  generate-id(key('event-by-month', concat(startdate/year,
 	    format-number(startdate/month, '00')))[1])
 	  and ((number(enddate/year) = $year))]">
@@ -182,25 +166,15 @@
 	<p>Az elm&uacute;lt &eacute;vek rendezv&eacute;nyei:</p>
 
         <ul id="events-past-years">
+	<xsl:for-each select="/events">
 	<xsl:call-template name="split-string">
           <xsl:with-param name="seperator" select="' '"/>
           <xsl:with-param name="text" select="$pastyears"/>
         </xsl:call-template>
+	</xsl:for-each>
         </ul>
 
 	      </div> <!-- contentwrap -->
-
-	      <br class="clearboth" />
-	    </div> <!-- content -->
-
-            <div id="FOOTER">
-               &copyright;<br />
-               &date;
-            </div> <!-- FOOTER -->
-	  </div> <!-- container -->
-	</div> <!-- containerwrap -->
-      </body>
-    </html>
   </xsl:template>
 
   <!-- Template: event -->

Modified: projects/sgml2xml/hu_HU.ISO8859-2/share/sgml/templates.press.xsl
==============================================================================
--- projects/sgml2xml/hu_HU.ISO8859-2/share/sgml/templates.press.xsl	Fri Aug 10 01:40:19 2012	(r39351)
+++ projects/sgml2xml/hu_HU.ISO8859-2/share/sgml/templates.press.xsl	Fri Aug 10 10:13:04 2012	(r39352)
@@ -21,27 +21,12 @@
   xmlns:cvs="http://www.FreeBSD.org/XML/CVS">;
 
   <xsl:import href="http://www.FreeBSD.org/XML/www/lang/share/sgml/libcommon.xsl"/>;
-
-  <xsl:variable name="date">
-    <xsl:value-of select="//cvs:keyword[@name='freebsd']"/>
-  </xsl:variable>
+  <xsl:import href="http://www.FreeBSD.org/XML/www/share/sgml/xhtml.xsl"/>;
 
   <xsl:param name="news.press.xml-master" select="'none'" />
   <xsl:param name="news.press.xml" select="'none'" />
 
-  <xsl:output type="html" encoding="&xml.encoding;"/>
-
-  <xsl:template match="press">
-    <html>
-      &header1;
-      <body>
-
-  <div id="CONTAINERWRAP">
-    <div id="CONTAINER">
-
-	&header2;
-
-	<div id="CONTENT">
+  <xsl:template name="process.content">
               <div id="SIDEWRAP">
                 &nav;
                 <div id="FEEDLINKS">
@@ -59,6 +44,7 @@
 
 	      &header3;
 
+		<xsl:for-each select="/press">
 		<xsl:call-template name="html-news-list-press-preface" />
 
 	<xsl:call-template name="html-news-list-press">
@@ -69,21 +55,8 @@
 		<xsl:call-template name="html-press-make-olditems-list" />
 
 		<xsl:call-template name="html-news-list-newsflash-homelink" />
+		</xsl:for-each>
 
 	  	</div> <!-- CONTENTWRAP -->
-		<br class="clearboth" />
-
-	</div> <!-- CONTENT -->
-
-            <div id="FOOTER">
-               &copyright;<br />
-               &date;
-            </div> <!-- FOOTER -->
-
-        </div> <!-- CONTAINER -->
-   </div> <!-- CONTAINERWRAP -->
-
-      </body>
-    </html>
   </xsl:template>
 </xsl:stylesheet>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208101013.q7AAD4VG019877>