Bug 424306 - Prepare RSS Feed with PDT news
diff --git a/css/rss2html.xsl b/css/rss2html.xsl
new file mode 100644
index 0000000..1a66085
--- /dev/null
+++ b/css/rss2html.xsl
@@ -0,0 +1,186 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+	version="1.0" exclude-result-prefixes="pdt" xmlns:pdt="http://eclipse.org/pdt/schema/releases">
+	<xsl:output method="html" doctype-system="about:legacy-compat" />
+	<xsl:variable name="title" select="/rss/channel/title" />
+	<xsl:variable name="feedUrl" select="/rss/channel/atom10:link[@rel='self']/@href"
+		xmlns:atom10="http://www.w3.org/2005/Atom" />
+	<xsl:template match="/">
+		<xsl:element name="html">
+			<head>
+				<title>
+					<xsl:value-of select="$title" />
+				</title>
+				<link href="css/foundation.min.css" rel="stylesheet" type="text/css"
+					media="all" />
+				<link rel="alternate" type="application/rss+xml" title="{$title}" href="{$feedUrl}" />
+			</head>
+			<xsl:apply-templates select="rss/channel" />
+		</xsl:element>
+	</xsl:template>
+	<xsl:template match="channel">
+		<body>
+			<nav class="top-bar">
+				<ul class="title-area">
+					<li class="name"></li>
+				</ul>
+				<div class="top-bar-section">
+					<!-- Left Nav Section -->
+					<ul class="left">
+						<li>
+							<a href="https://eclipse.org/pdt/#about">
+								<span>About</span>
+							</a>
+						</li>
+						<li>
+							<a href="https://eclipse.org/pdt/#features">
+								<span>Features</span>
+							</a>
+						</li>
+						<li>
+							<a href="https://eclipse.org/pdt/#download">
+								<span>Download</span>
+							</a>
+						</li>
+						<li>
+							<a href="https://eclipse.org/pdt/#docs">
+								<span>Docs</span>
+							</a>
+						</li>
+						<li>
+							<a href="https://eclipse.org/pdt/#extensions">
+								<span>Extensions</span>
+							</a>
+						</li>
+						<li>
+							<a href="https://eclipse.org/pdt/#contributing">
+								<span>Contributing</span>
+							</a>
+						</li>
+					</ul>
+				</div>
+			</nav>
+			<div class="row">
+				<div class="large-12 columns">
+					<xsl:apply-templates select="image" />
+					<h1 style="padding: 30px 0px;">
+						<xsl:choose>
+							<xsl:when test="link">
+								<a href="{normalize-space(link)}" title="Link to original website">
+									<xsl:value-of select="$title" />
+								</a>
+							</xsl:when>
+							<xsl:otherwise>
+								<xsl:value-of select="$title" />
+							</xsl:otherwise>
+						</xsl:choose>
+					</h1>
+					<p class="clearfix" />
+				</div>
+			</div>
+			<div class="row">
+				<div class="large-12 columns">
+					<h2>
+						News
+					</h2>
+					<xsl:apply-templates select="item" />
+				</div>
+			</div>
+			<div class="row">
+				<div class="small-12 large-centered columns">
+					<dl class="sub-nav">
+						<dt></dt>
+						<dd>
+							<a href="https://eclipse.org">Home</a>
+						</dd>
+						<dt></dt>
+						<dd>
+							<a href="https://eclipse.org/legal/privacy.php">Privacy Policy</a>
+						</dd>
+						<dt></dt>
+						<dd>
+							<a href="https://eclipse.org/legal/termsofuse.php">Terms of Use</a>
+						</dd>
+						<dt></dt>
+						<dd>
+							<a href="https://eclipse.org/legal/copyright.php">Copyright Agent</a>
+						</dd>
+						<dt></dt>
+						<dd>
+							<a href="https://eclipse.org/legal/">Legal</a>
+						</dd>
+						<dt></dt>
+						<dd>
+							<a href="https://eclipse.org/org/foundation/contact.php">Contact Us</a>
+						</dd>
+						<dt></dt>
+						<dd>Copyright © 2015 The Eclipse Foundation. All Rights Reserved.</dd>
+					</dl>
+				</div>
+			</div>
+			<script src="js/vendor/modernizr.js"></script>
+			<script src="js/vendor/jquery.js"></script>
+			<script src="js/foundation.min.js"></script>
+		</body>
+	</xsl:template>
+	<xsl:template match="item" xmlns:dc="http://purl.org/dc/elements/1.1/">
+		<div class="row">
+			<div class="large-12 columns panel item">
+				<h3>
+					<a href="{normalize-space(link)}">
+						<xsl:value-of select="title" />
+					</a>
+				</h3>
+				<h5>
+					<xsl:if test="count(child::pubDate)=1">
+						<span>Posted:</span>
+						<xsl:value-of select="pubDate" />
+					</xsl:if>
+					<xsl:if test="count(child::dc:date)=1">
+						<span>Posted:</span>
+						<xsl:value-of select="dc:date" />
+					</xsl:if>
+				</h5>
+				<div class="itemcontent" name="decodeable">
+					<xsl:call-template name="outputContent" />
+				</div>
+
+				<xsl:if test="pdt:release='true'">
+					<p>
+						<xsl:if test="pdt:nn">
+							<a href="{normalize-space(pdt:nn)}" class="button radius tiny" style="margin-right: 10px;">
+								News &amp; Noteworthy
+							</a>
+						</xsl:if>
+						<xsl:if test="pdt:p2">
+							<a href="{normalize-space(pdt:p2)}" class="button radius tiny">
+								Download
+							</a>
+						</xsl:if>
+					</p>
+				</xsl:if>
+			</div>
+		</div>
+	</xsl:template>
+	<xsl:template match="image">
+		<a href="{normalize-space(link)}" title="Link to original website" style="float: right">
+			<img src="{url}" alt="{title}" style="height: 100px; margin: 20px 0px 10px 20px;" />
+		</a>
+		<xsl:text />
+	</xsl:template>
+	<xsl:template name="outputContent">
+		<xsl:choose>
+			<xsl:when xmlns:xhtml="http://www.w3.org/1999/xhtml" test="xhtml:body">
+				<xsl:copy-of select="xhtml:body/*" />
+			</xsl:when>
+			<xsl:when xmlns:xhtml="http://www.w3.org/1999/xhtml" test="xhtml:div">
+				<xsl:copy-of select="xhtml:div" />
+			</xsl:when>
+			<xsl:when test="description">
+				<p>
+					<xsl:value-of select="description" disable-output-escaping="yes" />
+				</p>
+			</xsl:when>
+		</xsl:choose>
+	</xsl:template>
+</xsl:stylesheet>
diff --git a/index.html b/index.html
index dd87a51..dca4925 100644
--- a/index.html
+++ b/index.html
@@ -9,6 +9,7 @@
     <meta name="robots" content="index,follow" />
     <link rel="stylesheet" href="css/foundation.min.css" />
     <link rel="shortcut icon" href="/eclipse.org-common/themes/solstice/public/images/favicon.ico"/>
+    <link rel="alternate" title="Eclipse PHP Development Tools Feed" href="news.xml" type="application/rss+xml"/> 
   </head>
   <body itemscope itemtype="http://schema.org/WebPage">
 
diff --git a/news.xml b/news.xml
new file mode 100644
index 0000000..cdd10bf
--- /dev/null
+++ b/news.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet type="text/xsl" media="screen" href="css/rss2html.xsl"?>
+<rss xmlns:pdt="http://eclipse.org/pdt/schema/releases" version="2.0">
+	<channel>
+		<title>Eclipse PHP Development Tools News</title>
+		<link>http://www.eclipse.org/pdt</link>
+		<description>Eclipse PHP Development Tools (PDT) News</description>
+		<image>
+			<url>https://projects.eclipse.org/sites/default/files/phplogo.png</url>
+			<title>PHP Development Tools</title>
+			<link>https://www.eclipse.org/pdt</link>
+		</image>
+		<item>
+			<title><![CDATA[PDT 3.5.0 released with Eclipse Mars]]></title>
+			<link>https://www.eclipse.org/forums/index.php/t/1067777/</link>
+			<description>PDT Team glad to announce new PDT version : 3.5! This release is
+				focused on stability and consistency while working with PHP projects.
+				Several new features are also included like redesigned debugger
+				configuration or smart object operator.</description>
+			<pubDate>Jun 24, 2015 9:00:00 am EST</pubDate>
+			<category>news</category>
+			<pdt:release>true</pdt:release>
+			<pdt:p2><![CDATA[https://projects.eclipse.org/projects/tools.pdt/releases/3.5/]]></pdt:p2>
+			<pdt:nn><![CDATA[https://wiki.eclipse.org/PDT/NewIn35]]></pdt:nn>
+		</item>
+		<item>
+			<title><![CDATA[PDT 3.4.0 released with Eclipse Luna SR2]]></title>
+			<link>https://www.eclipse.org/forums/index.php/t/1067777/</link>
+			<description>PDT Team glad to announce new PDT version : 3.4!</description>
+			<pubDate>Feb 27, 2015 9:00:00 am EST</pubDate>
+			<category>news</category>
+			<pdt:release>true</pdt:release>
+			<pdt:p2><![CDATA[https://projects.eclipse.org/projects/tools.pdt/releases/3.4/]]></pdt:p2>
+			<pdt:nn><![CDATA[https://wiki.eclipse.org/PDT/NewIn34]]></pdt:nn>
+		</item>
+		<item>
+			<title><![CDATA[PDT 3.3.2 released!]]></title>
+			<link>https://projects.eclipse.org/projects/tools.pdt/releases/3.3.2/</link>
+			<description>PDT Team glad to announce new PDT version : 3.3.2. This is maintenance release.</description>
+			<pubDate>Oct 31, 2015 9:00:00 am EST</pubDate>
+			<category>news</category>
+			<pdt:release>true</pdt:release>
+			<pdt:p2><![CDATA[https://projects.eclipse.org/projects/tools.pdt/releases/3.3.2/]]></pdt:p2>
+		</item>
+		<item>
+			<title><![CDATA[PDT 3.3.1 released with Eclipse Luna SR1]]></title>
+			<link>https://projects.eclipse.org/projects/tools.pdt/releases/3.3.1/</link>
+			<description>PDT Team glad to announce new PDT version : 3.3.1. This is maintenance release.</description>
+			<pubDate>Sep 26, 2015 9:00:00 am EST</pubDate>
+			<category>news</category>
+			<pdt:release>true</pdt:release>
+			<pdt:p2><![CDATA[https://projects.eclipse.org/projects/tools.pdt/releases/3.3.1/]]></pdt:p2>
+		</item>
+		<item>
+			<title><![CDATA[PDT 3.3.0 released with Eclipse Luna]]></title>
+			<link>https://wiki.eclipse.org/PDT/NewIn33/</link>
+			<description>PDT Team glad to announce new PDT version : 3.3</description>
+			<pubDate>Jun 25, 2015 9:00:00 am EST</pubDate>
+			<category>news</category>
+			<pdt:release>true</pdt:release>
+			<pdt:p2><![CDATA[https://projects.eclipse.org/projects/tools.pdt/releases/3.3/]]></pdt:p2>
+			<pdt:nn><![CDATA[https://wiki.eclipse.org/PDT/NewIn33]]></pdt:nn>
+		</item>
+	</channel>
+</rss>