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/12/22 00:06:04 UTC

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

Author: michi
Date: Wed Dec 21 15:06:00 2005
New Revision: 358413

URL: http://svn.apache.org/viewcvs?rev=358413&view=rev
Log:
list items added

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=358413&r1=358412&r2=358413&view=diff
==============================================================================
--- lenya/trunk/src/modules/opendocument/xslt/opendocument2xhtml.xsl (original)
+++ lenya/trunk/src/modules/opendocument/xslt/opendocument2xhtml.xsl Wed Dec 21 15:06:00 2005
@@ -5,43 +5,45 @@
   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"
+  xmlns:xlink="http://www.w3.org/1999/xlink"
 >
 
-  <!-- default parameter value -->
-  <xsl:param name="rendertype" select="''"/>
+<!-- default parameter value -->
+<xsl:param name="rendertype" select="''"/>
+
+<!-- TODO: The language does seem to be passed to this XSLT -->
+<xsl:param name="language" select="'HUGO'"/>
 
 <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>
+<!--
+Language: <xsl:value-of select="$language"/>
+-->
+    <h1>OpenDocument Content (content.xml)</h1>
+    <xsl:apply-templates select="office:body/office:text"/>
   </div>
 </xsl:template>
 
 <xsl:template match="text:p">
-  <p>
-    <xsl:apply-templates/>
-  </p>
+<p>
+  <xsl:apply-templates/>
+</p>
 </xsl:template>
 
+<xsl:template match="text:list">
+<ul>
+  <xsl:apply-templates/>
+</ul>
+</xsl:template>
 
+<xsl:template match="text:list-item">
+<li>
+  <xsl:apply-templates/>
+</li>
+</xsl:template>
+
+<xsl:template match="text:a">
+  <a href="{@xlink:href}"><xsl:apply-templates/></a>
+</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