svn commit: r676567 - /lenya/docu/modules/forrest/xslt/forrestDocument202xhtmlInclude.xsl

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Mon Jul 14 05:22:12 2008
New Revision: 676567

URL: http://svn.apache.org/viewvc?rev=676567&view=rev
Log:
Embed included markup in <div>.

Modified:
    lenya/docu/modules/forrest/xslt/forrestDocument202xhtmlInclude.xsl

Modified: lenya/docu/modules/forrest/xslt/forrestDocument202xhtmlInclude.xsl
URL: http://svn.apache.org/viewvc/lenya/docu/modules/forrest/xslt/forrestDocument202xhtmlInclude.xsl?rev=676567&r1=676566&r2=676567&view=diff
==============================================================================
--- lenya/docu/modules/forrest/xslt/forrestDocument202xhtmlInclude.xsl (original)
+++ lenya/docu/modules/forrest/xslt/forrestDocument202xhtmlInclude.xsl Mon Jul 14 05:22:12 2008
@@ -27,16 +27,18 @@
   <xsl:preserve-space elements="source"/>
   
   <xsl:template match="/">
-    <xsl:choose>
-      <xsl:when test="document/body/row">
-        <table width="100%">
+    <div class="include">
+      <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/*"/>
-        </table>
-      </xsl:when>
-      <xsl:otherwise>
-        <xsl:apply-templates select="document/body/*"/>
-      </xsl:otherwise>
-    </xsl:choose>
+        </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.