vgritsenko 01/07/22 11:30:58
Modified: webapp/stylesheets/documents Tag: cocoon_20_branch
root2html.xsl
Log:
Fix error with <br/> and change style a little bit
Revision Changes Path
No revision
No revision
1.1.2.6 +26 -21 xml-cocoon2/webapp/stylesheets/documents/root2html.xsl
Index: root2html.xsl
===================================================================
RCS file: /home/cvs/xml-cocoon2/webapp/stylesheets/documents/root2html.xsl,v
retrieving revision 1.1.2.5
retrieving revision 1.1.2.6
diff -u -r1.1.2.5 -r1.1.2.6
--- root2html.xsl 2001/07/20 10:54:22 1.1.2.5
+++ root2html.xsl 2001/07/22 18:30:58 1.1.2.6
@@ -13,11 +13,12 @@
<title><xsl:value-of select="document/header/title"/></title>
</head>
<body>
- <table>
+ <table cellpadding="0" cellspacing="3">
<tr>
<td valign="top">
<xsl:apply-templates select="sidebar"/>
</td>
+ <td width="10"> </td>
<td valign="top">
<xsl:apply-templates select="document/body"/>
</td>
@@ -28,8 +29,12 @@
</xsl:template>
<xsl:template match="/root/sidebar">
- <table valign="top">
- <xsl:apply-templates/>
+ <table cellpadding="1" cellspacing="2" bgcolor="#000000">
+ <tr bgcolor="#0086b2"><td>
+ <table cellpadding="1" cellspacing="0">
+ <xsl:apply-templates/>
+ </table>
+ </td></tr>
</table>
</xsl:template>
@@ -38,12 +43,12 @@
<td>
<xsl:choose>
<xsl:when test="@href=$path">
- <xsl:value-of select="@label"/>
+ <font color="#FFFFFF"><xsl:value-of select="@label"/></font>
</xsl:when>
<xsl:otherwise>
<a>
<xsl:copy-of select="@href"/>
- <xsl:value-of select="@label"/>
+ <font color="#FFFFFF"><xsl:value-of select="@label"/></font>
</a>
</xsl:otherwise>
</xsl:choose>
@@ -52,7 +57,7 @@
</xsl:template>
<xsl:template match="sidebar/separator">
- <br/>
+ <tr><td height="10"></td></tr>
</xsl:template>
<xsl:template match="/root/document/body">
@@ -77,9 +82,9 @@
</xsl:template>
<xsl:template match="source">
- <listing style="color: green; font-size: 80%;">
- <xsl:apply-templates />
- </listing>
+ <listing style="color: green; font-size: 80%;">
+ <xsl:apply-templates />
+ </listing>
</xsl:template>
<xsl:template match="body//node()|body//@*" priority="-1">
@@ -89,33 +94,33 @@
</xsl:template>
<xsl:template match="body//figure">
- <xsl:element name="img">
- <xsl:for-each select="@*">
- <xsl:attribute name="{name(.)}">
- <xsl:value-of select="."/>
- </xsl:attribute>
- </xsl:for-each>
- </xsl:element>
+ <xsl:element name="img">
+ <xsl:for-each select="@*">
+ <xsl:attribute name="{name(.)}">
+ <xsl:value-of select="."/>
+ </xsl:attribute>
+ </xsl:for-each>
+ </xsl:element>
</xsl:template>
<xsl:template match="link">
- <a href="{@href}"><xsl:apply-templates/></a>
+ <a href="{@href}"><xsl:apply-templates/></a>
</xsl:template>
<xsl:template match="connect">
- <xsl:apply-templates/>
+ <xsl:apply-templates/>
</xsl:template>
<xsl:template match="jump">
- <a href="{@href}#{@anchor}"><xsl:apply-templates/></a>
+ <a href="{@href}#{@anchor}"><xsl:apply-templates/></a>
</xsl:template>
<xsl:template match="fork">
- <a href="{@href}" target="_blank"><xsl:apply-templates/></a>
+ <a href="{@href}" target="_blank"><xsl:apply-templates/></a>
</xsl:template>
<xsl:template match="anchor">
- <a name="{@id}"><xsl:comment>anchor</xsl:comment></a>
+ <a name="{@id}"><xsl:comment>anchor</xsl:comment></a>
</xsl:template>
</xsl:stylesheet>
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]