You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by gr...@apache.org on 2004/12/13 00:16:21 UTC
svn commit: r111671 - in lenya/trunk/src/webapp/lenya/pubs/default: resources/shared/css xslt
Author: gregor
Date: Sun Dec 12 15:16:20 2004
New Revision: 111671
URL: http://svn.apache.org/viewcvs?view=rev&rev=111671
Log:
Added patch by Marc Kuester to enable per-doctype CSS. This resolves http://issues.apache.org/bugzilla/show_bug.cgi?id=29325
Added:
lenya/trunk/src/webapp/lenya/pubs/default/resources/shared/css/homepage.css (contents, props changed)
lenya/trunk/src/webapp/lenya/pubs/default/resources/shared/css/links.css (contents, props changed)
lenya/trunk/src/webapp/lenya/pubs/default/resources/shared/css/xhtml.css (contents, props changed)
Modified:
lenya/trunk/src/webapp/lenya/pubs/default/xslt/page2xhtml.xsl
Added: lenya/trunk/src/webapp/lenya/pubs/default/resources/shared/css/homepage.css
Url: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/pubs/default/resources/shared/css/homepage.css?view=auto&rev=111671
==============================================================================
--- (empty file)
+++ lenya/trunk/src/webapp/lenya/pubs/default/resources/shared/css/homepage.css Sun Dec 12 15:16:20 2004
@@ -0,0 +1 @@
+/* Put your doctype-specific CSS here */
Added: lenya/trunk/src/webapp/lenya/pubs/default/resources/shared/css/links.css
Url: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/pubs/default/resources/shared/css/links.css?view=auto&rev=111671
==============================================================================
--- (empty file)
+++ lenya/trunk/src/webapp/lenya/pubs/default/resources/shared/css/links.css Sun Dec 12 15:16:20 2004
@@ -0,0 +1 @@
+/* Put your doctype-specific CSS here */
\ No newline at end of file
Added: lenya/trunk/src/webapp/lenya/pubs/default/resources/shared/css/xhtml.css
Url: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/pubs/default/resources/shared/css/xhtml.css?view=auto&rev=111671
==============================================================================
--- (empty file)
+++ lenya/trunk/src/webapp/lenya/pubs/default/resources/shared/css/xhtml.css Sun Dec 12 15:16:20 2004
@@ -0,0 +1 @@
+/* Put your doctype-specific CSS here */
\ No newline at end of file
Modified: lenya/trunk/src/webapp/lenya/pubs/default/xslt/page2xhtml.xsl
Url: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/pubs/default/xslt/page2xhtml.xsl?view=diff&rev=111671&p1=lenya/trunk/src/webapp/lenya/pubs/default/xslt/page2xhtml.xsl&r1=111670&p2=lenya/trunk/src/webapp/lenya/pubs/default/xslt/page2xhtml.xsl&r2=111671
==============================================================================
--- lenya/trunk/src/webapp/lenya/pubs/default/xslt/page2xhtml.xsl (original)
+++ lenya/trunk/src/webapp/lenya/pubs/default/xslt/page2xhtml.xsl Sun Dec 12 15:16:20 2004
@@ -37,11 +37,21 @@
<!-- The rquest url i.e. /lenya/doctypes/xhtml-document_en.html -->
<xsl:param name="url"/>
+<xsl:param name="document-type"/>
<xsl:template match="cmsbody">
<html>
<head>
<link rel="stylesheet" href="{$root}/css/page.css" type="text/css"/>
+ <!-- Load doctype-specific CSS -->
+ <xsl:choose>
+ <xsl:when test="$document-type">
+ <link rel="stylesheet" href="{$root}/css/{$document-type}.css" type="text/css"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <!-- do nothing -->
+ </xsl:otherwise>
+ </xsl:choose>
<meta content="Apache Lenya" name="generator"/>
<title><xsl:value-of select="//lenya:meta/dc:title"/></title>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8"/>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org