forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: rev 9524 - xml/forrest/trunk/src/core/context/resources/chaperon/stylesheets
Date Tue, 16 Mar 2004 06:53:52 GMT
Author: crossley
Date: Mon Mar 15 22:53:52 2004
New Revision: 9524

Modified:
   xml/forrest/trunk/src/core/context/resources/chaperon/stylesheets/wiki2xdoc.xsl
Log:
Revert last change. This xsl is not the same as Cocoon after all.


Modified: xml/forrest/trunk/src/core/context/resources/chaperon/stylesheets/wiki2xdoc.xsl
==============================================================================
--- xml/forrest/trunk/src/core/context/resources/chaperon/stylesheets/wiki2xdoc.xsl	(original)
+++ xml/forrest/trunk/src/core/context/resources/chaperon/stylesheets/wiki2xdoc.xsl	Mon Mar
15 22:53:52 2004
@@ -26,8 +26,15 @@
              cdata-section-elements="source"/>
 
  <xsl:template match="st:output">
-  <xsl:apply-templates select="st:document/st:paragraphs/st:paragraph/*" mode="paragraph"/>
 
-  <xsl:apply-templates select="st:document/st:section"/>
+   <document>  
+    <header>  
+     <title><xsl:value-of select="st:document/st:section/st:title/st:textsequence"/></title>
 
+    </header>  
+    <body>
+      <xsl:apply-templates select="st:document/st:paragraphs/st:paragraph/*" mode="paragraph"/>
 
+      <xsl:apply-templates select="st:document/st:section"/>
+    </body>  
+   </document>
  </xsl:template>
 
  <xsl:template match="st:section">
@@ -149,7 +156,7 @@
       </link>
      </xsl:when>
      <xsl:otherwise>
-      <link href="view.do?page={$href}">
+      <link href="{$href}.html">
        <xsl:value-of select="$href"/>
       </link>
      </xsl:otherwise>

Mime
View raw message