You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2005/03/23 15:17:48 UTC
svn commit: r158773 - lenya/trunk/src/webapp/lenya/xslt/util/page2xhtml.xsl
Author: andreas
Date: Wed Mar 23 06:17:47 2005
New Revision: 158773
URL: http://svn.apache.org/viewcvs?view=rev&rev=158773
Log:
page2xhtml: show header only if <page:title> is present
Modified:
lenya/trunk/src/webapp/lenya/xslt/util/page2xhtml.xsl
Modified: lenya/trunk/src/webapp/lenya/xslt/util/page2xhtml.xsl
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/xslt/util/page2xhtml.xsl?view=diff&r1=158772&r2=158773
==============================================================================
--- lenya/trunk/src/webapp/lenya/xslt/util/page2xhtml.xsl (original)
+++ lenya/trunk/src/webapp/lenya/xslt/util/page2xhtml.xsl Wed Mar 23 06:17:47 2005
@@ -40,19 +40,7 @@
</head>
<body>
- <table width="100%" border="0" cellpadding="10" cellspacing="0">
- <tr>
- <td class="lenya-header">
- <h1><xsl:value-of select="page:title"/></h1>
- </td>
- <td class="lenya-project-logo">
- <img src="{$contextprefix}/lenya/images/project-logo-small.png" alt="Apache Lenya Project Logo"/>
- </td>
- </tr>
- </table>
- <div class="lenya-page-subtitle">
- Open Source Content Management System
- </div>
+ <xsl:apply-templates select="page:title"/>
<table class="lenya-body" border="0" cellpadding="0" cellspacing="0">
<tr>
<xsl:if test="//xhtml:div[@class = 'lenya-sidebar']">
@@ -67,6 +55,23 @@
</table>
</body>
</html>
+</xsl:template>
+
+
+<xsl:template match="page:title">
+ <table width="100%" border="0" cellpadding="10" cellspacing="0">
+ <tr>
+ <td class="lenya-header">
+ <h1><xsl:value-of select="."/></h1>
+ </td>
+ <td class="lenya-project-logo">
+ <img src="{$contextprefix}/lenya/images/project-logo-small.png" alt="Apache Lenya Project Logo"/>
+ </td>
+ </tr>
+ </table>
+ <div class="lenya-page-subtitle">
+ Open Source Content Management System
+ </div>
</xsl:template>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org