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/13 21:14:15 UTC
svn commit: r627578 -
/lenya/sandbox/modules/forrest/xslt/forrestDocument202xhtml.xsl
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>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org