blob: 8519b32a5deb83a1ee14775cdb9157edfa4f9332 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="/sections">
<div id="maincontent">
<div id="midcolumn">
<table>
<tr>
<td width="60%">
<h1>
<xsl:value-of select="@title" />
</h1>
<div class="wtpsubtitle">
<xsl:value-of select="@subtitle" />
</div>
</td>
<td>
<img src="/webtools/images/wtplogosmall.jpg"
align="middle" height="129" hspace="50" width="207" />
</td>
</tr>
</table>
<xsl:apply-templates select="section[@class='main']"
mode="main" />
</div>
<div id="rightcolumn">
<xsl:apply-templates select="section[@class='infobox']"
mode="infobox" />
</div>
</div>
</xsl:template>
<xsl:template match="section" mode="main">
<div class="homeitem3col">
<xsl:if test="@anchor">
<a>
<xsl:attribute name="name">
<xsl:value-of select="@anchor" />
</xsl:attribute>
</a>
</xsl:if>
<h3>
<xsl:value-of select="@name" />
</h3>
<xsl:apply-templates select="description" mode="body" />
<ul>
<xsl:apply-templates />
</ul>
</div>
</xsl:template>
<xsl:template match="section" mode="infobox">
<div class="sideitem">
<h6>
<xsl:value-of select="@name" />
</h6>
<xsl:apply-templates select="description" mode="body" />
<ul>
<xsl:apply-templates />
</ul>
</div>
</xsl:template>
<xsl:template match="section">
<li>
<xsl:choose>
<xsl:when test="@name and @link">
<a>
<xsl:attribute name="href">
<xsl:value-of select="@link" />
</xsl:attribute>
<xsl:value-of select="@name" />
</a>
<br />
</xsl:when>
<xsl:otherwise>
<xsl:if test="@name">
<div class="sectiontitle">
<xsl:value-of select="@name" />
</div>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="@image">
<span class="sectionimage">
<img>
<xsl:attribute name="src">
<xsl:value-of select="@image" />
</xsl:attribute>
</img>
</span>
<xsl:apply-templates mode="body" />
<div class="clearall" />
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates mode="body" />
</xsl:otherwise>
</xsl:choose>
</li>
</xsl:template>
<xsl:template match="item">
<xsl:choose>
<xsl:when test="@link and @title">
<li>
<a>
<xsl:attribute name="href">
<xsl:value-of select="@link" />
</xsl:attribute>
<xsl:value-of select="@title" />
</a>
<xsl:if test="*|text()">
<br />
<xsl:apply-templates mode="body" />
</xsl:if>
</li>
</xsl:when>
<xsl:otherwise>
<xsl:if test="@title">
<div class="infoboxsubtitle">
<xsl:value-of select="@title" />
</div>
</xsl:if>
<xsl:if test="*|text()">
<li>
<xsl:apply-templates mode="body" />
</li>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="description" mode="body">
<p>
<xsl:apply-templates mode="body" />
</p>
</xsl:template>
<xsl:template match="*|@*|text()" mode="body">
<xsl:copy>
<xsl:apply-templates select="*|@*|text()" mode="body" />
</xsl:copy>
</xsl:template>
<xsl:template match="*|@*|text()" />
</xsl:stylesheet>