| <?xml version="1.0" encoding="utf-8"?> |
| |
| <!-- |
| This XSLT sytlesheet formats the pages for the WTP Web site using the standard Eclipse look and feel. |
| |
| Change Log: |
| |
| 2005-05-08: Arthur Ryman <ryman@ca.ibm.com> |
| - Added column widths to force proper alignment. |
| |
| 2005-01-01: Arthur Ryman <ryman@ca.ibm.com> |
| - Created. |
| --> |
| |
| <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
| |
| <xsl:variable name="root"> |
| <xsl:choose> |
| <xsl:when test="/html/head/meta[@name='root']/@content"> |
| <xsl:value-of select="/html/head/meta[@name='root']/@content"/> |
| </xsl:when> |
| <xsl:otherwise> |
| <xsl:text>../..</xsl:text> |
| </xsl:otherwise> |
| </xsl:choose> |
| </xsl:variable> |
| |
| <xsl:template match="/"> |
| <xsl:apply-templates/> |
| </xsl:template> |
| |
| <xsl:template match="html"> |
| <html> |
| <head> |
| <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type" /> |
| <link type="text/css" href="{$root}/default_style.css" rel="stylesheet" /> |
| <link type="text/css" href="{$root}/webtools/wtp.css" rel="stylesheet" /> |
| <xsl:apply-templates select="head/title"/> |
| </head> |
| <body> |
| <xsl:apply-templates select="body/h1" mode="banner"/> |
| <table border="0" cellpadding="2" cellspacing="5" width="100%"> |
| <col width="16" /> |
| <col width="*" /> |
| <tbody> |
| <xsl:apply-templates select="body/*" mode="body"/> |
| </tbody> |
| </table> |
| </body> |
| </html> |
| </xsl:template> |
| |
| <xsl:template match="h1" mode="banner"> |
| <table border="0" cellpadding="2" cellspacing="5" width="100%"> |
| <tbody> |
| <tr> |
| <td align="left" width="60%"><font class="indextop"><xsl:value-of select="."/></font><br /> |
| <font class="indexsub"><xsl:value-of select="/html/head/title"/></font></td> |
| <td width="40%"> <img src="{$root}/webtools/images/wtplogosmall.jpg" align="middle" height="129" hspace="50" width="207" /></td> |
| </tr> |
| </tbody> |
| </table> |
| </xsl:template> |
| |
| <xsl:template match="h1" mode="body"/> |
| |
| <xsl:template match="h2" mode="body"> |
| <tr> |
| <td colspan="2" align="left" bgcolor="#0080c0" valign="top"><b> |
| <font color="#ffffff" face="Arial,Helvetica"><xsl:apply-templates/></font></b></td> |
| </tr> |
| </xsl:template> |
| |
| <xsl:template match="h3" mode="body"> |
| <tr> |
| <td align="right" valign="top"><img src="{$root}/images/Adarrow.gif" border="0" height="16" width="16" /></td> |
| <td><xsl:apply-templates/></td> |
| </tr> |
| </xsl:template> |
| |
| <xsl:template match="*" mode="body"> |
| <tr> |
| <td align="right" valign="top"> </td> |
| <td valign="top"> |
| <xsl:copy> |
| <xsl:apply-templates select="*|@*|text()"/> |
| </xsl:copy> |
| </td> |
| </tr> |
| </xsl:template> |
| |
| <xsl:template match="*|@*|text()"> |
| <xsl:copy> |
| <xsl:apply-templates select="*|@*|text()"/> |
| </xsl:copy> |
| </xsl:template> |
| |
| </xsl:stylesheet> |