forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject svn commit: rev 9687 - xml/forrest/trunk/src/core/context/resources/stylesheets
Date Mon, 22 Mar 2004 21:42:12 GMT
Author: brondsem
Date: Mon Mar 22 13:42:11 2004
New Revision: 9687

Modified:
   xml/forrest/trunk/src/core/context/resources/stylesheets/docbook2document.xsl
Log:
very basic support for 'refentry' and children

Modified: xml/forrest/trunk/src/core/context/resources/stylesheets/docbook2document.xsl
==============================================================================
--- xml/forrest/trunk/src/core/context/resources/stylesheets/docbook2document.xsl	(original)
+++ xml/forrest/trunk/src/core/context/resources/stylesheets/docbook2document.xsl	Mon Mar
22 13:42:11 2004
@@ -30,8 +30,45 @@
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
 
       <xsl:template match="/">
-            <xsl:apply-templates select="book|chapter|revhistory|article"/>
+            <xsl:apply-templates select="book|chapter|revhistory|article|refentry"/>
       </xsl:template>
+
+    <xsl:template match="/refentry">
+        <document>
+            <header>
+              <xsl:apply-templates select="refnamediv"/>
+            </header>
+            <body>
+              <xsl:apply-templates select="refsynopsisdiv"/>
+              <xsl:apply-templates select="refsect1"/>
+            </body>
+        </document>
+    </xsl:template>
+    
+    <xsl:template match="refsect1">
+       <section>
+         <xsl:apply-templates select="title"/>
+         <xsl:apply-templates select="para"/>
+       </section>
+    </xsl:template>
+    
+    <xsl:template match="refsynopsisdiv">
+      <section>
+        <title>SYNOPSIS</title>
+        <xsl:apply-templates select="cmdsynopsis"/>
+      </section>
+    </xsl:template>
+    
+    <xsl:template match="refnamediv">
+        <title><xsl:value-of select="refname"/><xsl:apply-templates select="refdescriptor"/></title>
+        <xsl:apply-templates select="refpurpose"/>
+    </xsl:template>
+    
+    <xsl:template match="refdescriptor">, <xsl:value-of select="."/></xsl:template>
+
+    <xsl:template match="refpurpose">
+      <abstract><xsl:value-of select="."/></abstract>
+    </xsl:template>
 
       <xsl:template match="/book">
             <document>

Mime
View raw message