[Ejtools-cvs] CVS: website/stylesheets layout.xsl,1.1,1.2
Brought to you by:
letiemble
From: Laurent E. <let...@us...> - 2002-05-21 20:13:31
|
Update of /cvsroot/ejtools/website/stylesheets In directory usw-pr-cvs1:/tmp/cvs-serv30491/stylesheets Modified Files: layout.xsl Log Message: Reformat stylesheets Index: layout.xsl =================================================================== RCS file: /cvsroot/ejtools/website/stylesheets/layout.xsl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** layout.xsl 18 Apr 2002 21:02:09 -0000 1.1 --- layout.xsl 21 May 2002 20:13:29 -0000 1.2 *************** *** 1,14 **** <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> ! <!-- This stylesheet gets an xml conformant html page which has the additional <section> tag in the head --> ! <xsl:output method="html" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" indent="yes" doctype-system="http://www.w3.org/TR/html4/loose.dtd"/> ! <xsl:template match="html"> ! <html> ! <head> ! <!-- copy the head to get title and meta data --> ! <xsl:copy-of select="head/node()"/> <!-- change styles --> <style type="text/css"> ! <xsl:comment> p,ul,dl,ol,td,dd { color: rgb(90,90,90); font-family:Arial,Helvetica,sans-serif; font-size: 10pt; } pre,tt { color: rgb(90,90,90); font-family:Courier, monospace; font-size: 10pt; } --- 1,14 ---- <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> ! <!-- This stylesheet gets an xml conformant html page which has the additional <section> tag in the head --> ! <xsl:output method="html" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" indent="yes" doctype-system="http://www.w3.org/TR/html4/loose.dtd"/> ! <xsl:template match="html"> ! <html> ! <head> ! <!-- copy the head to get title and meta data --> ! <xsl:copy-of select="head/node()"/> <!-- change styles --> <style type="text/css"> ! <xsl:comment> p,ul,dl,ol,td,dd { color: rgb(90,90,90); font-family:Arial,Helvetica,sans-serif; font-size: 10pt; } pre,tt { color: rgb(90,90,90); font-family:Courier, monospace; font-size: 10pt; } *************** *** 27,34 **** <!-- preload all needed xweb images --> <script language="JavaScript" type="text/javascript"> ! <xsl:comment>Begin <!-- the section buttons --> <xsl:for-each select="//img[contains(@xwebtype,'activeSection')]"> ! <xsl:value-of select="@name"/> = new Image( <xsl:value-of select="@width"/>, <xsl:value-of select="@height"/>); <xsl:value-of select="@name"/>.src = "<xsl:value-of select="@src"/>"; --- 27,34 ---- <!-- preload all needed xweb images --> <script language="JavaScript" type="text/javascript"> ! <xsl:comment>Begin <!-- the section buttons --> <xsl:for-each select="//img[contains(@xwebtype,'activeSection')]"> ! <xsl:value-of select="@name"/> = new Image( <xsl:value-of select="@width"/>, <xsl:value-of select="@height"/>); <xsl:value-of select="@name"/>.src = "<xsl:value-of select="@src"/>"; *************** *** 37,111 **** <xsl:for-each select="//section[@active='true']"> <xsl:for-each select=".//img[@xwebtype='active']"> ! <xsl:value-of select="@name"/> = new Image( <xsl:value-of select="@width"/>, <xsl:value-of select="@height"/>); <xsl:value-of select="@name"/>.src = "<xsl:value-of select="@src"/>"; </xsl:for-each> ! </xsl:for-each> End</xsl:comment> </script> </head> <body bgcolor="#FFFFFF"> ! <!-- the header --> ! <center> ! <table border="0" cellspacing="0" cellpadding="0" width="100%"> ! <tr> ! <td align="left"> ! <img src="{//file[@id='logo']/@src}" border="0" alt="logo"/> ! </td> ! <td align="center"> ! <xsl:for-each select="//section[@active='true']"> ! <xsl:for-each select="img[@xwebtype='banner']"> ! <img src="{@src}" name="{@name}" border="0" alt="section banner" width="{@width}" height="{@height}"/> ! </xsl:for-each> ! </xsl:for-each> ! </td> ! <td align="right"><a href="http://sourceforge.net"><img src="http://sourceforge.net/sflogo.php?group_id=49088&type=4" border="0" alt="SourceForge Logo"/></a></td> ! </tr> ! </table> ! </center> ! <!-- the spacer and body --> ! <table border="0" width="100%" cellspacing="0" cellpadding="0"> ! <tr height="5"> ! <td></td> ! <td></td> ! <td></td> ! <td></td> ! <td></td> ! </tr> ! <tr bgcolor="#5A5A5A" height="5"> ! <td></td> ! <td></td> ! <td></td> ! <td></td> ! <td></td> ! </tr> ! <tr height="5"> ! <td></td> ! <td></td> ! <td></td> ! <td></td> ! <td></td> ! </tr> ! <tr> ! <td valign="top"><img src="{//file[@id='spacer']/@src}" alt="" width="5" height="5"/></td> ! <td valign="top"> ! <table cellspacing="0" cellpadding="0" border="0"> ! <!-- Blank line before navigation --> ! <tr> ! <td><img src="{//file[@id='spacer']/@src}" alt="" width="5" height="15"/></td> ! </tr> ! <xsl:apply-templates mode="nav" select="section"/> ! </table> ! </td> ! <td valign="top"><img src="{//file[@id='spacer']/@src}" alt="" width="10" height="5"/></td> ! <td valign="top"> ! <br/> ! <xsl:copy-of select="body/node()"/> ! </td> ! <td valign="top"> ! <img src="{//file[@id='spacer']/@src}" alt="" width="5" height="5"/> ! </td> ! </tr> ! </table> </body> </html> --- 37,121 ---- <xsl:for-each select="//section[@active='true']"> <xsl:for-each select=".//img[@xwebtype='active']"> ! <xsl:value-of select="@name"/> = new Image( <xsl:value-of select="@width"/>, <xsl:value-of select="@height"/>); <xsl:value-of select="@name"/>.src = "<xsl:value-of select="@src"/>"; </xsl:for-each> ! </xsl:for-each> End</xsl:comment> </script> </head> <body bgcolor="#FFFFFF"> ! <!-- the header --> ! <center> ! <table border="0" cellspacing="0" cellpadding="0" width="100%"> ! <tr> ! <td align="left"> ! <img src="{//file[@id='logo']/@src}" border="0" alt="logo"/> ! </td> ! <td align="center"> ! <xsl:for-each select="//section[@active='true']"> ! <xsl:for-each select="img[@xwebtype='banner']"> ! <img src="{@src}" name="{@name}" border="0" alt="section banner" width="{@width}" height="{@height}"/> ! </xsl:for-each> ! </xsl:for-each> ! </td> ! <td align="right"> ! <a href="http://sourceforge.net"> ! <img src="http://sourceforge.net/sflogo.php?group_id=49088&type=4" border="0" alt="SourceForge Logo"/> ! </a> ! </td> ! </tr> ! </table> ! </center> ! <!-- the spacer and body --> ! <table border="0" width="100%" cellspacing="0" cellpadding="0"> ! <tr height="5"> ! <td/> ! <td/> ! <td/> ! <td/> ! <td/> ! </tr> ! <tr bgcolor="#5A5A5A" height="5"> ! <td/> ! <td/> ! <td/> ! <td/> ! <td/> ! </tr> ! <tr height="5"> ! <td/> ! <td/> ! <td/> ! <td/> ! <td/> ! </tr> ! <tr> ! <td valign="top"> ! <img src="{//file[@id='spacer']/@src}" alt="" width="5" height="5"/> ! </td> ! <td valign="top"> ! <table cellspacing="0" cellpadding="0" border="0"> ! <!-- Blank line before navigation --> ! <tr> ! <td> ! <img src="{//file[@id='spacer']/@src}" alt="" width="5" height="15"/> ! </td> ! </tr> ! <xsl:apply-templates mode="nav" select="section"/> ! </table> ! </td> ! <td valign="top"> ! <img src="{//file[@id='spacer']/@src}" alt="" width="10" height="5"/> ! </td> ! <td valign="top" width="90%"> ! <br/> ! <xsl:copy-of select="body/node()"/> ! </td> ! <td valign="top"> ! <img src="{//file[@id='spacer']/@src}" alt="" width="5" height="5"/> ! </td> ! </tr> ! </table> </body> </html> *************** *** 138,143 **** <xsl:apply-templates mode="nav" select="entry"/> </xsl:if> ! </xsl:template> ! <xsl:template match="entry" mode="nav"> <!-- we ignore the first entry (it is addressed by the section button) --> <xsl:if test="position() != 1"> --- 148,153 ---- <xsl:apply-templates mode="nav" select="entry"/> </xsl:if> ! </xsl:template> ! <xsl:template match="entry" mode="nav"> <!-- we ignore the first entry (it is addressed by the section button) --> <xsl:if test="position() != 1"> |