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 2008/02/12 22:55:28 UTC

svn commit: r627137 - /lenya/sandbox/modules/docustyle/xslt/page2xhtml.xsl

Author: andreas
Date: Tue Feb 12 13:55:14 2008
New Revision: 627137

URL: http://svn.apache.org/viewvc?rev=627137&view=rev
Log:
Use meta data transformer for HTML title.

Modified:
    lenya/sandbox/modules/docustyle/xslt/page2xhtml.xsl

Modified: lenya/sandbox/modules/docustyle/xslt/page2xhtml.xsl
URL: http://svn.apache.org/viewvc/lenya/sandbox/modules/docustyle/xslt/page2xhtml.xsl?rev=627137&r1=627136&r2=627137&view=diff
==============================================================================
--- lenya/sandbox/modules/docustyle/xslt/page2xhtml.xsl (original)
+++ lenya/sandbox/modules/docustyle/xslt/page2xhtml.xsl Tue Feb 12 13:55:14 2008
@@ -26,6 +26,7 @@
   xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0" 
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
+  xmlns:meta="http://apache.org/lenya/meta/1.0/"
   exclude-result-prefixes="page xhtml dc lenya"
   >
   
@@ -41,6 +42,7 @@
   <!-- The request url i.e. /lenya/doctypes/xhtml-document_en.html -->
   <xsl:param name="url"/>
   <xsl:param name="language"/>
+  <xsl:param name="uuid"/>
   
   <xsl:param name="lastPublishedUser"/>
   <xsl:param name="lastPublishedDate"/>
@@ -70,8 +72,8 @@
         </xsl:choose>
         <meta content="Apache Lenya" name="generator"/>
         
-        <!-- The title will be overwritten by addXhtmlTitle.xsl if the document exists. -->
-        <title><i18n:text>error-404</i18n:text></title>
+        <title><meta:value element="title" ns="http://purl.org/dc/elements/1.1/" default="error-404"
+          i18n:attr="default" uuid="{$uuid}" lang="{$language}"/></title>
         
         <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8"/>
         <script language="javascript">



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org