Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jun 2003 05:20:18 -0700 (PDT)
From:      Josef El-Rayes <j.el-rayes@daemon.li>
To:        freebsd-www@FreeBSD.org
Subject:   Re: www/53674: add events section to homepage
Message-ID:  <200306241220.h5OCKI63042452@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR www/53674; it has been noted by GNATS.

From: Josef El-Rayes <j.el-rayes@daemon.li>
To: freebsd-gnats-submit@FreeBSD.org, j.el-rayes@daemon.li
Cc: brueffer@FreeBSD.org
Subject: Re: www/53674: add events section to homepage
Date: Tue, 24 Jun 2003 14:14:18 +0200

 --BXVAT5kNtrzKuDFl
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 sorry!
 
 my .diff was total crap. i reworked it, so it includes the right files
 now!
 
 -josef
 -- 
 www: http://www.daemon.li
 nic-hdl: JER1080312-NICAT
 FreeBSD PortMaintainer 
 "Make World - Not War!"
 
 --BXVAT5kNtrzKuDFl
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="events.diff"
 
 diff -ruN en.orig/index.xsl en/index.xsl
 --- en.orig/index.xsl	Tue Jun 24 14:05:37 2003
 +++ en/index.xsl	Tue Jun 24 14:03:49 2003
 @@ -444,8 +444,32 @@
  			      </xsl:for-each>
  			      <a href="news/newsflash.html">More...</a>
  			    </font></p>
 -			  
 -			  <p><font size="+1" color="#990000"><b>FreeBSD Press</b></font><br/>
 +			
 +			<p><font size="+1" color="#990000"><b>FreeBSD Events</b></font><br/>			  
 +				<font size="-1">
 +				Latest update:
 +				<xsl:value-of 
 +				  select="document('news/events.xml')/descendant::month[position() = 1]/name"/>
 +				<xsl:text> </xsl:text>
 +				<xsl:value-of
 +				select="document('news/events.xml')/descendant::year[position() = 1]/name"/>
 +                              <br/>
 +                              <!-- Pull in the 10 most recent press items -->
 +                              <xsl:for-each
 +				select="document('news/events.xml')/descendant::story[position() &lt;10]">
 +				&#183; <a>
 +                                  <xsl:attribute name="href">
 +                                    news/events.html#<xsl:call-template name="generate-story-anchor"/>
 +                                  </xsl:attribute>
 +                                  <xsl:value-of select="name"/>
 +                                </a><br/>
 +                              </xsl:for-each>
 +                              <a href="news/events.html">More...</a>
 +                            </font>
 +                          </p>  
 +			
 +
 +			<p><font size="+1" color="#990000"><b>FreeBSD Press</b></font><br/>
  
  			    <font size="-1">
  			      Latest update: 
 diff -ruN en.orig/news/Makefile en/news/Makefile
 --- en.orig/news/Makefile	Tue Jun 24 14:13:21 2003
 +++ en/news/Makefile	Tue Jun 24 14:04:33 2003
 @@ -35,8 +35,8 @@
  SUBDIR+= 	2001
  SUBDIR+=	status
  
 -DATA=		newsflash.html news.rdf press.html
 -CLEANFILES+=	newsflash.html news.rdf press.html
 +DATA=		newsflash.html news.rdf press.html events.html
 +CLEANFILES+=	newsflash.html news.rdf press.html evnets.html
  
  newsflash.html: newsflash.xsl news.xml includes.xsl ../includes.xsl
  	${XSLTPROC} ${XSLTPROCOPTS} -o ${.TARGET} \
 @@ -52,6 +52,11 @@
  press.html: press.xsl press.xml includes.xsl ../includes.xsl
  	${XSLTPROC} ${XSLTPROCOPTS} -o ${.TARGET} \
  		${.CURDIR}/press.xsl ${.CURDIR}/press.xml
 +
 +events.html: events.xsl events.xml includes.xsl ../includes.xsl
 +	${XSLTPROC} ${XSLTPROCOPTS} -o ${.TARGET} \
 +		${.CURDIR}/events.xsl ${.CURDIR}/events.xml
 +
  .if !defined(NO_TIDY)
  	-${TIDY} ${TIDYOPTS} ${.TARGET}
  .endif
 diff -ruN en.orig/news/events.xml en/news/events.xml
 --- en.orig/news/events.xml	Thu Jan  1 01:00:00 1970
 +++ en/news/events.xml	Tue Jun 24 14:04:28 2003
 @@ -0,0 +1,71 @@
 +<?xml version="1.0"?>
 +<press>
 +  <cvs:keywords xmlns:cvs="http://www.FreeBSD.org/XML/CVS" version="1.0">
 +    <cvs:keyword name="freebsd">
 +      $FreeBSD: www/en/news/press.xml,v 1.72 2003/06/23 12:49:49 jkoshy Exp
 +$
 +    </cvs:keyword>
 +  </cvs:keywords>
 +                                                                                                                      
 +  <year>
 +    <name>2003</name>
 +                                                                                                                      
 +    <month>
 +      <name>September</name>
 +                                                                                                                      
 +      <story>
 +        <name>BSDCon '03, San Mateo, California</name>
 +        <url>http://www.usenix.org/events/bsdcon03/</url>;
 +        <site-name>http://www.usenix.org/events/bsdcon03/</site-name>;
 +        <site-url>http://www.usenix.org/events/bsdcon03/</site-url>;
 +        <date>8.-12. September 2003</date>
 +        <p>
 +	For the fourth time, the main BSD Event, BSDCon is happening - where
 +	you can mean the people behind the projects. Two days of tutorials will precede two and a half days
 +	of technical sessions. An opportunity for people of all experience levels to learn from BSD
 +	experts, professionals with real world experience, and industry leaders.
 +	</p>
 +      </story>
 +	</month>
 +	
 +	<month>
 +      <name>July</name>
 +
 +	<story>
 +        <name>Linuxtag 2003, Karlsruhe, Germany</name>
 +        <url>http://www.linuxtag.org</url>;
 +        <site-name>http://www.linuxtag.org</site-name>;
 +        <site-url>http://www.linuxtag.org</site-url>;
 +        <date>10.-13. July 2003</date>
 +        <p>
 +		 On upcoming Linuxtag, Europe's biggest Linuxexhibition and
 +		Conference, there will be some BSD Support. People from FreeBSD,
 +		NetBSD and OpenBSD, but also OpenDarwin people will staff the booth
 +		There will also be speeches. Felix Kronlage does an
 +		introducing speech about OpenDarwin, and Josef El-Rayes
 +		tells about FreeBSD and the FreeBSD Project. 
 +        </p>
 +      </story>
 +    </month>
 +
 +	<month>
 +      <name>May</name>
 +                                                                                                                      
 +        <story>
 +        <name>BSDay 2003, Warszawa, Poland</name>
 +        <url>http://www.avet.com.pl/en/conferences/bsday/bsday.php</url>;
 +        <site-name>http://www.avet.com.pl/en/conferences/bsday/bsday.php</site-name>;
 +        <site-url>http://www.avet.com.pl/en/conferences/bsday/bsday.php</site-url>;
 +        <date>21 May 2003</date>
 +        <p>
 +		Polands first BSD event, BSDay is a one-day conference dedicated to BSD systems and
 +		sponsored by O'Reilly. The events goal is to create an environment for polish 
 +		IT experts to meet and exchange their knowledge and
 +		share it with conference attendants. 
 +        </p>
 +      </story>
 +    </month>
 +
 +
 +</year>
 +</press>
 \ No newline at end of file
 diff -ruN en.orig/news/events.xsl en/news/events.xsl
 --- en.orig/news/events.xsl	Thu Jan  1 01:00:00 1970
 +++ en/news/events.xsl	Tue Jun 24 14:04:28 2003
 @@ -0,0 +1,73 @@
 +<?xml version="1.0" encoding="ISO-8859-1" ?>
 +
 +<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="../includes.xsl"/>
 +  <xsl:import href="includes.xsl"/>
 +
 +
 +  <xsl:variable name="base" select="'..'"/>
 +  <xsl:variable name="title" select="'FreeBSD Events'"/>
 +  <xsl:variable name="date">
 +    <xsl:value-of select="//cvs:keyword[@name='freebsd']"/>
 +  </xsl:variable>
 +  
 +  <xsl:output type="html" encoding="iso-8859-1"/>
 +
 +  <xsl:template match="press">
 +    <html>
 +      
 +      <xsl:copy-of select="$header1"/>
 +
 +      <body xsl:use-attribute-sets="att.body">
 +
 +	<xsl:copy-of select="$header2"/>
 +
 +	<p>If you know of any FreeBSD related events - or events that are of
 +interest for FreeBSD that we have not listed here, please send details to 
 +	  <a href="mailto:doc@freebsd.org">doc@FreeBSD.org</a> so that we can
 +	  include them.</p>
 +
 +	<xsl:apply-templates select="//month"/>
 +	
 +	<xsl:copy-of select="$newshome"/>
 +	<xsl:copy-of select="$footer"/>
 +      </body>
 +    </html>
 +  </xsl:template>
 +
 +  <!-- Everything that follows are templates for the rest of the content -->
 +  
 +  <xsl:template match="month">
 +    <h1><xsl:value-of select="name"/>
 +      <xsl:text> </xsl:text>
 +      <xsl:value-of select="ancestor::year/name"/></h1>
 +
 +    <ul>
 +      <xsl:apply-templates select="descendant::story"/>
 +    </ul>
 +  </xsl:template>
 +
 +  <xsl:template match="story">
 +    <xsl:variable name="url"><xsl:value-of select="url"/></xsl:variable>
 +    <xsl:variable name="site-url"><xsl:value-of
 +    select="site-url"/></xsl:variable>
 +
 +    <li>
 +      <a>
 +	<xsl:attribute name="name">
 +	  <xsl:call-template name="generate-story-anchor"/>
 +	</xsl:attribute>
 +      </a>
 +
 +      <p><a href="{$url}"><b><xsl:value-of
 +      select="name"/></b></a><br/>
 +	  
 +	<a href="{$site-url}"><xsl:value-of
 +	select="site-name"/></a>, <xsl:value-of select="author"/><br/>
 +	<xsl:copy-of select="p/child::node()"/>
 +      </p>
 +    </li>
 +  </xsl:template>
 +</xsl:stylesheet>
 
 --BXVAT5kNtrzKuDFl--



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