From: Wolfgang M. M. <wol...@us...> - 2004-07-22 19:00:57
|
Update of /cvsroot/exist/eXist-1.0/webapp/stylesheets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7562/webapp/stylesheets Modified Files: facts.xsl doc2html-2.xsl db2html.xsl Log Message: New site layout. Index: facts.xsl =================================================================== RCS file: /cvsroot/exist/eXist-1.0/webapp/stylesheets/facts.xsl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** facts.xsl 6 Jan 2004 14:10:16 -0000 1.1 --- facts.xsl 22 Jul 2004 19:00:47 -0000 1.2 *************** *** 9,13 **** <xsl:template match="category"> <table border="0" cellpadding="5" cellspacing="2"> ! <tr bgcolor="#0000FF"> <th colspan="2" align="left" style="color: white"> <xsl:value-of select="@name"/> --- 9,13 ---- <xsl:template match="category"> <table border="0" cellpadding="5" cellspacing="2"> ! <tr bgcolor="#999"> <th colspan="2" align="left" style="color: white"> <xsl:value-of select="@name"/> *************** *** 21,28 **** <xsl:template match="topic"> <tr> ! <td bgcolor="#BBDDFF" align="left" valign="top"> <b><xsl:value-of select="@name"/></b> </td> ! <td bgcolor="#BBDDFF"><xsl:apply-templates/></td> </tr> </xsl:template> --- 21,28 ---- <xsl:template match="topic"> <tr> ! <td bgcolor="#CCCCCC" align="left" valign="top"> <b><xsl:value-of select="@name"/></b> </td> ! <td><xsl:apply-templates/></td> </tr> </xsl:template> Index: db2html.xsl =================================================================== RCS file: /cvsroot/exist/eXist-1.0/webapp/stylesheets/db2html.xsl,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** db2html.xsl 29 Jan 2004 15:06:44 -0000 1.5 --- db2html.xsl 22 Jul 2004 19:00:47 -0000 1.6 *************** *** 15,19 **** </xsl:when> <xsl:otherwise> ! <link rel="stylesheet" type="text/css" href="default.css"/> </xsl:otherwise> </xsl:choose> --- 15,19 ---- </xsl:when> <xsl:otherwise> ! <link rel="stylesheet" type="text/css" href="styles/default-style.css"/> </xsl:otherwise> </xsl:choose> *************** *** 23,43 **** <body bgcolor="#FFFFFF"> <xsl:apply-templates select="bookinfo"/> ! <xsl:choose> ! <xsl:when test="sidebar:sidebar"> ! <table border="0" width="100%" cellspacing="7"> ! <tr> ! <td valign="top" width="15%"> ! <xsl:apply-templates select="sidebar:sidebar"/> ! </td> ! <td valign="top" width="85%"> ! <xsl:apply-templates select="chapter"/> ! </td> ! </tr> ! </table> ! </xsl:when> ! <xsl:otherwise> ! <xsl:apply-templates select="chapter"/> ! </xsl:otherwise> ! </xsl:choose> </body> </html> --- 23,30 ---- <body bgcolor="#FFFFFF"> <xsl:apply-templates select="bookinfo"/> ! <xsl:apply-templates select="sidebar:sidebar"/> ! <div id="content2col"> ! <xsl:apply-templates select="chapter"/> ! </div> </body> </html> *************** *** 147,152 **** <xsl:template match="bookinfo"> ! <xsl:apply-templates select="graphic"/><br/> ! <p class="header"><xsl:value-of select="title"/></p> </xsl:template> --- 134,146 ---- <xsl:template match="bookinfo"> ! <div id="top"> ! <img src="logo.jpg" title="eXist"/> ! <table id="menubar"> ! <tr> ! <td id="header"><xsl:value-of select="title"/></td> ! <xsl:apply-templates select="../sidebar:sidebar/sidebar:toolbar"/> ! </tr> ! </table> ! </div> </xsl:template> *************** *** 186,190 **** <div class="example"> <div class="example_title">Example: <xsl:value-of select="title"/></div> ! <xsl:apply-templates/> </div> </xsl:template> --- 180,184 ---- <div class="example"> <div class="example_title">Example: <xsl:value-of select="title"/></div> ! <xsl:apply-templates select="*[name(.)!='title']"/> </div> </xsl:template> *************** *** 218,221 **** --- 212,216 ---- <xsl:template match="title"> + <span id="header"><xsl:value-of select="."/></span> </xsl:template> *************** *** 306,358 **** </xsl:template> - <!-- templates for the sidebar --> - <xsl:template match="sidebar:sidebar"> ! <div class="sidebar:sidebar"> ! <xsl:apply-templates select="sidebar:group"/> ! <!--div class="xmlsrc"> ! <a href="?cocoon-view=pretty-content"><img src="resources/xml.gif" border="0" alt="view source"/></a><br/> ! </div--> ! <xsl:apply-templates select="sidebar:banner"/> ! <xsl:apply-templates select="../bookinfo//author"/> ! </div> ! </xsl:template> ! ! <xsl:template match="sidebar:group"> ! <xsl:choose> ! <xsl:when test="@href"> ! <a class="group" href="{@href}"> ! <div class="group"><xsl:value-of select="@name"/></div> ! </a> </xsl:when> <xsl:otherwise> ! <div class="group"><xsl:value-of select="@name"/></div> ! <xsl:choose> ! <xsl:when test="@empty"> ! <br/><xsl:apply-templates/> ! </xsl:when> ! <xsl:otherwise> ! <xsl:apply-templates/> ! </xsl:otherwise> ! </xsl:choose> </xsl:otherwise> </xsl:choose> ! </xsl:template> - <xsl:template match="sidebar:item"> - <xsl:choose> - <xsl:when test="../@empty"> - <xsl:apply-templates/> - </xsl:when> - <xsl:otherwise> - <div class="item"> - <xsl:apply-templates/> - </div> - </xsl:otherwise> - </xsl:choose> - </xsl:template> - <xsl:template match="sidebar:banner"> ! <div class="banner"><xsl:apply-templates/></div> </xsl:template> --- 301,341 ---- </xsl:template> <xsl:template match="sidebar:sidebar"> ! <div id="sidebar"> ! <xsl:apply-templates select="sidebar:group"/> ! <xsl:apply-templates select="sidebar:banner"/> ! </div> ! </xsl:template> ! ! <xsl:template match="sidebar:toolbar"> ! <td align="right"> ! <xsl:apply-templates/> ! </td> ! </xsl:template> ! ! <xsl:template match="sidebar:group"> ! <div class="block"> ! <h3><xsl:value-of select="@name"/></h3> ! <ul><xsl:apply-templates/></ul> ! </div> ! </xsl:template> ! ! <xsl:template match="sidebar:item"> ! <xsl:choose> ! <xsl:when test="../@empty"> ! <xsl:apply-templates/> </xsl:when> <xsl:otherwise> ! <li> ! <xsl:apply-templates/> ! </li> </xsl:otherwise> </xsl:choose> ! </xsl:template> <xsl:template match="sidebar:banner"> ! <div class="banner"> ! <xsl:apply-templates/> ! </div> </xsl:template> Index: doc2html-2.xsl =================================================================== RCS file: /cvsroot/exist/eXist-1.0/webapp/stylesheets/doc2html-2.xsl,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** doc2html-2.xsl 2 Feb 2004 15:30:37 -0000 1.8 --- doc2html-2.xsl 22 Jul 2004 19:00:47 -0000 1.9 *************** *** 1,290 **** <?xml version="1.0" encoding="UTF-8"?> ! <xsl:stylesheet ! xmlns:xsl="http://www.w3.org/1999/XSL/Transform" ! xmlns:exist="http://exist.sourceforge.net/NS/exist" ! xmlns:sidebar="http://exist-db.org/NS/sidebar" ! version="1.0"> <!-- used by multi-form pages --> ! <xsl:param name="page"/> ! <xsl:variable name="showpage"> <!-- ist Parameter $page gesetzt? --> - <xsl:choose> - <xsl:when test="$page"> - <xsl:value-of select="$page"/> - </xsl:when> - <!-- nein: hole name der ersten Page als Parameter --> - <xsl:otherwise> - <xsl:value-of select="//tabbed-form/page[1]/@name"/> - </xsl:otherwise> - </xsl:choose> - </xsl:variable> - - <xsl:template match="document"> - <xsl:variable name="css"> <xsl:choose> ! <xsl:when test="header/style/@href"> ! <xsl:value-of select="header/style/@href"/> </xsl:when> ! <xsl:otherwise>style.css</xsl:otherwise> </xsl:choose> </xsl:variable> - <html> - <head> - <title><xsl:value-of select="header/title"/></title> - <link rel="stylesheet" type="text/css" href="{$css}"/> - <xsl:if test="header/style"> - <xsl:copy-of select="header/style"/> - </xsl:if> - <xsl:if test="header/script"> - <xsl:copy-of select="header/script"/> - </xsl:if> - </head> ! <body bgcolor="#FFFFFF"> ! <table width="100%" border="0" cellpadding="10" cellspacing="0"> ! <tr valign="center"> ! <td valign="bottom"> ! <xsl:apply-templates select="header/logo"/> ! <p><xsl:apply-templates select="header"/></p> ! </td> ! </tr> ! </table> ! <xsl:choose> ! <xsl:when test="sidebar:sidebar"> ! <table border="0" width="100%" cellspacing="7"> ! <tr> ! <td valign="top" width="150"> ! <xsl:apply-templates select="sidebar:sidebar"/> ! <div class="authors"><xsl:apply-templates select="header/author"/></div> ! </td> ! <td valign="top"> ! <xsl:apply-templates select="body"/> ! </td> ! </tr> ! </table> ! </xsl:when> ! <xsl:otherwise> ! <xsl:apply-templates select="body"/> ! </xsl:otherwise> ! </xsl:choose> ! </body> ! </html> ! </xsl:template> ! <xsl:template match="logo"> ! <xsl:element name="img"> ! <xsl:attribute name="src"> ! <xsl:value-of select="@src"/> ! </xsl:attribute> ! <xsl:if test="@width"> ! <xsl:attribute name="width"> ! <xsl:value-of select="@width"/> ! </xsl:attribute> ! </xsl:if> ! <xsl:if test="@heigth"> ! <xsl:attribute name="heigth"> ! <xsl:value-of select="@height"/> ! </xsl:attribute> ! </xsl:if> ! </xsl:element> ! </xsl:template> ! <xsl:template match="header"> ! <span class="header"><xsl:value-of select="./title/text()"/></span> ! </xsl:template> ! <xsl:template match="body"> ! <xsl:apply-templates/> ! </xsl:template> ! <xsl:template match="error"> ! <p class="error"><xsl:apply-templates/></p> ! </xsl:template> ! ! <xsl:template match="exist:query-time"> ! <xsl:value-of select="//exist:result/@queryTime"/> ! </xsl:template> ! <xsl:template match="exist:hits"> ! <xsl:value-of select="//exist:result/@hitCount"/> ! </xsl:template> ! <xsl:template match="exist:retrieve-time"> ! <xsl:value-of select="//exist:result/@retrieveTime"/> ! </xsl:template> <!-- templates for the sidebar --> ! <xsl:template match="sidebar:sidebar"> ! <div class="sidebar"> ! <xsl:apply-templates select="sidebar:group"/> ! </div> ! <!--div class="xmlsrc"> ! <a href="?cocoon-view=pretty-content"><img src="resources/xml.gif" border="0" alt="view source"/></a><br/> ! </div--> ! <xsl:apply-templates select="sidebar:banner"/> ! </xsl:template> ! ! <xsl:template match="sidebar:group"> ! <xsl:choose> ! <xsl:when test="@href"> ! <a class="group" href="{@href}"> ! <div class="group"><xsl:value-of select="@name"/></div> ! </a> ! </xsl:when> ! <xsl:otherwise> ! <div class="group"><xsl:value-of select="@name"/></div> ! <xsl:choose> ! <xsl:when test="@empty"> ! <br/><xsl:apply-templates/> ! </xsl:when> ! <xsl:otherwise> ! <xsl:apply-templates/> ! </xsl:otherwise> ! </xsl:choose> ! </xsl:otherwise> ! </xsl:choose> ! </xsl:template> ! <xsl:template match="sidebar:item"> ! <xsl:choose> ! <xsl:when test="../@empty"> ! <xsl:apply-templates/> ! </xsl:when> ! <xsl:otherwise> ! <div class="item"> ! <xsl:apply-templates/> </div> ! </xsl:otherwise> ! </xsl:choose> ! </xsl:template> <xsl:template match="sidebar:banner"> ! <div class="banner"><xsl:apply-templates/></div> </xsl:template> - - <xsl:template match="link|sidebar:link"> - <xsl:choose> - <xsl:when test="@style"> - <a href="{@href}" style="{@style}"><xsl:apply-templates/></a> - </xsl:when> - <xsl:otherwise> - <a href="{@href}"><xsl:apply-templates/></a> - </xsl:otherwise> - </xsl:choose> - </xsl:template> ! <xsl:template match="author"> ! <small><xsl:value-of select="text()"/></small><br/> ! <xsl:if test="@email"> ! <a href="mailto:{@email}"><small><em><xsl:value-of select="@email"/></em></small></a> ! </xsl:if> ! </xsl:template> ! <xsl:template match="body/section"> ! <xsl:if test="@id"> ! <a name="{@id}"></a> ! </xsl:if> ! <h1><xsl:value-of select="@title"/></h1> ! <xsl:apply-templates/> ! </xsl:template> ! <xsl:template match="section/section"> ! <p></p> ! <xsl:if test="@id"> ! <a name="{@id}"></a> ! </xsl:if> ! <h2><xsl:value-of select="@title"/></h2> ! <xsl:apply-templates/> ! </xsl:template> ! <xsl:template match="p"> ! <p><xsl:apply-templates/></p> ! </xsl:template> ! <xsl:template match="emph"> ! <em><xsl:apply-templates/></em> ! </xsl:template> ! <xsl:template match="emphasis"> ! <span class="emphasis"><xsl:apply-templates/></span> ! </xsl:template> ! <xsl:template match="preserve"> ! <pre><xsl:apply-templates/></pre> ! </xsl:template> ! <xsl:template match="source"> ! <div align="center"> ! <table width="90%" cellspacing="4" cellpadding="0" border="0"> ! <tr> ! <td bgcolor="#0086b2" width="1" height="1"><img src="resources/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> ! <td bgcolor="#0086b2" height="1"><img src="resources/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> ! <td bgcolor="#0086b2" width="1" height="1"><img src="resources/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> ! </tr> ! <tr> ! <td bgcolor="#0086b2" width="1"><img src="resources/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> ! <td bgcolor="#ffffff"><pre><xsl:apply-templates/></pre></td> ! <td bgcolor="#0086b2" width="1"><img src="resources/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> ! </tr> ! <tr> ! <td bgcolor="#0086b2" width="1" height="1"><img src="resources/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> ! <td bgcolor="#0086b2" height="1"><img src="resources/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> ! <td bgcolor="#0086b2" width="1" height="1"><img src="resources/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td> ! </tr> ! </table> ! </div> ! </xsl:template> ! <xsl:template match="abstract"> ! <p> ! <table width="80%" border="0" cellpadding="0" cellspacing="0" align="center" ! bgcolor="#000000"> ! <tr> ! <td> ! <table width="100%" cellpadding="3" cellspacing="1"> ! <tr> ! <td width="98%" bgcolor="#FFFFFF"> ! <span class=".abstract"><xsl:apply-templates/></span> ! </td> ! </tr> ! </table> ! </td> ! </tr> ! </table> ! </p> ! </xsl:template> ! <xsl:template match="note"> ! <p> ! <table width="100%" cellspacing="3" cellpadding="0" border="0"> ! <tr> ! <td width="28" valign="top"> ! <img src="resources/note.gif" width="28" height="29" vspace="0" hspace="0" border="0" alt="Note"/> ! </td> ! <td valign="top"> ! <font size="-1" face="arial,helvetica,sanserif" color="#000000"> ! <i> ! <xsl:apply-templates/> ! </i> ! </font> ! </td> ! </tr> ! </table> ! </p> ! </xsl:template> ! <xsl:template match="ul|ol|dl"> ! <blockquote> ! <xsl:copy> ! <xsl:apply-templates/> ! </xsl:copy> ! </blockquote> ! </xsl:template> ! <xsl:template match="variablelist"> <div class="variablelist"> <table border="0" cellpadding="5" cellspacing="0"> --- 1,293 ---- <?xml version="1.0" encoding="UTF-8"?> ! <xsl:stylesheet ! xmlns:xsl="http://www.w3.org/1999/XSL/Transform" ! xmlns:exist="http://exist.sourceforge.net/NS/exist" ! xmlns:sidebar="http://exist-db.org/NS/sidebar" ! xmlns:dc="http://purl.org/dc/elements/1.1/" ! version="1.0"> <!-- used by multi-form pages --> ! <xsl:param name="page"/> ! <xsl:variable name="showpage"> <!-- ist Parameter $page gesetzt? --> <xsl:choose> ! <xsl:when test="$page"> ! <xsl:value-of select="$page"/> </xsl:when> ! <!-- nein: hole name der ersten Page als Parameter --> ! <xsl:otherwise> ! <xsl:value-of select="//tabbed-form/page[1]/@name"/> ! </xsl:otherwise> </xsl:choose> </xsl:variable> ! <xsl:template match="document"> ! <xsl:variable name="css"> ! <xsl:choose> ! <xsl:when test="header/style/@href"> ! <xsl:value-of select="header/style/@href"/> ! </xsl:when> ! <xsl:otherwise>styles/default-style.css</xsl:otherwise> ! </xsl:choose> ! </xsl:variable> ! <html> ! <head> ! <title> ! <xsl:value-of select="header/title"/> ! </title> ! <link rel="stylesheet" type="text/css" href="{$css}"/> ! <xsl:if test="header/style"> ! <xsl:copy-of select="header/style"/> ! </xsl:if> ! <xsl:if test="header/script"> ! <xsl:copy-of select="header/script"/> ! </xsl:if> ! </head> ! <body bgcolor="#FFFFFF"> ! <div id="top"> ! <img src="logo.jpg" title="eXist"/> ! <table id="menubar"> ! <tr> ! <td id="header"><xsl:value-of select="header/title"/></td> ! <xsl:apply-templates select="sidebar:sidebar/sidebar:toolbar"/> ! </tr> ! </table> ! </div> ! <xsl:apply-templates select="sidebar:sidebar"/> ! <xsl:apply-templates select="body"/> ! <xsl:apply-templates select="rss"/> ! </body> ! </html> ! </xsl:template> ! <xsl:template match="body"> ! <xsl:choose> ! <xsl:when test="../rss"> ! <div id="content"><xsl:apply-templates/></div> ! </xsl:when> ! <xsl:otherwise> ! <div id="content2col"><xsl:apply-templates/></div> ! </xsl:otherwise> ! </xsl:choose> ! </xsl:template> ! <xsl:template match="error"> ! <p class="error"> ! <xsl:apply-templates/> ! </p> ! </xsl:template> ! <xsl:template match="exist:query-time"> ! <xsl:value-of select="//exist:result/@queryTime"/> ! </xsl:template> ! <xsl:template match="exist:hits"> ! <xsl:value-of select="//exist:result/@hitCount"/> ! </xsl:template> ! <xsl:template match="exist:retrieve-time"> ! <xsl:value-of select="//exist:result/@retrieveTime"/> ! </xsl:template> <!-- templates for the sidebar --> ! <xsl:template match="sidebar:sidebar"> ! <div id="sidebar"> ! <xsl:apply-templates select="sidebar:group"/> ! <xsl:apply-templates select="sidebar:banner"/> ! </div> ! </xsl:template> ! <xsl:template match="sidebar:toolbar"> ! <td align="right"> ! <xsl:apply-templates/> ! </td> ! </xsl:template> ! ! <xsl:template match="sidebar:group"> ! <div class="block"> ! <h3><xsl:value-of select="@name"/></h3> ! <ul><xsl:apply-templates/></ul> </div> ! </xsl:template> ! ! <xsl:template match="sidebar:item"> ! <xsl:choose> ! <xsl:when test="../@empty"> ! <xsl:apply-templates/> ! </xsl:when> ! <xsl:otherwise> ! <li> ! <xsl:apply-templates/> ! </li> ! </xsl:otherwise> ! </xsl:choose> ! </xsl:template> <xsl:template match="sidebar:banner"> ! <div class="banner"> ! <xsl:apply-templates/> ! </div> </xsl:template> ! <xsl:template match="link|sidebar:link"> ! <a href="{@href}"><xsl:apply-templates/></a> ! </xsl:template> ! <xsl:template match="author"> ! <small> ! <xsl:value-of select="text()"/> ! </small> ! <br/> ! <xsl:if test="@email"> ! <a href="mailto:{@email}"> ! <small> ! <em> ! <xsl:value-of select="@email"/> ! </em> ! </small> ! </a> ! </xsl:if> ! </xsl:template> ! <xsl:template match="body/section"> ! <h1> ! <xsl:if test="@id"> ! <a name="{@id}"></a> ! </xsl:if> ! <xsl:value-of select="@title"/> ! </h1> ! <xsl:apply-templates/> ! </xsl:template> ! <xsl:template match="section/section"> ! <p></p> ! <xsl:if test="@id"> ! <a name="{@id}"></a> ! </xsl:if> ! <h2> ! <xsl:value-of select="@title"/> ! </h2> ! <xsl:apply-templates/> ! </xsl:template> ! <xsl:template match="p"> ! <p> ! <xsl:apply-templates/> ! </p> ! </xsl:template> ! <xsl:template match="emph"> ! <em> ! <xsl:apply-templates/> ! </em> ! </xsl:template> ! <xsl:template match="emphasis"> ! <span class="emphasis"> ! <xsl:apply-templates/> ! </span> ! </xsl:template> ! <xsl:template match="preserve"> ! <pre> ! <xsl:apply-templates/> ! </pre> ! </xsl:template> ! <xsl:template match="source"> ! <div align="center"> ! <table width="90%" cellspacing="4" cellpadding="0" border="0"> ! <tr> ! <td bgcolor="#0086b2" width="1" height="1"> ! <img src="resources/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/> ! </td> ! <td bgcolor="#0086b2" height="1"> ! <img src="resources/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/> ! </td> ! <td bgcolor="#0086b2" width="1" height="1"> ! <img src="resources/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/> ! </td> ! </tr> ! <tr> ! <td bgcolor="#0086b2" width="1"> ! <img src="resources/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/> ! </td> ! <td bgcolor="#ffffff"> ! <pre> ! <xsl:apply-templates/> ! </pre> ! </td> ! <td bgcolor="#0086b2" width="1"> ! <img src="resources/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/> ! </td> ! </tr> ! <tr> ! <td bgcolor="#0086b2" width="1" height="1"> ! <img src="resources/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/> ! </td> ! <td bgcolor="#0086b2" height="1"> ! <img src="resources/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/> ! </td> ! <td bgcolor="#0086b2" width="1" height="1"> ! <img src="resources/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/> ! </td> ! </tr> ! </table> ! </div> ! </xsl:template> ! <xsl:template match="abstract"> ! <p> ! <table width="80%" border="0" cellpadding="0" cellspacing="0" align="center" ! bgcolor="#000000"> ! <tr> ! <td> ! <table width="100%" cellpadding="3" cellspacing="1"> ! <tr> ! <td width="98%" bgcolor="#FFFFFF"> ! <span class=".abstract"> ! <xsl:apply-templates/> ! </span> ! </td> ! </tr> ! </table> ! </td> ! </tr> ! </table> ! </p> ! </xsl:template> ! <xsl:template match="note"> ! <p> ! <table width="100%" cellspacing="3" cellpadding="0" border="0"> ! <tr> ! <td width="28" valign="top"> ! <img src="resources/note.gif" width="28" height="29" vspace="0" hspace="0" border="0" alt="Note"/> ! </td> ! <td valign="top"> ! <font size="-1" face="arial,helvetica,sanserif" color="#000000"> ! <i> ! <xsl:apply-templates/> ! </i> ! </font> ! </td> ! </tr> ! </table> ! </p> ! </xsl:template> ! <xsl:template match="ul|ol|dl"> ! <blockquote> ! <xsl:copy> ! <xsl:apply-templates/> ! </xsl:copy> ! </blockquote> ! </xsl:template> ! ! <xsl:template match="variablelist"> <div class="variablelist"> <table border="0" cellpadding="5" cellspacing="0"> *************** *** 293,297 **** </div> </xsl:template> ! <xsl:template match="varlistentry"> <tr> --- 296,300 ---- </div> </xsl:template> ! <xsl:template match="varlistentry"> <tr> *************** *** 299,303 **** </tr> </xsl:template> ! <xsl:template match="term"> <td width="20%" align="left" valign="top"> --- 302,306 ---- </tr> </xsl:template> ! <xsl:template match="term"> <td width="20%" align="left" valign="top"> *************** *** 305,309 **** </td> </xsl:template> ! <xsl:template match="varlistentry/listitem"> <td width="80%" align="left"> --- 308,312 ---- </td> </xsl:template> ! <xsl:template match="varlistentry/listitem"> <td width="80%" align="left"> *************** *** 311,404 **** </td> </xsl:template> - - <xsl:template match="li"> - <xsl:copy> - <xsl:apply-templates/> - </xsl:copy> - </xsl:template> ! <xsl:template match="sl"> ! <ul> ! <xsl:apply-templates/> ! </ul> ! </xsl:template> ! ! <xsl:template match="b|em"> ! <xsl:copy> ! <xsl:apply-templates/> ! </xsl:copy> ! </xsl:template> ! <xsl:template match="@*|node()" priority="-1"> ! <xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy> ! </xsl:template> ! <xsl:template match="tabbed-form"> ! <table border="0" cellpadding="10" cellspacing="0" height="20"> ! <tr> ! <xsl:apply-templates select="page" mode="print-tabs"/> ! </tr> ! </table> ! <table border="0" cellpadding="15" cellspacing="0" width="100%" bgcolor="{@highcolor}"> ! <tr> ! <td class="tabpage"> ! <xsl:apply-templates select="page[@name=$showpage]"/> ! </td> ! </tr> ! </table> ! </xsl:template> ! <xsl:template match="page" mode="print-tabs"> ! <xsl:variable name="highcolor"> ! <xsl:value-of select="ancestor::tabbed-form/@highcolor"/> ! </xsl:variable> ! <xsl:variable name="lowcolor"> ! <xsl:value-of select="ancestor::tabbed-form/@lowcolor"/> ! </xsl:variable> ! <xsl:variable name="href"> ! <xsl:value-of select="ancestor::tabbed-form/@href"/> ! </xsl:variable> ! <xsl:choose> ! <xsl:when test="$showpage and $showpage=@name"> ! <td class="tab" bgcolor="{$highcolor}"> ! <b><xsl:value-of select="@label"/></b> ! </td> ! </xsl:when> ! <xsl:otherwise> ! <td class="tab" bgcolor="{$lowcolor}"> ! <a class="page" href="{$href}?page={@name}"> ! <b style="font-color: white"><xsl:value-of select="@label"/></b></a> ! </td> ! </xsl:otherwise> ! </xsl:choose> ! </xsl:template> ! <xsl:template match="page"> ! <xsl:apply-templates/> ! </xsl:template> ! <xsl:template match="definitionlist"> ! <table border="0" width="90%" align="center" cellpadding="5" cellspacing="5"> ! <xsl:apply-templates/> ! </table> ! </xsl:template> ! <xsl:template match="definition"> ! <tr> ! <xsl:apply-templates/> ! </tr> ! </xsl:template> ! <xsl:template match="term"> ! <td valign="top" width="10%"><xsl:apply-templates/></td> ! </xsl:template> ! <xsl:template match="def"> ! <td width="90%"><xsl:apply-templates/></td> ! </xsl:template> ! <xsl:include href="xmlsource.xsl"/> </xsl:stylesheet> --- 314,437 ---- </td> </xsl:template> ! <xsl:template match="li"> ! <xsl:copy> ! <xsl:apply-templates/> ! </xsl:copy> ! </xsl:template> ! <xsl:template match="sl"> ! <ul> ! <xsl:apply-templates/> ! </ul> ! </xsl:template> ! <xsl:template match="b|em"> ! <xsl:copy> ! <xsl:apply-templates/> ! </xsl:copy> ! </xsl:template> ! <xsl:template match="@*|node()" priority="-1"> ! <xsl:copy> ! <xsl:apply-templates select="@*|node()"/> ! </xsl:copy> ! </xsl:template> ! <xsl:template match="tabbed-form"> ! <table border="0" cellpadding="10" cellspacing="0" height="20"> ! <tr> ! <xsl:apply-templates select="page" mode="print-tabs"/> ! </tr> ! </table> ! <table border="0" cellpadding="15" cellspacing="0" width="100%" bgcolor="{@highcolor}"> ! <tr> ! <td class="tabpage"> ! <xsl:apply-templates select="page[@name=$showpage]"/> ! </td> ! </tr> ! </table> ! </xsl:template> ! <xsl:template match="page" mode="print-tabs"> ! <xsl:variable name="highcolor"> ! <xsl:value-of select="ancestor::tabbed-form/@highcolor"/> ! </xsl:variable> ! <xsl:variable name="lowcolor"> ! <xsl:value-of select="ancestor::tabbed-form/@lowcolor"/> ! </xsl:variable> ! <xsl:variable name="href"> ! <xsl:value-of select="ancestor::tabbed-form/@href"/> ! </xsl:variable> ! <xsl:choose> ! <xsl:when test="$showpage and $showpage=@name"> ! <td class="tab" bgcolor="{$highcolor}"> ! <b> ! <xsl:value-of select="@label"/> ! </b> ! </td> ! </xsl:when> ! <xsl:otherwise> ! <td class="tab" bgcolor="{$lowcolor}"> ! <a class="page" href="{$href}?page={@name}"> ! <b style="font-color: white"> ! <xsl:value-of select="@label"/> ! </b> ! </a> ! </td> ! </xsl:otherwise> ! </xsl:choose> ! </xsl:template> ! <xsl:template match="page"> ! <xsl:apply-templates/> ! </xsl:template> ! <xsl:template match="definitionlist"> ! <table border="0" width="90%" align="center" cellpadding="5" cellspacing="5"> ! <xsl:apply-templates/> ! </table> ! </xsl:template> ! <xsl:template match="definition"> ! <tr> ! <xsl:apply-templates/> ! </tr> ! </xsl:template> ! <xsl:template match="term"> ! <td valign="top" width="10%"> ! <xsl:apply-templates/> ! </td> ! </xsl:template> ! ! <xsl:template match="def"> ! <td width="90%"> ! <xsl:apply-templates/> ! </td> ! </xsl:template> + <xsl:template match="rss"> + <div id="news"> + <div class="block"> + <h3>News</h3> + <xsl:apply-templates select="channel/item[position()<7]"/> + </div> + </div> + </xsl:template> + + <xsl:template match="item"> + <div class="headline"> + <div class="date"> + <xsl:value-of select="substring(dc:date, 1, 10)"/> + </div> + + <a href="{link/text()}"><xsl:value-of select="title"/></a> + </div> + </xsl:template> + + <xsl:include href="xmlsource.xsl"/> + </xsl:stylesheet> |