forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject svn commit: rev 36544 - forrest/trunk/src/core/context/resources/stylesheets
Date Wed, 18 Aug 2004 00:24:30 GMT
Author: brondsem
Date: Tue Aug 17 17:24:28 2004
New Revision: 36544

Modified:
   forrest/trunk/src/core/context/resources/stylesheets/openoffice-writer2forrest.xsl
Log:
match all depths; remove 'hugo' title; match generic heading style

Modified: forrest/trunk/src/core/context/resources/stylesheets/openoffice-writer2forrest.xsl
==============================================================================
--- forrest/trunk/src/core/context/resources/stylesheets/openoffice-writer2forrest.xsl	(original)
+++ forrest/trunk/src/core/context/resources/stylesheets/openoffice-writer2forrest.xsl	Tue
Aug 17 17:24:28 2004
@@ -62,7 +62,7 @@
       <xsl:with-param name="prevLevel" select="1"/>
     </xsl:call-template>
   </xsl:template>
-  <xsl:template match="text:h[@text:level='2'] | text:h[@text:level='3']| text:h[@text:level='4']
| text:h[@text:level='5']">
+  <xsl:template match="text:h[@text:level]">
     <xsl:variable name="level" select="@text:level"/>
     <xsl:call-template name="createSection">
       <xsl:with-param name="currentLevel" select="$level"/>
@@ -75,7 +75,7 @@
     <xsl:choose>
       <xsl:when test="$currentLevel &gt; $prevLevel+1">
         <section>
-          <title>hugo</title>
+          <title/>
           <xsl:call-template name="createSection">
             <xsl:with-param name="currentLevel" select="$currentLevel"/>
             <xsl:with-param name="prevLevel" select="$prevLevel +1"/>
@@ -96,6 +96,15 @@
   <!--+
       | paragraph
       +-->
+  <xsl:template match="text:p[@text:style-name='Heading']">
+      <section>
+      <title>
+        <xsl:apply-templates/>
+      </title>
+      <xsl:apply-templates select="key('rootChildren', generate-id())"/>
+      <xsl:apply-templates select="key('chieldElements', generate-id())"/>
+    </section>
+  </xsl:template>
   <xsl:template match="text:p">
     <xsl:element name="p">
       <xsl:apply-templates/>

Mime
View raw message