svn commit: r676565 - /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:16:26 2008
New Revision: 676565

URL: http://svn.apache.org/viewvc?rev=676565&view=rev
Log:
Adding stylesheet for xhtmlInclude format.

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

Added: lenya/docu/modules/forrest/xslt/forrestDocument202xhtmlInclude.xsl
URL: http://svn.apache.org/viewvc/lenya/docu/modules/forrest/xslt/forrestDocument202xhtmlInclude.xsl?rev=676565&view=auto
==============================================================================
--- lenya/docu/modules/forrest/xslt/forrestDocument202xhtmlInclude.xsl (added)
+++ lenya/docu/modules/forrest/xslt/forrestDocument202xhtmlInclude.xsl Mon Jul 14 05:16:26 2008
@@ -0,0 +1,43 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+  
+  http://www.apache.org/licenses/LICENSE-2.0
+  
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!--+
+  | Convert samples file to the HTML page. Uses styles/main.css stylesheet.
+  +-->
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:xlink="http://www.w3.org/1999/xlink"
+  xmlns="http://www.w3.org/1999/xhtml">
+  
+  <xsl:import href="forrestDocument202xhtml.xsl"/>
+  
+  <xsl:preserve-space elements="source"/>
+  
+  <xsl:template match="/">
+    <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>
+  </xsl:template>
+  
+  
+</xsl:stylesheet>
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.