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/07/14 14:22:13 UTC

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

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>
   
   



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