You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by mi...@apache.org on 2005/10/02 16:06:45 UTC

svn commit: r293119 - /lenya/trunk/src/modules/opendocument/xslt/opendocument2xhtml.xsl

Author: michi
Date: Sun Oct  2 07:05:35 2005
New Revision: 293119

URL: http://svn.apache.org/viewcvs?rev=293119&view=rev
Log:
show content of ODT

Modified:
    lenya/trunk/src/modules/opendocument/xslt/opendocument2xhtml.xsl

Modified: lenya/trunk/src/modules/opendocument/xslt/opendocument2xhtml.xsl
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/modules/opendocument/xslt/opendocument2xhtml.xsl?rev=293119&r1=293118&r2=293119&view=diff
==============================================================================
--- lenya/trunk/src/modules/opendocument/xslt/opendocument2xhtml.xsl (original)
+++ lenya/trunk/src/modules/opendocument/xslt/opendocument2xhtml.xsl Sun Oct  2 07:05:35 2005
@@ -2,20 +2,33 @@
 
 <xsl:stylesheet version="1.0"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-  xmlns:default="http://apache.org/lenya/pubs/default/1.0"
   xmlns="http://www.w3.org/1999/xhtml"
+  xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
+  xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
 >
 
   <!-- default parameter value -->
   <xsl:param name="rendertype" select="''"/>
 
-<xsl:template match="/">
+<xsl:template match="office:document-content">
   <div id="body">
-    <h1>OpenDocument</h1>
+    <h1>OpenDocument Content</h1>
+    <p>
+    <xsl:apply-templates select="office:body/office:text/text:p"/>
+    </p>
   </div>
 </xsl:template>
 
-  <xsl:template match="default:links">
+<xsl:template match="text:p">
+  <p>
+    <xsl:apply-templates/>
+  </p>
+</xsl:template>
+
+
+
+<!--
+  <xsl:template match="default:links" xmlns:default="http://apache.org/lenya/pubs/default/1.0">
     <div id="body">
       <h1><xsl:value-of select="default:title"/></h1>
       <ul>
@@ -29,5 +42,6 @@
       <a href="{@href}"><xsl:value-of select="."/></a>
     </li>
   </xsl:template>
+-->
   
 </xsl:stylesheet>



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