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/11/17 16:54:51 UTC

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

Author: michi
Date: Thu Nov 17 07:54:45 2005
New Revision: 345271

URL: http://svn.apache.org/viewcvs?rev=345271&view=rev
Log:
simple opendocument XSLT added

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

Added: lenya/trunk/src/modules/opendocument/xslt/opendocument2xhtml.xsl
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/modules/opendocument/xslt/opendocument2xhtml.xsl?rev=345271&view=auto
==============================================================================
--- lenya/trunk/src/modules/opendocument/xslt/opendocument2xhtml.xsl (added)
+++ lenya/trunk/src/modules/opendocument/xslt/opendocument2xhtml.xsl Thu Nov 17 07:54:45 2005
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<xsl:stylesheet version="1.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  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="office:document-content">
+  <div id="body">
+    <h1>OpenDocument Content</h1>
+    <p>
+    <xsl:apply-templates select="office:body/office:text/text:p"/>
+    </p>
+  </div>
+</xsl:template>
+
+<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>
+        <xsl:apply-templates select="default:link"/>
+      </ul>
+    </div>
+  </xsl:template>
+
+  <xsl:template match="default:link">
+    <li>
+      <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