You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ro...@apache.org on 2004/08/10 20:38:49 UTC
cvs commit: cocoon-lenya/src/webapp/lenya/pubs/default/xslt xhtml2xhtml.xsl page2xhtml.xsl
roku 2004/08/10 11:38:49
Modified: src/webapp/lenya/pubs/default/xslt xhtml2xhtml.xsl
page2xhtml.xsl
Log:
Hand down lenya:meta to page2xhtml.
page2xhtml uses dc:title to set title element in html head.
Hope this is ok.
Revision Changes Path
1.10 +3 -2 cocoon-lenya/src/webapp/lenya/pubs/default/xslt/xhtml2xhtml.xsl
Index: xhtml2xhtml.xsl
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/pubs/default/xslt/xhtml2xhtml.xsl,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- xhtml2xhtml.xsl 21 Mar 2004 15:57:32 -0000 1.9
+++ xhtml2xhtml.xsl 10 Aug 2004 18:38:49 -0000 1.10
@@ -23,13 +23,14 @@
xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:dc="http://purl.org/dc/elements/1.1/"
- exclude-result-prefixes="xhtml lenya dc"
+ exclude-result-prefixes="xhtml lenya"
>
<xsl:param name="rendertype" select=""/>
<xsl:param name="nodeid"/>
<xsl:template match="/xhtml:html">
+ <xsl:copy-of select="lenya:meta"/>
<div id="body">
<xsl:if test="$rendertype = 'edit'">
<xsl:attribute name="bxe_xpath">/xhtml:html/xhtml:body</xsl:attribute>
1.17 +4 -1 cocoon-lenya/src/webapp/lenya/pubs/default/xslt/page2xhtml.xsl
Index: page2xhtml.xsl
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/pubs/default/xslt/page2xhtml.xsl,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- page2xhtml.xsl 13 Mar 2004 12:42:16 -0000 1.16
+++ page2xhtml.xsl 10 Aug 2004 18:38:49 -0000 1.17
@@ -22,6 +22,8 @@
xmlns="http://www.w3.org/1999/xhtml"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0"
+ xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
exclude-result-prefixes="page xhtml"
>
@@ -40,6 +42,7 @@
<html>
<head>
<link rel="stylesheet" href="{$root}/css/page.css" type="text/css"/>
+ <title><xsl:value-of select="//lenya:meta/dc:title"/></title>
</head>
<body>
<div id="page">
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org