- Convert these forgotten XSL files to the new convention

Approved by:	doceng (implicit)
This commit is contained in:
Gabor Kovesdan 2012-08-10 10:13:04 +00:00
parent 44ff87d9fa
commit 056e74b19c
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/projects/sgml2xml/; revision=39352
6 changed files with 33 additions and 196 deletions

View file

@ -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 -->

View file

@ -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>

View file

@ -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">

View file

@ -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">

View file

@ -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 -->

View file

@ -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>