[Ejtools-cvs] CVS: website/stylesheets tree2xhtml.xsl,NONE,1.1 layout.xsl,1.2,1.3
Brought to you by:
letiemble
From: Laurent E. <let...@us...> - 2002-05-24 21:21:41
|
Update of /cvsroot/ejtools/website/stylesheets In directory usw-pr-cvs1:/tmp/cvs-serv32080/stylesheets Modified Files: layout.xsl Added Files: tree2xhtml.xsl Log Message: Add support for custom tree structure in html page --- NEW FILE: tree2xhtml.xsl --- (This appears to be a binary file; contents omitted.) Index: layout.xsl =================================================================== RCS file: /cvsroot/ejtools/website/stylesheets/layout.xsl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** layout.xsl 21 May 2002 20:13:29 -0000 1.2 --- layout.xsl 24 May 2002 21:21:39 -0000 1.3 *************** *** 10,44 **** <!-- 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; } ! h1 { color: rgb(90,90,90); font-family:Arial,Helvetica,sans-serif; font-size: 16pt; } ! h2 { color: rgb(90,90,90); font-family:Arial,Helvetica,sans-serif; font-size: 14pt; } ! h3 { color: rgb(90,90,90); font-family:Arial,Helvetica,sans-serif; font-size: 12pt; } ! h4 { color: rgb(90,90,90); font-family:Arial,Helvetica,sans-serif; font-size: 11pt; } ! dt { color: rgb(90,90,90); font-family:Arial,Helvetica,sans-serif; font-size: 11pt; font-weight: bold; } ! a:link { color: rgb(0,0,144); background-color: rgb(255,255,255); text-decoration: none; font-weight: bold; } ! a:visited { color: rgb(0,0,144); background-color: rgb(255,255,255); text-decoration: none; font-weight: bold; } ! a:active { color: rgb(0,0,144); background-color: rgb(255,255,255); text-decoration: underline; font-weight: bold; } ! a:hover { color: rgb(0,0,144); background-color: rgb(255,255,255); text-decoration: underline; font-weight: bold; } ! td img { line-height:0; vertical-align:bottom; } ! </xsl:comment> </style> ! <!-- 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"/>"; ! </xsl:for-each> <!-- the page buttons for the currently active section --> <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> --- 10,43 ---- <!-- change styles --> <style type="text/css"> ! <xsl:comment>Begin ! <!-- Style --> ! 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; } ! h1 { color: rgb(90,90,90); font-family:Arial,Helvetica,sans-serif; font-size: 16pt; } ! h2 { color: rgb(90,90,90); font-family:Arial,Helvetica,sans-serif; font-size: 14pt; } ! h3 { color: rgb(90,90,90); font-family:Arial,Helvetica,sans-serif; font-size: 12pt; } ! h4 { color: rgb(90,90,90); font-family:Arial,Helvetica,sans-serif; font-size: 11pt; } ! dt { color: rgb(90,90,90); font-family:Arial,Helvetica,sans-serif; font-size: 11pt; font-weight: bold; } ! a:link { color: rgb(0,0,144); background-color: rgb(255,255,255); text-decoration: none; font-weight: bold; } ! a:visited { color: rgb(0,0,144); background-color: rgb(255,255,255); text-decoration: none; font-weight: bold; } ! a:active { color: rgb(0,0,144); background-color: rgb(255,255,255); text-decoration: underline; font-weight: bold; } ! a:hover { color: rgb(0,0,144); background-color: rgb(255,255,255); text-decoration: underline; font-weight: bold; } ! td img { line-height:0; vertical-align:bottom; } ! End</xsl:comment> </style> ! <!-- Preload all needed xweb images --> <script language="JavaScript" type="text/javascript"> <xsl:comment>Begin ! <!-- 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"/>"; ! </xsl:for-each> <!-- the page buttons for the currently active section --> <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> *************** *** 46,50 **** </head> <body bgcolor="#FFFFFF"> ! <!-- the header --> <center> <table border="0" cellspacing="0" cellpadding="0" width="100%"> --- 45,49 ---- </head> <body bgcolor="#FFFFFF"> ! <!-- Header part --> <center> <table border="0" cellspacing="0" cellpadding="0" width="100%"> *************** *** 68,72 **** </table> </center> ! <!-- the spacer and body --> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr height="5"> --- 67,71 ---- </table> </center> ! <!-- Spacer and Body --> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr height="5"> *************** *** 129,133 **** <xsl:when test="@active='true' "> <xsl:for-each select="img[@xwebtype='activeSection']"> ! <!-- should select exactly one --> <img src="{@src}" name="{@name}" border="0" alt="{concat(@alt, ' (active section)')}" width="{@width}" height="{@height}"/> </xsl:for-each> --- 128,132 ---- <xsl:when test="@active='true' "> <xsl:for-each select="img[@xwebtype='activeSection']"> ! <!-- Should select exactly one --> <img src="{@src}" name="{@name}" border="0" alt="{concat(@alt, ' (active section)')}" width="{@width}" height="{@height}"/> </xsl:for-each> *************** *** 137,141 **** <xsl:attribute name="onMouseOut"><xsl:text>document.</xsl:text><xsl:value-of select="img[@xwebtype='normalSection']/@name"/><xsl:text>.src='</xsl:text><xsl:value-of select="img[@xwebtype='normalSection']/@src"/><xsl:text>';</xsl:text></xsl:attribute> <xsl:for-each select="img[@xwebtype='normalSection']"> ! <!-- should select exactly one --> <img src="{@src}" name="{@name}" border="0" alt="{concat(@alt, ' (section)')}" width="{@width}" height="{@height}"/> </xsl:for-each> --- 136,140 ---- <xsl:attribute name="onMouseOut"><xsl:text>document.</xsl:text><xsl:value-of select="img[@xwebtype='normalSection']/@name"/><xsl:text>.src='</xsl:text><xsl:value-of select="img[@xwebtype='normalSection']/@src"/><xsl:text>';</xsl:text></xsl:attribute> <xsl:for-each select="img[@xwebtype='normalSection']"> ! <!-- Should select exactly one --> <img src="{@src}" name="{@name}" border="0" alt="{concat(@alt, ' (section)')}" width="{@width}" height="{@height}"/> </xsl:for-each> *************** *** 150,154 **** </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"> <tr> --- 149,153 ---- </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"> <tr> *************** *** 159,163 **** <xsl:when test="@active"> <xsl:for-each select="img[@xwebtype='active']"> ! <!-- should select exactly one --> <img src="{@src}" name="{@name}" border="0" alt="{concat(@alt, ' (active)')}" width="{@width}" height="{@height}"/> </xsl:for-each> --- 158,162 ---- <xsl:when test="@active"> <xsl:for-each select="img[@xwebtype='active']"> ! <!-- Should select exactly one --> <img src="{@src}" name="{@name}" border="0" alt="{concat(@alt, ' (active)')}" width="{@width}" height="{@height}"/> </xsl:for-each> |