forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r555841 - in /forrest/trunk/main/webapp/skins: common/xslt/html/site-to-xhtml.xsl pelt/xslt/html/document-to-html.xsl
Date Fri, 13 Jul 2007 02:37:09 GMT
Author: crossley
Date: Thu Jul 12 19:37:08 2007
New Revision: 555841

URL: http://svn.apache.org/viewvc?view=rev&rev=555841
Log:
Utilise the source document/header/link if available.
Suggested by Oshani Seneviratne and various previous people.
See http://marc.info/?l=forrest-dev&m=118370666416883 Re: How do you add a link tag?

Modified:
    forrest/trunk/main/webapp/skins/common/xslt/html/site-to-xhtml.xsl
    forrest/trunk/main/webapp/skins/pelt/xslt/html/document-to-html.xsl

Modified: forrest/trunk/main/webapp/skins/common/xslt/html/site-to-xhtml.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/main/webapp/skins/common/xslt/html/site-to-xhtml.xsl?view=diff&rev=555841&r1=555840&r2=555841
==============================================================================
--- forrest/trunk/main/webapp/skins/common/xslt/html/site-to-xhtml.xsl (original)
+++ forrest/trunk/main/webapp/skins/common/xslt/html/site-to-xhtml.xsl Thu Jul 12 19:37:08
2007
@@ -330,6 +330,13 @@
         </xsl:if>
       </xsl:element>
     </xsl:for-each>
+    <xsl:for-each select="//meta-data/a">
+<!-- FIXME: the document/header/link elements were earlier transformed to "a"
+along with all other "link" elements. -->
+      <xsl:element name="link">
+        <xsl:apply-templates select="@*"/>
+      </xsl:element>
+    </xsl:for-each>
   </xsl:template>
   <xsl:template name="feedback">
     <div id="feedback">

Modified: forrest/trunk/main/webapp/skins/pelt/xslt/html/document-to-html.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/main/webapp/skins/pelt/xslt/html/document-to-html.xsl?view=diff&rev=555841&r1=555840&r2=555841
==============================================================================
--- forrest/trunk/main/webapp/skins/pelt/xslt/html/document-to-html.xsl (original)
+++ forrest/trunk/main/webapp/skins/pelt/xslt/html/document-to-html.xsl Thu Jul 12 19:37:08
2007
@@ -24,6 +24,7 @@
   <xsl:template match="document">
     <meta-data>
       <xsl:apply-templates select="header/meta"/>
+      <xsl:apply-templates select="header/link"/>
     </meta-data>
     <div id="content">
       <div id="skinconf-printlink"/>



Mime
View raw message