svn commit: r627578 - /lenya/sandbox/modules/forrest/xslt/forrestDocument202xhtml.xsl

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Wed Feb 13 12:14:14 2008
New Revision: 627578

URL: http://svn.apache.org/viewvc?rev=627578&view=rev
Log:
Forrest resource type: return only body div for xhtml format.

Modified:
    lenya/sandbox/modules/forrest/xslt/forrestDocument202xhtml.xsl

Modified: lenya/sandbox/modules/forrest/xslt/forrestDocument202xhtml.xsl
URL: http://svn.apache.org/viewvc/lenya/sandbox/modules/forrest/xslt/forrestDocument202xhtml.xsl?rev=627578&r1=627577&r2=627578&view=diff
==============================================================================
--- lenya/sandbox/modules/forrest/xslt/forrestDocument202xhtml.xsl (original)
+++ lenya/sandbox/modules/forrest/xslt/forrestDocument202xhtml.xsl Wed Feb 13 12:14:14 2008
@@ -27,29 +27,20 @@
   <xsl:preserve-space elements="source"/>
   
   <xsl:template match="/">
-    <html>
-      <head>
-        <title>Apache Forrest</title><link rel="SHORTCUT ICON" href="favicon.ico"/>
-        <xsl:apply-templates select="document/header/style"/>
-        <xsl:apply-templates select="document/header/script"/>
-      </head>
-      <body>
-        <div id="body">
-          <h1><xsl:value-of select="document/header/title"/></h1>
-          <xsl:apply-templates select="document/body" mode="toc"/>
-          <xsl:choose>
-            <xsl:when test="document/body/row">
-              <table width="100%">
-                <xsl:apply-templates select="document/body/*"/>
-              </table>
-            </xsl:when>
-            <xsl:otherwise>
-              <xsl:apply-templates select="document/body/*"/>
-            </xsl:otherwise>
-          </xsl:choose>
-        </div>
-      </body>
-    </html>
+    <div id="body">
+      <h1><xsl:value-of select="document/header/title"/></h1>
+      <xsl:apply-templates select="document/body" mode="toc"/>
+      <xsl:choose>
+        <xsl:when test="document/body/row">
+          <table width="100%">
+            <xsl:apply-templates select="document/body/*"/>
+          </table>
+        </xsl:when>
+        <xsl:otherwise>
+          <xsl:apply-templates select="document/body/*"/>
+        </xsl:otherwise>
+      </xsl:choose>
+    </div>
   </xsl:template>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.