blob: 7b9c60c36293c7a1b16ac7cef2b81c8457bdb4b6 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!--
An XSLT stylesheet that formats the N&N pages to resemble the Eclipse project's N&N look and feel.
Change Log:
2005-06-22: Nitin Dahyabhai <nitind@us.ibm.com>
- Created.
Usage: 1 release per file,
<release name="release or milestone number, like 1.5" root="../../..">
<component name="component name, such as Structured Source Editing">
<item title="item title can go here">
<title>item title can also go here</title>
<description>description of this new feature, preferrably with cropped .pngs of the UI</description>
</item>
</component>
</release>
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- read the root location and release name into variables -->
<xsl:template match="release">
<xsl:variable name="root" select="@root" />
<xsl:variable name="release" select="@name" />
<xsl:text disable-output-escaping="yes"><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">]]></xsl:text>
<html>
<head>
<link type="text/css" href="{$root}/development/news/default_style.css" rel="stylesheet" />
<title>Web Tools Platform <xsl:value-of select="$release" /> News</title>
</head>
<body>
<h1>Web Tools Platform <xsl:value-of select="$release" /> - New and Noteworthy
</h1>
<table border="0" cellpadding="10" cellspacing="2"
width="85%">
<tbody>
<xsl:apply-templates />
</tbody>
</table>
<p></p>
<p align="center">
<!-- <font color="#808080">Previous</font>-->
<!-- <a
href="{$root}/development/news/{$release}.html">
Up
</a> -->
<a
href="index.html">
Up
</a>
<!-- <font color="#808080">Next</font>-->
</p>
</body>
</html>
</xsl:template>
<xsl:template match="component">
<xsl:comment>separating row</xsl:comment>
<tr>
<td colspan="2">
<hr />
</td>
</tr>
<tr>
<td colspan="2">
<h3>
<xsl:value-of select="@name" />
</h3>
</td>
</tr>
<xsl:comment>separating row</xsl:comment>
<tr>
<td colspan="2">
<hr />
</td>
</tr>
<xsl:apply-templates select="item" />
</xsl:template>
<xsl:template match="item">
<xsl:comment>new item</xsl:comment>
<tr>
<td align="right" valign="top" width="15%">
<b>
<xsl:apply-templates select="title" />
<xsl:value-of select="@title" />
</b>
</td>
<td align="left" valign="top" width="85%">
<xsl:apply-templates select="description" />
</td>
</tr>
<xsl:comment>separating row</xsl:comment>
<tr>
<td colspan="2">
<hr />
</td>
</tr>
</xsl:template>
<xsl:template match="title">
<xsl:apply-templates select="*|@*|text()" />
</xsl:template>
<xsl:template match="description">
<xsl:apply-templates select="*|@*|text()" />
</xsl:template>
<xsl:template match="*|@*|text()">
<xsl:copy>
<xsl:apply-templates select="*|@*|text()" />
</xsl:copy>
</xsl:template>
</xsl:stylesheet>