You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by cr...@apache.org on 2007/04/10 07:45:31 UTC

svn commit: r527038 [15/15] - in /forrest/trunk/whiteboard/plugins: ./ org.apache.forrest.plugin.Database/ org.apache.forrest.plugin.Database/resources/stylesheets/ org.apache.forrest.plugin.Database/src/documentation/ org.apache.forrest.plugin.Databas...

Modified: forrest/trunk/whiteboard/plugins/rtf-output/resources/stylesheets/sdocbook2document.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/rtf-output/resources/stylesheets/sdocbook2document.xsl?view=diff&rev=527038&r1=527037&r2=527038
==============================================================================
--- forrest/trunk/whiteboard/plugins/rtf-output/resources/stylesheets/sdocbook2document.xsl (original)
+++ forrest/trunk/whiteboard/plugins/rtf-output/resources/stylesheets/sdocbook2document.xsl Mon Apr  9 22:45:15 2007
@@ -26,177 +26,175 @@
 
 -->
 <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|refentry"/>
-      </xsl:template>
-
-    <xsl:template match="refentry">
-        <document>
-            <header>
-            <title><xsl:value-of select="refmeta/refentrytitle"/><xsl:apply-templates select="refmeta/manvolnum"/></title>
-            </header>
-            <body>
-              <xsl:apply-templates select="refnamediv"/>
-              <xsl:apply-templates select="refsynopsisdiv"/>
-              <xsl:apply-templates select="refsect1"/>
-            </body>
-        </document>
-    </xsl:template>
-    
-    <xsl:template match="manvolnum">
+  <xsl:template match="/">
+    <xsl:apply-templates select="book|chapter|revhistory|article|refentry"/>
+  </xsl:template>
+  <xsl:template match="refentry">
+    <document>
+      <header>
+        <title><xsl:value-of select="refmeta/refentrytitle"/>
+          <xsl:apply-templates select="refmeta/manvolnum"/></title>
+      </header>
+      <body>
+        <xsl:apply-templates select="refnamediv"/>
+        <xsl:apply-templates select="refsynopsisdiv"/>
+        <xsl:apply-templates select="refsect1"/>
+      </body>
+    </document>
+  </xsl:template>
+  <xsl:template match="manvolnum">
       (<xsl:value-of select="."/>)
     </xsl:template>
-
-    <xsl:template match="refsect1">
-       <section>
-         <xsl:apply-templates/>
-       </section>
-    </xsl:template>
-    
-    <xsl:template match="refsynopsisdiv">
-      <section>
-        <title>SYNOPSIS</title>
-        <xsl:apply-templates select="cmdsynopsis"/>
-      </section>
-    </xsl:template>
-    
-    <xsl:template match="refnamediv">
-        <section>
-        <title>NAME</title>
-        <p>
+  <xsl:template match="refsect1">
+    <section>
+      <xsl:apply-templates/>
+    </section>
+  </xsl:template>
+  <xsl:template match="refsynopsisdiv">
+    <section>
+      <title>SYNOPSIS</title>
+      <xsl:apply-templates select="cmdsynopsis"/>
+    </section>
+  </xsl:template>
+  <xsl:template match="refnamediv">
+    <section>
+      <title>NAME</title>
+      <p>
         <xsl:value-of select="refname"/>
         <xsl:apply-templates select="refpurpose"/>
-        </p>
-        <xsl:apply-templates select="refdescriptor"/>
-        </section>
-    </xsl:template>
-    
-    <xsl:template match="refdescriptor">
-        <p>
-            <xsl:value-of select="."/>
-        </p>
-    </xsl:template>
-
-    <xsl:template match="refpurpose">
+      </p>
+      <xsl:apply-templates select="refdescriptor"/>
+    </section>
+  </xsl:template>
+  <xsl:template match="refdescriptor">
+    <p>
+      <xsl:value-of select="."/>
+    </p>
+  </xsl:template>
+  <xsl:template match="refpurpose">
       - <xsl:value-of select="."/>
-    </xsl:template>
-
-      <xsl:template match="book">
-            <document>
-                  <header>
-                        <xsl:apply-templates select="bookinfo/title"/>
-                        <xsl:apply-templates select="bookinfo/subtitle"/>
-                        <authors>
-                              <xsl:apply-templates select="bookinfo/author"/>
-                        </authors>
-                        <!--
+  </xsl:template>
+  <xsl:template match="book">
+    <document>
+      <header>
+        <xsl:apply-templates select="bookinfo/title"/>
+        <xsl:apply-templates select="bookinfo/subtitle"/>
+        <authors>
+          <xsl:apply-templates select="bookinfo/author"/>
+        </authors>
+<!--
                         <notice/>
                         <abstract/>
                         -->
-                  </header>
-                  <body>
-                        <xsl:apply-templates select="node()[ local-name() != 'bookinfo']"/>
-                        <xsl:call-template name="apply-footnotes"/>
-                  </body>
-            </document>
-      </xsl:template>
-
-      <xsl:template match="chapter">
-            <document>
-                  <header>
-                        <xsl:apply-templates select="title"/>
-                        <xsl:apply-templates select="subtitle"/>
-                        <authors>
-                              <xsl:apply-templates select="chapterinfo/authorgroup/author"/>
-                        </authors>
-                  </header>
-                  <body>
-                        <xsl:apply-templates select="node()[
+      </header>
+      <body>
+        <xsl:apply-templates select="node()[ local-name() != 'bookinfo']"/>
+        <xsl:call-template name="apply-footnotes"/>
+      </body>
+    </document>
+  </xsl:template>
+  <xsl:template match="chapter">
+    <document>
+      <header>
+        <xsl:apply-templates select="title"/>
+        <xsl:apply-templates select="subtitle"/>
+        <authors>
+          <xsl:apply-templates select="chapterinfo/authorgroup/author"/>
+        </authors>
+      </header>
+      <body>
+        <xsl:apply-templates select="node()[
                               local-name() != 'title' and
                               local-name() != 'subtitle' and
                               local-name() != 'chapterinfo' 
                               ]"/>
-                        <xsl:call-template name="apply-footnotes"/>
-                  </body>
-            </document>
-      </xsl:template>
-
-       <xsl:template match="article">
-             <document>
-                   <header>
-                         <xsl:apply-templates select="articleinfo/title|title"/>
-                         <xsl:apply-templates select="articleinfo/subtitle|subtitle"/>
-                         <authors>
-                               <xsl:apply-templates select="articleinfo/author"/>
-                               <xsl:apply-templates select="articleinfo/corpauthor"/>
-                         </authors>
-                   </header>
-                   <body>
-                         <xsl:call-template name="extract-articleinfo"/>
-                         <xsl:apply-templates select="node()[
+        <xsl:call-template name="apply-footnotes"/>
+      </body>
+    </document>
+  </xsl:template>
+  <xsl:template match="article">
+    <document>
+      <header>
+        <xsl:apply-templates select="articleinfo/title|title"/>
+        <xsl:apply-templates select="articleinfo/subtitle|subtitle"/>
+        <authors>
+          <xsl:apply-templates select="articleinfo/author"/>
+          <xsl:apply-templates select="articleinfo/corpauthor"/>
+        </authors>
+      </header>
+      <body>
+        <xsl:call-template name="extract-articleinfo"/>
+        <xsl:apply-templates select="node()[
                                local-name() != 'title' and
                                local-name() != 'subtitle' and
                                local-name() != 'articleinfo'
                                ]"/>
-                         <xsl:call-template name="apply-footnotes"/>
-                   </body>
-             </document>
-       </xsl:template>
-
-      <xsl:template name="extract-articleinfo">
-          <xsl:if test="articleinfo/copyright">
-              <section id="pubinfo">
-                  <title>Publication Information</title>
-                  <xsl:if test="articleinfo/pubdate">
-                      <p>Date published:
-                          <xsl:value-of select="articleinfo/pubdate"/>
-                      </p>
-                  </xsl:if>
-                  <xsl:apply-templates select="articleinfo/copyright"/>
-              </section>
-          </xsl:if>
-      </xsl:template>
-
-      <xsl:template name="apply-footnotes">
-            <xsl:if test="//footnote">
-                  <section><title>Footnotes</title>
-                        <xsl:apply-templates select="//footnote" mode="base"/>
-                  </section>
-            </xsl:if>
-      </xsl:template>
-
-      <xsl:template match="author">
-            <xsl:element name="person">
-                  <xsl:if test="id"><xsl:attribute name="id"><xsl:value-of select="id"/></xsl:attribute></xsl:if>
-                  <xsl:attribute name="name">
-                        <xsl:if test="honorific"><xsl:value-of select="honorific"/>. </xsl:if>
-                        <xsl:if test="firstname"><xsl:value-of select="firstname"/></xsl:if>
-                        <xsl:text> </xsl:text><xsl:value-of select="surname"/>
-                        <xsl:if test="affiliation">
-                            <xsl:text> (</xsl:text>
+        <xsl:call-template name="apply-footnotes"/>
+      </body>
+    </document>
+  </xsl:template>
+  <xsl:template name="extract-articleinfo">
+    <xsl:if test="articleinfo/copyright">
+      <section id="pubinfo">
+        <title>Publication Information</title>
+        <xsl:if test="articleinfo/pubdate">
+          <p>
+            Date published:
+            <xsl:value-of select="articleinfo/pubdate"/>
+          </p>
+        </xsl:if>
+        <xsl:apply-templates select="articleinfo/copyright"/>
+      </section>
+    </xsl:if>
+  </xsl:template>
+  <xsl:template name="apply-footnotes">
+    <xsl:if test="//footnote">
+      <section>
+        <title>Footnotes</title>
+        <xsl:apply-templates select="//footnote" mode="base"/>
+      </section>
+    </xsl:if>
+  </xsl:template>
+  <xsl:template match="author">
+    <xsl:element name="person">
+      <xsl:if test="id">
+        <xsl:attribute name="id">
+          <xsl:value-of select="id"/>
+        </xsl:attribute>
+      </xsl:if>
+      <xsl:attribute name="name">
+        <xsl:if test="honorific">
+          <xsl:value-of select="honorific"/>. </xsl:if>
+        <xsl:if test="firstname">
+          <xsl:value-of select="firstname"/>
+        </xsl:if>
+<xsl:text> </xsl:text>
+        <xsl:value-of select="surname"/>
+        <xsl:if test="affiliation">
+<xsl:text> (</xsl:text>
 <!-- FIXME: horrid hack - there can be zero-or-more jobtitle -->
-                            <xsl:if test="affiliation/jobtitle">
-                                <xsl:value-of select="affiliation/jobtitle"/>
-                                <xsl:text>, </xsl:text>
-                            </xsl:if>
-                            <xsl:if test="affiliation/orgname">
-                                <xsl:value-of select="affiliation/orgname"/>
-                            </xsl:if>
-                            <xsl:text>)</xsl:text>
-                        </xsl:if>
-                  </xsl:attribute>
-                  <xsl:attribute name="email"><xsl:value-of select="address/email"/></xsl:attribute>
-            </xsl:element>
-      </xsl:template>
-      <xsl:template match="chapter">
-            <section>
-                  <xsl:apply-templates/>
-            </section>
-      </xsl:template>
-      
-      <xsl:template match="cmdsynopsis">
-            <!--
+          <xsl:if test="affiliation/jobtitle">
+            <xsl:value-of select="affiliation/jobtitle"/>
+<xsl:text>, </xsl:text>
+          </xsl:if>
+          <xsl:if test="affiliation/orgname">
+            <xsl:value-of select="affiliation/orgname"/>
+          </xsl:if>
+<xsl:text>)</xsl:text>
+        </xsl:if>
+      </xsl:attribute>
+      <xsl:attribute name="email">
+        <xsl:value-of select="address/email"/>
+      </xsl:attribute>
+    </xsl:element>
+  </xsl:template>
+  <xsl:template match="chapter">
+    <section>
+      <xsl:apply-templates/>
+    </section>
+  </xsl:template>
+  <xsl:template match="cmdsynopsis">
+<!--
             <cmdsynopsis>
                   <command>xindice add_collection</command>
                   <arg choice="req">-c <replaceable>context</replaceable></arg>
@@ -204,585 +202,562 @@
                   <arg choice="opt">-v <replaceable></replaceable></arg>
             </cmdsynopsis>
             -->
-            <p>
-                  <code>
-                        <xsl:value-of select="command"/>
-                        <xsl:apply-templates select="node()[ local-name() != 'command' ]"/>
-                  </code>
-            </p>
-      </xsl:template>
-      <xsl:template match="arg">
-            <xsl:choose>
-                  <xsl:when test="@choice = 'req' ">
-                        <xsl:apply-templates/>
-                  </xsl:when>
-                  <xsl:otherwise>
+    <p>
+      <code>
+      <xsl:value-of select="command"/>
+      <xsl:apply-templates select="node()[ local-name() != 'command' ]"/>
+      </code>
+    </p>
+  </xsl:template>
+  <xsl:template match="arg">
+    <xsl:choose>
+      <xsl:when test="@choice = 'req' ">
+        <xsl:apply-templates/>
+      </xsl:when>
+      <xsl:otherwise>
                         [<xsl:apply-templates/>]
                   </xsl:otherwise>
-            </xsl:choose>
-      </xsl:template>
-      <xsl:template match="replaceable">
+    </xsl:choose>
+  </xsl:template>
+  <xsl:template match="replaceable">
             (or <xsl:value-of select="."/>)
       </xsl:template>
-      <xsl:template match="bridgehead">
-            <section>
-                  <title>
-                        <xsl:value-of select="."/>
-                  </title>
-            </section>
-      </xsl:template>
-      <xsl:template match="example">
-            <section>
-                  <xsl:apply-templates/>
-            </section>
-      </xsl:template>
-      <xsl:template match="informaltable">
-            <table>
-                  <xsl:apply-templates/>
-            </table>
-      </xsl:template>
-      <xsl:template match="anchor">
-            <!--
+  <xsl:template match="bridgehead">
+    <section>
+      <title><xsl:value-of select="."/></title>
+    </section>
+  </xsl:template>
+  <xsl:template match="example">
+    <section>
+      <xsl:apply-templates/>
+    </section>
+  </xsl:template>
+  <xsl:template match="informaltable">
+    <table>
+      <xsl:apply-templates/>
+    </table>
+  </xsl:template>
+  <xsl:template match="anchor">
+<!--
             <a name="{.}"/>
             -->
-            <xsl:element name="link">
-                  <xsl:if test="@href">
-                        <xsl:attribute name="href"><xsl:value-of select="@href"/></xsl:attribute>
-                  </xsl:if>
-                  <xsl:attribute name="id"><xsl:value-of select="."/></xsl:attribute>
-            </xsl:element>
-      </xsl:template>
-      <xsl:template match="a">
-            <link href="{@href}">
-                  <xsl:value-of select="."/>
-            </link>
-      </xsl:template>
-      <xsl:template match="subtitle">
-            <subtitle>
-                  <xsl:value-of select="."/>
-            </subtitle>
-      </xsl:template>
-      <xsl:template match="title">
-            <title>
-                  <xsl:value-of select="."/>
-            </title>
-      </xsl:template>
-      <xsl:template match="affiliation">
-            <li>
-                  <xsl:text>[</xsl:text>
-                  <xsl:value-of select="shortaffil"/>
-                  <xsl:text>] </xsl:text>
-                  <b>
-                        <xsl:value-of select="jobtitle"/>
-                  </b>
-                  <i>
-                        <xsl:value-of select="orgname"/>
-                        <xsl:if test="orgdiv">
-                              <xsl:text>/</xsl:text>
-                              <xsl:value-of select="orgdiv"/>
-                        </xsl:if>
-                  </i>
-            </li>
-      </xsl:template>
-      <xsl:template match="authorblurb">
-            <section title="Bio">
-                  <xsl:apply-templates/>
-            </section>
-      </xsl:template>
-      <xsl:template match="honorific|firstname|surname|orgdiv|orgname|shortaffil|jobtitle"/>
-      <xsl:template match="revhistory">
-            <document>
-                  <header>
-                        <title>Revision History</title>
-                  </header>
-                  <body>
-                        <section>
-                              <title>Revision History</title>
-                              <table>
-                                    <xsl:variable name="unique-revisions" select="revision[not(revnumber=preceding-sibling::revision/revnumber)]/revnumber"/>
-                                    <xsl:variable name="base" select="."/>
-                                    <xsl:for-each select="$unique-revisions">
-                                          <tr>
-                                                <td>
-                                                      <b>Revision <xsl:value-of select="."/> 
+    <xsl:element name="link">
+      <xsl:if test="@href">
+        <xsl:attribute name="href">
+          <xsl:value-of select="@href"/>
+        </xsl:attribute>
+      </xsl:if>
+      <xsl:attribute name="id">
+        <xsl:value-of select="."/>
+      </xsl:attribute>
+    </xsl:element>
+  </xsl:template>
+  <xsl:template match="a"><link href="{@href}">
+    <xsl:value-of select="."/></link>
+  </xsl:template>
+  <xsl:template match="subtitle">
+    <subtitle>
+      <xsl:value-of select="."/>
+    </subtitle>
+  </xsl:template>
+  <xsl:template match="title">
+    <title><xsl:value-of select="."/></title>
+  </xsl:template>
+  <xsl:template match="affiliation">
+    <li><xsl:text>[</xsl:text>
+      <xsl:value-of select="shortaffil"/>
+<xsl:text>] </xsl:text>
+      <b>
+        <xsl:value-of select="jobtitle"/>
+      </b>
+      <i>
+        <xsl:value-of select="orgname"/>
+        <xsl:if test="orgdiv">
+<xsl:text>/</xsl:text>
+          <xsl:value-of select="orgdiv"/>
+        </xsl:if>
+      </i></li>
+  </xsl:template>
+  <xsl:template match="authorblurb">
+    <section title="Bio">
+      <xsl:apply-templates/>
+    </section>
+  </xsl:template>
+  <xsl:template match="honorific|firstname|surname|orgdiv|orgname|shortaffil|jobtitle"/>
+  <xsl:template match="revhistory">
+    <document>
+      <header>
+        <title>Revision History</title>
+      </header>
+      <body>
+        <section>
+          <title>Revision History</title>
+          <table>
+            <xsl:variable name="unique-revisions" select="revision[not(revnumber=preceding-sibling::revision/revnumber)]/revnumber"/>
+            <xsl:variable name="base" select="."/>
+            <xsl:for-each select="$unique-revisions">
+              <tr>
+                <td>
+                  <b>Revision <xsl:value-of select="."/> 
                                                             (<xsl:value-of select="$base/revision[revnumber=current()]/date"/>)
                                                       </b>
-                                                </td>
-                                          </tr>
-                                          <tr>
-                                                <td>
-                                                      <font color="#000000" face="arial,helvetica,sanserif">
-                                                            <br/>
-                                                            <ul>
-                                                                  <xsl:apply-templates select="$base/revision[revnumber=current()]"/>
-                                                            </ul>
-                                                      </font>
-                                                </td>
-                                          </tr>
-                                    </xsl:for-each>
-                              </table>
-                        </section>
-                  </body>
-            </document>
-      </xsl:template>
-
-      <xsl:template match="para">
-            <p><xsl:apply-templates/></p>
-      </xsl:template>
-
-      <xsl:template match="emphasis">
-          <xsl:choose>
-              <xsl:when test="@role='bold'">
-                  <strong><xsl:apply-templates/></strong>
-              </xsl:when>
-              <xsl:otherwise>
-                  <em><xsl:apply-templates/></em>
-              </xsl:otherwise>
-          </xsl:choose>
-       </xsl:template>
-
-      <xsl:template match="firstterm">
-            <em><xsl:apply-templates/></em>
-      </xsl:template>
-
-      <xsl:template match="revision">
-            <li>
-                  <xsl:choose>
-                        <xsl:when test="@revisionflag='added'">
-                              <img align="absmiddle" alt="added" src="images/add.jpg"/>
-                        </xsl:when>
-                        <xsl:when test="@revisionflag='changed'">
-                              <img align="absmiddle" alt="changed" src="images/update.jpg"/>
-                        </xsl:when>
-                        <xsl:when test="@revisionflag='deleted'">
-                              <img align="absmiddle" alt="deleted" src="images/remove.jpg"/>
-                        </xsl:when>
-                        <xsl:when test="@revisionflag='off'">
-                              <img align="absmiddle" alt="off" src="images/fix.jpg"/>
-                        </xsl:when>
-                        <xsl:otherwise>
-                              <img align="absmiddle" alt="changed" src="images/update.jpg"/>
-                        </xsl:otherwise>
-                  </xsl:choose>
-                  <xsl:value-of select="revremark"/>
-                  <xsl:text> (</xsl:text>
-                  <xsl:value-of select="authorinitials"/>
-                  <xsl:text>)</xsl:text>
-            </li>
-      </xsl:template>
-      <xsl:template match="revnumber|revremark|authorinitials|date"/>
-    
-      <xsl:template match="sect1|sect2|sect3|sect4|sect5|section">
-            <xsl:param name="idval">
-                <xsl:if test="@id">
-                            <xsl:value-of select="@id"/>
-                </xsl:if>
-            </xsl:param>
-          <xsl:choose>
-              <xsl:when test="@id">
-                  <xsl:element name="section">
-                  <xsl:attribute name="id">
-                        <xsl:value-of select="$idval"/>
-                    </xsl:attribute>
-                    <xsl:apply-templates/>
-                  </xsl:element>                  
-              </xsl:when>
-              <xsl:otherwise>
-                  <xsl:element name="section">
-                      <xsl:apply-templates/>
-                  </xsl:element>
-              </xsl:otherwise>
-          </xsl:choose>
-      </xsl:template>
-    
-      <xsl:template match="dedication">
-            <table>
-                  <tr>
-                        <td>
-                              <b>Dedication</b>
-                        </td>
-                  </tr>
-                  <tr>
-                        <td>
-                              <br/>
-                              <xsl:apply-templates/>
-                        </td>
-                  </tr>
-            </table>
-      </xsl:template>
-      <xsl:template match="edition|pubdate|year|holder"/>
-      <xsl:template match="copyright">
-            <p>Copyright &#x00A9;<xsl:value-of select="year"/> by <xsl:value-of select="holder"/>
-                <xsl:text> </xsl:text>
-                <i>All rights reserved.</i>
-            </p>
-      </xsl:template>
-      <xsl:template match="legalnotice">
-            <table>
-                  <tr>
-                        <td>
-                              <xsl:apply-templates/>
-                        </td>
-                  </tr>
-            </table>
-      </xsl:template>
-      <xsl:template match="programlisting">
-            <source>
-                  <xsl:apply-templates/>
-            </source>
-      </xsl:template>
-      <xsl:template match="screen">
-            <source>
-                  <xsl:apply-templates/>
-            </source>
-      </xsl:template>
-      <xsl:template match="variablelist">
-          <dl>
-            <xsl:apply-templates/>
-          </dl>
-      </xsl:template>
-      <xsl:template match="varlistentry">
-         <dt><xsl:apply-templates select="term"/></dt>
-         <dd><xsl:apply-templates select="listitem/*"/></dd>
-      </xsl:template>
-      <xsl:template match="orderedlist">
-            <ol>
-                  <xsl:apply-templates/>
-            </ol>
-      </xsl:template>
-      <xsl:template match="listitem">
-            <li>
-                  <xsl:apply-templates/>
-            </li>
-      </xsl:template>
-      <xsl:template match="itemizedlist">
-            <ul>
-                  <xsl:apply-templates/>
-            </ul>
-      </xsl:template>
-      <xsl:template match="command">
-            <code>
-                  <xsl:value-of select="."/>
-            </code>
-      </xsl:template>
-      <xsl:template match="computeroutput">
-            <code>
-                  <xsl:value-of select="."/>
-            </code>
-      </xsl:template>
-      <xsl:template match="varname">
-            <code>
-                  <xsl:value-of select="."/>
-            </code>
-      </xsl:template>
-      <xsl:template match="literal">
-            <code><xsl:value-of select="."/></code>
-      </xsl:template>
-      <xsl:template match="option">
-            <code><xsl:value-of select="."/></code>
-      </xsl:template>
-       <xsl:template match="constant">
-            <code><xsl:value-of select="."/></code>
-      </xsl:template>
-      <xsl:template match="trademark">
-            <xsl:apply-templates/>&#x2122;
-      </xsl:template>
-      <xsl:template match="filename">
-            <code>
-                  <xsl:value-of select="."/>
-            </code>
-      </xsl:template>
-      <xsl:template match="classname|function|parameter">
-            <code>
-                  <xsl:apply-templates/>
-                  <xsl:if test="name(.)='function'">
-                        <xsl:text>()</xsl:text>
-                  </xsl:if>
-            </code>
-      </xsl:template>
-      <xsl:template match="quote">
-            <xsl:text>"</xsl:text><xsl:apply-templates/><xsl:text>"</xsl:text>
-      </xsl:template>
-
-      <xsl:template match="blockquote">
-            <table>
-                  <xsl:if test="title">
-                        <tr>
-                              <td>
-                                    <xsl:value-of select="title"/>
-                              </td>
-                        </tr>
-                  </xsl:if>
-                  <tr>
-                        <td>
-                              <xsl:apply-templates/>
-                        </td>
-                  </tr>
-            </table>
-      </xsl:template>
-      <xsl:template match="warning">
-            <warning>
-                  <xsl:apply-templates/>
-            </warning>
-      </xsl:template>
-      <xsl:template match="ulink">
-            <xsl:element name="link">
-                  <xsl:attribute name="href"><xsl:choose><xsl:when test="@uri"><xsl:value-of select="@uri"/></xsl:when><xsl:otherwise><xsl:value-of select="@url"/></xsl:otherwise></xsl:choose></xsl:attribute>
-                  <xsl:apply-templates/>
-            </xsl:element>
-      </xsl:template>
-      <xsl:template match="footnote">
-            <xsl:variable name="footnote-id">
-                  <xsl:value-of select="count(preceding::footnote)+1"/>
-            </xsl:variable>
-            <anchor id="footnote-{$footnote-id}-ref"/>
-            <sup>
-                  <link href="#footnote-{$footnote-id}">
-                        <xsl:value-of select="$footnote-id"/>
-                  </link>
-            </sup>
-      </xsl:template>
-
-      <xsl:template match="footnote" mode="base">
-            <p>
-                  <xsl:variable name="footnote-id">
-                        <xsl:value-of select="count(preceding::footnote)+1"/>
-                  </xsl:variable>
-                  <anchor id="footnote-{$footnote-id}"/>
-                  <link href="#footnote-{$footnote-id}-ref">
-                        <xsl:value-of select="$footnote-id"/>
-                  </link><xsl:text>) </xsl:text>
-                  <!-- Most footnotes have a para nested; strip if there is only one-->
-                  <xsl:if test="not(para)"><xsl:apply-templates/></xsl:if>
-                  <xsl:if test="count(para)=1"><xsl:apply-templates
-                              select="para/node()"/></xsl:if>
-            </p>
-            <xsl:if test="count(para)>1"><xsl:apply-templates/></xsl:if>
-      </xsl:template>
-
-      <xsl:template match="figure">
-            <table>
-                <tr>
-                    <td>
-                        <xsl:value-of select="title"/>
-                    </td>
-                </tr>
-                <tr>
-                    <td>
-                        <xsl:apply-templates select="*[not(self::title)]"/>
-                    </td>
-                </tr>
-            </table>
-      </xsl:template>
-
-      <xsl:template match="mediaobject|imageobject">
-            <xsl:apply-templates/>
-      </xsl:template>
-
-      <xsl:template match="inlinegraphic">
-            <img alt="{@srccredit}" src="{@fileref}"/>
-      </xsl:template>
-
-      <xsl:template match="graphic|imagedata">
-            <img alt="{@srccredit}" src="{@fileref}"/>
-            <xsl:if test="@srccredit">
-                <ul>
-                      <li>
-                          <xsl:value-of select="@srccredit"/>
-                      </li>
-                </ul>
-            </xsl:if>
-      </xsl:template>
-      <xsl:template match="simplelist">
-            <ul>
-                  <xsl:apply-templates/>
-            </ul>
-      </xsl:template>
-      <xsl:template match="member">
-            <li>
-                  <xsl:apply-templates/>
-            </li>
-      </xsl:template>
-      <xsl:template match="table">
-            <table>
-                  <xsl:apply-templates/>
-            </table>
-      </xsl:template>
-      <xsl:template match="tgroup">
-            <xsl:apply-templates select="thead|tbody|tfoot"/>
-      </xsl:template>
-      <xsl:template match="thead">
-            <xsl:apply-templates mode="thead"/>
-      </xsl:template>
-      <xsl:template match="row" mode="thead">
-            <tr>
-              <xsl:apply-templates mode="thead"/>
-            </tr>
-      </xsl:template>
-      <xsl:template match="entry" mode="thead">
-            <th>
-                  <xsl:apply-templates/>
-            </th>
-      </xsl:template>
-      <xsl:template match="row">
-            <tr>
-                  <xsl:apply-templates/>
-            </tr>
-      </xsl:template>
-      <xsl:template match="tbody|tfoot">
-            <xsl:apply-templates/>
-      </xsl:template>
-      <xsl:template match="entry">
-            <td>
-                  <xsl:apply-templates/>
-            </td>
-      </xsl:template>
-      <xsl:template match="trademark">
-            <xsl:apply-templates/>
-            <sup>TM</sup>
-      </xsl:template>
-      <xsl:template match="email">
-        &lt;<link>
-            <xsl:attribute name="href">
-                <xsl:value-of select="concat('mailto:',.)"/>
-            </xsl:attribute>
-             <xsl:apply-templates/>
-         </link>&gt;
-      </xsl:template>
-
-      <!-- Filched from Norm Walsh's inline.xsl -->
-      <xsl:template match="sgmltag">
-            <xsl:call-template name="format.sgmltag"/>
-      </xsl:template>
-
-      <xsl:template name="format.sgmltag">
-            <xsl:param name="class">
-                  <xsl:choose>
-                        <xsl:when test="@class">
-                              <xsl:value-of select="@class"/>
-                        </xsl:when>
-                        <xsl:otherwise>element</xsl:otherwise>
-                  </xsl:choose>
-            </xsl:param>
-
-            <tt class="sgmltag-{$class}">
-                  <xsl:choose>
-                        <xsl:when test="$class='attribute'">
-                              <xsl:apply-templates/>
-                        </xsl:when>
-                        <xsl:when test="$class='attvalue'">
-                              <xsl:apply-templates/>
-                        </xsl:when>
-                        <xsl:when test="$class='element'">
-                              <xsl:apply-templates/>
-                        </xsl:when>
-                        <xsl:when test="$class='endtag'">
-                              <xsl:text>&lt;/</xsl:text>
-                              <xsl:apply-templates/>
-                              <xsl:text>&gt;</xsl:text>
-                        </xsl:when>
-                        <xsl:when test="$class='genentity'">
-                              <xsl:text>&amp;</xsl:text>
-                              <xsl:apply-templates/>
-                              <xsl:text>;</xsl:text>
-                        </xsl:when>
-                        <xsl:when test="$class='numcharref'">
-                              <xsl:text>&amp;#</xsl:text>
-                              <xsl:apply-templates/>
-                              <xsl:text>;</xsl:text>
-                        </xsl:when>
-                        <xsl:when test="$class='paramentity'">
-                              <xsl:text>%</xsl:text>
-                              <xsl:apply-templates/>
-                              <xsl:text>;</xsl:text>
-                        </xsl:when>
-                        <xsl:when test="$class='pi'">
-                              <xsl:text>&lt;?</xsl:text>
-                              <xsl:apply-templates/>
-                              <xsl:text>&gt;</xsl:text>
-                        </xsl:when>
-                        <xsl:when test="$class='xmlpi'">
-                              <xsl:text>&lt;?</xsl:text>
-                              <xsl:apply-templates/>
-                              <xsl:text>?&gt;</xsl:text>
-                        </xsl:when>
-                        <xsl:when test="$class='starttag'">
-                              <xsl:text>&lt;</xsl:text>
-                              <xsl:apply-templates/>
-                              <xsl:text>&gt;</xsl:text>
-                        </xsl:when>
-                        <xsl:when test="$class='emptytag'">
-                              <xsl:text>&lt;</xsl:text>
-                              <xsl:apply-templates/>
-                              <xsl:text>/&gt;</xsl:text>
-                        </xsl:when>
-                        <xsl:when test="$class='sgmlcomment'">
-                              <xsl:text>&lt;!--</xsl:text>
-                              <xsl:apply-templates/>
-                              <xsl:text>--&gt;</xsl:text>
-                        </xsl:when>
-                        <xsl:otherwise>
-                              <xsl:apply-templates/>
-                        </xsl:otherwise>
-                  </xsl:choose>
-            </tt>
-      </xsl:template>
-    
-    <xsl:template match="xref">
-        <xsl:param name="linkend">
-            <xsl:value-of select="@linkend"/>
-        </xsl:param>
-        <xsl:param name="endterm">
-            <xsl:value-of select="@endterm"/>
-        </xsl:param>
-        <xsl:param name="xreflabelvalue">
-            <xsl:value-of select="@xreflabel"/>
-        </xsl:param>
-        <xsl:param name="linkendvalue">
-            <xsl:if test="$linkend">
-                <xsl:value-of select="//*[@id=$linkend]/title"/>
-            </xsl:if>
-        </xsl:param>
-        <xsl:param name="endtermvalue">
-            <xsl:if test="$endterm">
-                <xsl:value-of select="//*[@id=$endterm]"/>
-            </xsl:if>
-        </xsl:param>
+                </td>
+              </tr>
+              <tr>
+                <td>
+                  <font color="#000000" face="arial,helvetica,sanserif">
+                    <br/>
+                    <ul>
+                      <xsl:apply-templates select="$base/revision[revnumber=current()]"/>
+                    </ul>
+                  </font>
+                </td>
+              </tr>
+            </xsl:for-each>
+          </table>
+        </section>
+      </body>
+    </document>
+  </xsl:template>
+  <xsl:template match="para">
+    <p>
+      <xsl:apply-templates/>
+    </p>
+  </xsl:template>
+  <xsl:template match="emphasis">
+    <xsl:choose>
+      <xsl:when test="@role='bold'"><strong>
+        <xsl:apply-templates/></strong>
+      </xsl:when>
+      <xsl:otherwise><em>
+        <xsl:apply-templates/></em>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:template>
+  <xsl:template match="firstterm"><em>
+    <xsl:apply-templates/></em>
+  </xsl:template>
+  <xsl:template match="revision">
+    <li><xsl:choose>
+        <xsl:when test="@revisionflag='added'">
+          <img align="absmiddle" alt="added" src="images/add.jpg"/>
+        </xsl:when>
+        <xsl:when test="@revisionflag='changed'">
+          <img align="absmiddle" alt="changed" src="images/update.jpg"/>
+        </xsl:when>
+        <xsl:when test="@revisionflag='deleted'">
+          <img align="absmiddle" alt="deleted" src="images/remove.jpg"/>
+        </xsl:when>
+        <xsl:when test="@revisionflag='off'">
+          <img align="absmiddle" alt="off" src="images/fix.jpg"/>
+        </xsl:when>
+        <xsl:otherwise>
+          <img align="absmiddle" alt="changed" src="images/update.jpg"/>
+        </xsl:otherwise>
+      </xsl:choose>
+      <xsl:value-of select="revremark"/>
+<xsl:text> (</xsl:text>
+      <xsl:value-of select="authorinitials"/>
+<xsl:text>)</xsl:text></li>
+  </xsl:template>
+  <xsl:template match="revnumber|revremark|authorinitials|date"/>
+  <xsl:template match="sect1|sect2|sect3|sect4|sect5|section">
+    <xsl:param name="idval">
+      <xsl:if test="@id">
+        <xsl:value-of select="@id"/>
+      </xsl:if>
+    </xsl:param>
+    <xsl:choose>
+      <xsl:when test="@id">
+        <xsl:element name="section">
+          <xsl:attribute name="id">
+            <xsl:value-of select="$idval"/>
+          </xsl:attribute>
+          <xsl:apply-templates/>
+        </xsl:element>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:element name="section">
+          <xsl:apply-templates/>
+        </xsl:element>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:template>
+  <xsl:template match="dedication">
+    <table>
+      <tr>
+        <td>
+          <b>Dedication</b>
+        </td>
+      </tr>
+      <tr>
+        <td>
+          <br/>
+          <xsl:apply-templates/>
+        </td>
+      </tr>
+    </table>
+  </xsl:template>
+  <xsl:template match="edition|pubdate|year|holder"/>
+  <xsl:template match="copyright">
+    <p>
+      Copyright &#x00A9;
+      <xsl:value-of select="year"/>
+      by
+      <xsl:value-of select="holder"/>
+<xsl:text> </xsl:text>
+      <i>All rights reserved.</i>
+    </p>
+  </xsl:template>
+  <xsl:template match="legalnotice">
+    <table>
+      <tr>
+        <td>
+          <xsl:apply-templates/>
+        </td>
+      </tr>
+    </table>
+  </xsl:template>
+  <xsl:template match="programlisting">
+    <source>
+      <xsl:apply-templates/>
+    </source>
+  </xsl:template>
+  <xsl:template match="screen">
+    <source>
+      <xsl:apply-templates/>
+    </source>
+  </xsl:template>
+  <xsl:template match="variablelist">
+    <dl>
+      <xsl:apply-templates/>
+    </dl>
+  </xsl:template>
+  <xsl:template match="varlistentry">
+    <dt><xsl:apply-templates select="term"/></dt>
+    <dd><xsl:apply-templates select="listitem/*"/></dd>
+  </xsl:template>
+  <xsl:template match="orderedlist">
+    <ol>
+      <xsl:apply-templates/>
+    </ol>
+  </xsl:template>
+  <xsl:template match="listitem">
+    <li><xsl:apply-templates/></li>
+  </xsl:template>
+  <xsl:template match="itemizedlist">
+    <ul>
+      <xsl:apply-templates/>
+    </ul>
+  </xsl:template>
+  <xsl:template match="command"><code>
+    <xsl:value-of select="."/></code>
+  </xsl:template>
+  <xsl:template match="computeroutput"><code>
+    <xsl:value-of select="."/></code>
+  </xsl:template>
+  <xsl:template match="varname"><code>
+    <xsl:value-of select="."/></code>
+  </xsl:template>
+  <xsl:template match="literal"><code>
+    <xsl:value-of select="."/></code>
+  </xsl:template>
+  <xsl:template match="option"><code>
+    <xsl:value-of select="."/></code>
+  </xsl:template>
+  <xsl:template match="constant"><code>
+    <xsl:value-of select="."/></code>
+  </xsl:template>
+  <xsl:template match="trademark">
+    <xsl:apply-templates/>&#x2122;
+      </xsl:template>
+  <xsl:template match="filename"><code>
+    <xsl:value-of select="."/></code>
+  </xsl:template>
+  <xsl:template match="classname|function|parameter"><code>
+    <xsl:apply-templates/>
+    <xsl:if test="name(.)='function'">
+<xsl:text>()</xsl:text>
+    </xsl:if></code>
+  </xsl:template>
+  <xsl:template match="quote">
+<xsl:text>"</xsl:text>
+    <xsl:apply-templates/>
+<xsl:text>"</xsl:text>
+  </xsl:template>
+  <xsl:template match="blockquote">
+    <table>
+      <xsl:if test="title">
+        <tr>
+          <td>
+            <xsl:value-of select="title"/>
+          </td>
+        </tr>
+      </xsl:if>
+      <tr>
+        <td>
+          <xsl:apply-templates/>
+        </td>
+      </tr>
+    </table>
+  </xsl:template>
+  <xsl:template match="warning">
+    <warning>
+      <xsl:apply-templates/>
+    </warning>
+  </xsl:template>
+  <xsl:template match="ulink">
+    <xsl:element name="link">
+      <xsl:attribute name="href">
         <xsl:choose>
-            <xsl:when test="//xref[not(@endterm)]">
-                <xsl:element name="link">
-                    <xsl:attribute name="href">
-                        <xsl:text>#</xsl:text>
-                        <xsl:value-of select="$linkend"/>
-                    </xsl:attribute>
-                    <xsl:choose>
-                        <xsl:when test="@xreflabel">
-                            <xsl:value-of select="$xreflabelvalue"/>
-                        </xsl:when>
-                        <xsl:otherwise>
-                            <xsl:value-of select="$linkendvalue"/>
-                        </xsl:otherwise>
-                    </xsl:choose>
-                </xsl:element>
-                <xsl:apply-templates/>
+          <xsl:when test="@uri">
+            <xsl:value-of select="@uri"/>
+          </xsl:when>
+          <xsl:otherwise>
+            <xsl:value-of select="@url"/>
+          </xsl:otherwise>
+        </xsl:choose>
+      </xsl:attribute>
+      <xsl:apply-templates/>
+    </xsl:element>
+  </xsl:template>
+  <xsl:template match="footnote">
+    <xsl:variable name="footnote-id">
+      <xsl:value-of select="count(preceding::footnote)+1"/>
+    </xsl:variable>
+    <anchor id="footnote-{$footnote-id}-ref"/><sup><link href="#footnote-{$footnote-id}">
+    <xsl:value-of select="$footnote-id"/></link></sup>
+  </xsl:template>
+  <xsl:template match="footnote" mode="base">
+    <p>
+      <xsl:variable name="footnote-id">
+        <xsl:value-of select="count(preceding::footnote)+1"/>
+      </xsl:variable>
+      <anchor id="footnote-{$footnote-id}"/>
+      <link href="#footnote-{$footnote-id}-ref">
+      <xsl:value-of select="$footnote-id"/>
+      </link>
+<xsl:text>) </xsl:text>
+<!-- Most footnotes have a para nested; strip if there is only one-->
+      <xsl:if test="not(para)">
+        <xsl:apply-templates/>
+      </xsl:if>
+      <xsl:if test="count(para)=1">
+        <xsl:apply-templates
+                              select="para/node()"/>
+      </xsl:if>
+    </p>
+    <xsl:if test="count(para)>1">
+      <xsl:apply-templates/>
+    </xsl:if>
+  </xsl:template>
+  <xsl:template match="figure">
+    <table>
+      <tr>
+        <td>
+          <xsl:value-of select="title"/>
+        </td>
+      </tr>
+      <tr>
+        <td>
+          <xsl:apply-templates select="*[not(self::title)]"/>
+        </td>
+      </tr>
+    </table>
+  </xsl:template>
+  <xsl:template match="mediaobject|imageobject">
+    <xsl:apply-templates/>
+  </xsl:template>
+  <xsl:template match="inlinegraphic">
+    <img alt="{@srccredit}" src="{@fileref}"/>
+  </xsl:template>
+  <xsl:template match="graphic|imagedata">
+    <img alt="{@srccredit}" src="{@fileref}"/>
+    <xsl:if test="@srccredit">
+      <ul>
+        <li><xsl:value-of select="@srccredit"/></li>
+      </ul>
+    </xsl:if>
+  </xsl:template>
+  <xsl:template match="simplelist">
+    <ul>
+      <xsl:apply-templates/>
+    </ul>
+  </xsl:template>
+  <xsl:template match="member">
+    <li><xsl:apply-templates/></li>
+  </xsl:template>
+  <xsl:template match="table">
+    <table>
+      <xsl:apply-templates/>
+    </table>
+  </xsl:template>
+  <xsl:template match="tgroup">
+    <xsl:apply-templates select="thead|tbody|tfoot"/>
+  </xsl:template>
+  <xsl:template match="thead">
+    <xsl:apply-templates mode="thead"/>
+  </xsl:template>
+  <xsl:template match="row" mode="thead">
+    <tr>
+      <xsl:apply-templates mode="thead"/>
+    </tr>
+  </xsl:template>
+  <xsl:template match="entry" mode="thead">
+    <th>
+      <xsl:apply-templates/>
+    </th>
+  </xsl:template>
+  <xsl:template match="row">
+    <tr>
+      <xsl:apply-templates/>
+    </tr>
+  </xsl:template>
+  <xsl:template match="tbody|tfoot">
+    <xsl:apply-templates/>
+  </xsl:template>
+  <xsl:template match="entry">
+    <td>
+      <xsl:apply-templates/>
+    </td>
+  </xsl:template>
+  <xsl:template match="trademark">
+    <xsl:apply-templates/><sup>TM</sup>
+  </xsl:template>
+  <xsl:template match="email">
+        &lt;<link>
+    <xsl:attribute name="href">
+      <xsl:value-of select="concat('mailto:',.)"/>
+    </xsl:attribute>
+    <xsl:apply-templates/></link>&gt;
+      </xsl:template>
+<!-- Filched from Norm Walsh's inline.xsl -->
+  <xsl:template match="sgmltag">
+    <xsl:call-template name="format.sgmltag"/>
+  </xsl:template>
+  <xsl:template name="format.sgmltag">
+    <xsl:param name="class">
+      <xsl:choose>
+        <xsl:when test="@class">
+          <xsl:value-of select="@class"/>
+        </xsl:when>
+        <xsl:otherwise>element</xsl:otherwise>
+      </xsl:choose>
+    </xsl:param><tt class="sgmltag-{$class}">
+    <xsl:choose>
+      <xsl:when test="$class='attribute'">
+        <xsl:apply-templates/>
+      </xsl:when>
+      <xsl:when test="$class='attvalue'">
+        <xsl:apply-templates/>
+      </xsl:when>
+      <xsl:when test="$class='element'">
+        <xsl:apply-templates/>
+      </xsl:when>
+      <xsl:when test="$class='endtag'">
+<xsl:text>&lt;/</xsl:text>
+        <xsl:apply-templates/>
+<xsl:text>&gt;</xsl:text>
+      </xsl:when>
+      <xsl:when test="$class='genentity'">
+<xsl:text>&amp;</xsl:text>
+        <xsl:apply-templates/>
+<xsl:text>;</xsl:text>
+      </xsl:when>
+      <xsl:when test="$class='numcharref'">
+<xsl:text>&amp;#</xsl:text>
+        <xsl:apply-templates/>
+<xsl:text>;</xsl:text>
+      </xsl:when>
+      <xsl:when test="$class='paramentity'">
+<xsl:text>%</xsl:text>
+        <xsl:apply-templates/>
+<xsl:text>;</xsl:text>
+      </xsl:when>
+      <xsl:when test="$class='pi'">
+<xsl:text>&lt;?</xsl:text>
+        <xsl:apply-templates/>
+<xsl:text>&gt;</xsl:text>
+      </xsl:when>
+      <xsl:when test="$class='xmlpi'">
+<xsl:text>&lt;?</xsl:text>
+        <xsl:apply-templates/>
+<xsl:text>?&gt;</xsl:text>
+      </xsl:when>
+      <xsl:when test="$class='starttag'">
+<xsl:text>&lt;</xsl:text>
+        <xsl:apply-templates/>
+<xsl:text>&gt;</xsl:text>
+      </xsl:when>
+      <xsl:when test="$class='emptytag'">
+<xsl:text>&lt;</xsl:text>
+        <xsl:apply-templates/>
+<xsl:text>/&gt;</xsl:text>
+      </xsl:when>
+      <xsl:when test="$class='sgmlcomment'">
+<xsl:text>&lt;!--</xsl:text>
+        <xsl:apply-templates/>
+<xsl:text>--&gt;</xsl:text>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:apply-templates/>
+      </xsl:otherwise>
+    </xsl:choose></tt>
+  </xsl:template>
+  <xsl:template match="xref">
+    <xsl:param name="linkend">
+      <xsl:value-of select="@linkend"/>
+    </xsl:param>
+    <xsl:param name="endterm">
+      <xsl:value-of select="@endterm"/>
+    </xsl:param>
+    <xsl:param name="xreflabelvalue">
+      <xsl:value-of select="@xreflabel"/>
+    </xsl:param>
+    <xsl:param name="linkendvalue">
+      <xsl:if test="$linkend">
+        <xsl:value-of select="//*[@id=$linkend]/title"/>
+      </xsl:if>
+    </xsl:param>
+    <xsl:param name="endtermvalue">
+      <xsl:if test="$endterm">
+        <xsl:value-of select="//*[@id=$endterm]"/>
+      </xsl:if>
+    </xsl:param>
+    <xsl:choose>
+      <xsl:when test="//xref[not(@endterm)]">
+        <xsl:element name="link">
+          <xsl:attribute name="href">
+<xsl:text>#</xsl:text>
+            <xsl:value-of select="$linkend"/>
+          </xsl:attribute>
+          <xsl:choose>
+            <xsl:when test="@xreflabel">
+              <xsl:value-of select="$xreflabelvalue"/>
             </xsl:when>
             <xsl:otherwise>
-                <xsl:element name="link">
-                    <xsl:attribute name="href">
-                        <xsl:text>#</xsl:text>
-                        <xsl:value-of select="$linkend"/>
-                    </xsl:attribute>
-                    <xsl:value-of select="$endtermvalue"/>
-                </xsl:element>
-                <xsl:apply-templates/>
+              <xsl:value-of select="$linkendvalue"/>
             </xsl:otherwise>
-        </xsl:choose>
-    </xsl:template>
-
-      <xsl:template match="node()|@*" priority="-1">
-            <xsl:copy>
-                  <xsl:apply-templates select="node()|@*"/>
-            </xsl:copy>
-      </xsl:template>
+          </xsl:choose>
+        </xsl:element>
+        <xsl:apply-templates/>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:element name="link">
+          <xsl:attribute name="href">
+<xsl:text>#</xsl:text>
+            <xsl:value-of select="$linkend"/>
+          </xsl:attribute>
+          <xsl:value-of select="$endtermvalue"/>
+        </xsl:element>
+        <xsl:apply-templates/>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:template>
+  <xsl:template match="node()|@*" priority="-1">
+    <xsl:copy>
+      <xsl:apply-templates select="node()|@*"/>
+    </xsl:copy>
+  </xsl:template>
 </xsl:stylesheet>
 <!-- vim: set ft=xml sw=6: -->

Modified: forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/content/xdocs/index.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/content/xdocs/index.xml?view=diff&rev=527038&r1=527037&r2=527038
==============================================================================
--- forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/content/xdocs/index.xml (original)
+++ forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/content/xdocs/index.xml Mon Apr  9 22:45:15 2007
@@ -16,29 +16,33 @@
   limitations under the License.
 -->
 <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN" "http://forrest.apache.org/dtd/document-v20.dtd">
-<document> 
-  <header> 
-    <title>Welcome to the RTF Plugin</title> 
-  </header> 
-  <body> 
+<document>
+  <header>
+    <title>Welcome to the RTF Plugin</title>
+  </header>
+  <body>
     <section>
       <title>Apache Forrest - RTF Plugin</title>
-      <p>This plugin allows Forrest files to be output in RTF format.</p>
+      <p>
+        This plugin allows Forrest files to be output in RTF format.
+      </p>
     </section>
-    
     <section>
       <title>How to Use the RTF Plugin</title>
-      <p>Currently, there is no auto-install feature for the RTF plugin
-      since it is pre-alpha. For installation instructions see the 
-      <code>README.txt</code> file.</p>
-      
-      <p>Once you have the RTF plugin installed, it is simply a case of
-      requesting a file with an rtf extension. For example,
-      <a href="samples/minimal.rtf">samples/minimal.rtf</a>.</p>
-      
-      <warning>Currently, the Forrest generated fo files are not working
-      in this RTF plugin. See the <a href="todo.html">To Do List</a> for more 
-      details.</warning>
+      <p>
+        Currently, there is no auto-install feature for the RTF plugin since it
+        is pre-alpha. For installation instructions see the
+        <code>README.txt</code> file.
+      </p>
+      <p>
+        Once you have the RTF plugin installed, it is simply a case of
+        requesting a file with an rtf extension. For example,
+        <a href="samples/minimal.rtf">samples/minimal.rtf</a>.
+      </p>
+      <warning>
+        Currently, the Forrest generated fo files are not working in this RTF
+        plugin. See the <a href="todo.html">To Do List</a> for more details.
+      </warning>
     </section>
   </body>
 </document>

Modified: forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/content/xdocs/site.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/content/xdocs/site.xml?view=diff&rev=527038&r1=527037&r2=527038
==============================================================================
--- forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/content/xdocs/site.xml (original)
+++ forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/content/xdocs/site.xml Mon Apr  9 22:45:15 2007
@@ -15,7 +15,6 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
-
 <!--
 Forrest site.xml
 
@@ -29,28 +28,23 @@
 
 See http://forrest.apache.org/docs/linking.html for more info
 -->
-
 <site label="MyProj" href="" xmlns="http://apache.org/forrest/linkmap/1.0" tab="">
-
   <about label="About">
     <index label="Index" href="index.html" description="Welcome to the Feed Plugin Example"/>
     <changes label="Changes" href="changes.html" description="History of Changes" />
     <todo label="Todo" href="todo.html" description="Todo List" />
   </about>
-  
   <samples label="Samples" href="samples/">
     <minimal label="Minimal" href="minimal.rtf" 
-      description="Minimal sample, generated from .fo directly" />     
+      description="Minimal sample, generated from .fo directly" />
   </samples>
-  
-  <!--
+<!--
   The href must be wholesite.html/pdf  You can change the labels and node names
   <all label="All">
     <whole_site_html label="Whole Site HTML" href="wholesite.html"/>
     <whole_site_pdf label="Whole Site PDF" href="wholesite.pdf"/>
   </all>
   -->
-
   <external-refs>
     <forrest href="http://forrest.apache.org/">
       <linking href="docs/linking.html"/>
@@ -61,5 +55,4 @@
     <cocoon href="http://cocoon.apache.org/"/>
     <xml.apache.org href="http://xml.apache.org/"/>
   </external-refs>
-
 </site>

Modified: forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/content/xdocs/tabs.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/content/xdocs/tabs.xml?view=diff&rev=527038&r1=527037&r2=527038
==============================================================================
--- forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/content/xdocs/tabs.xml (original)
+++ forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/content/xdocs/tabs.xml Mon Apr  9 22:45:15 2007
@@ -16,13 +16,11 @@
   limitations under the License.
 -->
 <!DOCTYPE tabs PUBLIC "-//APACHE//DTD Cocoon Documentation Tab V1.1//EN" "http://forrest.apache.org/dtd/tab-cocoon-v11.dtd">
-
 <tabs software="MyProj"
   title="MyProj"
   copyright="Foo"
   xmlns:xlink="http://www.w3.org/1999/xlink">
-
-  <!-- The rules for tabs are:
+<!-- The rules for tabs are:
     @dir will always have '/@indexfile' added.
     @indexfile gets appended to @dir if the tab is selected. Defaults to 'index.html'
     @href is not modified unless it is root-relative and obviously specifies a
@@ -32,12 +30,10 @@
    Tabs can be embedded to a depth of two. The second level of tabs will only 
     be displayed when their parent tab is selected.    
   -->
-
   <tab id="" label="Home" dir="" indexfile="index.html"/>
   <tab id="samples" label="Samples" dir="samples" indexfile="index.html"/>
-  <!-- Add new tabs here, eg:
+<!-- Add new tabs here, eg:
   <tab label="How-Tos" dir="community/howto/"/>
   <tab label="XML Site" dir="xml-site/"/>
   -->
-
 </tabs>

Modified: forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/skinconf.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/skinconf.xml?view=diff&rev=527038&r1=527037&r2=527038
==============================================================================
--- forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/skinconf.xml (original)
+++ forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/skinconf.xml Mon Apr  9 22:45:15 2007
@@ -15,16 +15,13 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
-
 <!DOCTYPE skinconfig PUBLIC "-//APACHE//DTD Skin Configuration V0.7-1//EN" "http://forrest.apache.org/dtd/skinconfig-v07-1.dtd"
 [
   <!ENTITY skinconf-common PUBLIC "-//Apache Forrest//ENTITIES Skin Configuration common plugins V0.7-1//EN" "">
 ]>
-
 <skinconfig>
   &skinconf-common;
 
   <project-name>Plugin: rtf output</project-name>
   <project-description>rtf-output plugin for Apache Forrest</project-description>
-
 </skinconfig>

Modified: forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/translations/menu_af.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/translations/menu_af.xml?view=diff&rev=527038&r1=527037&r2=527038
==============================================================================
--- forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/translations/menu_af.xml (original)
+++ forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/translations/menu_af.xml Mon Apr  9 22:45:15 2007
@@ -16,18 +16,18 @@
   limitations under the License.
 -->
 <catalogue xml:lang="af">
-    <message key="About">Aangaande</message>
-    <message key="Index">Inhoud</message>
-    <message key="Changes">Veranderinge</message>
-    <message key="Todo">Om te doen</message>
-    <message key="Samples">Voorbeelde</message>
-    <message key="Apache document">Apache dokument</message>
-    <message key="Static content">Statise Inhoud</message>
-    <message key="Linking">Linking</message>
-    <message key="Wiki page">Wiki bladsy</message>
-    <message key="ihtml page">Ihtml bladsy</message>
-    <message key="ehtml page">Ehtml bladsy</message>
-    <message key="FAQ">FAQ</message>
-    <message key="Simplifed Docbook">Vereenvoudigde Docbook</message>
-    <message key="XSP page">XSP bladsy</message>
+  <message key="About">Aangaande</message>
+  <message key="Index">Inhoud</message>
+  <message key="Changes">Veranderinge</message>
+  <message key="Todo">Om te doen</message>
+  <message key="Samples">Voorbeelde</message>
+  <message key="Apache document">Apache dokument</message>
+  <message key="Static content">Statise Inhoud</message>
+  <message key="Linking">Linking</message>
+  <message key="Wiki page">Wiki bladsy</message>
+  <message key="ihtml page">Ihtml bladsy</message>
+  <message key="ehtml page">Ehtml bladsy</message>
+  <message key="FAQ">FAQ</message>
+  <message key="Simplifed Docbook">Vereenvoudigde Docbook</message>
+  <message key="XSP page">XSP bladsy</message>
 </catalogue>

Modified: forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/translations/menu_es.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/translations/menu_es.xml?view=diff&rev=527038&r1=527037&r2=527038
==============================================================================
--- forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/translations/menu_es.xml (original)
+++ forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/translations/menu_es.xml Mon Apr  9 22:45:15 2007
@@ -16,18 +16,18 @@
   limitations under the License.
 -->
 <catalogue xml:lang="es">
-    <message key="About">Acerca de</message>
-    <message key="Index">Indice</message>
-    <message key="Changes">Cambios</message>
-    <message key="Todo">Tareas pendientes</message>
-    <message key="Samples">Ejemplos</message>
-    <message key="Apache document">Documento Apache</message>
-    <message key="Static content">Contenido Estático</message>
-    <message key="Linking">Linking</message>
-    <message key="Wiki page">Página Wiki</message>
-    <message key="ihtml page">Página ihtml</message>
-    <message key="ehtml page">Página ehtml</message>
-    <message key="FAQ">Preguntas Frecuentes</message>
-    <message key="Simplifed Docbook">Página Simplifed Docbook</message>
-    <message key="XSP page">Página XSP</message>
+  <message key="About">Acerca de</message>
+  <message key="Index">Indice</message>
+  <message key="Changes">Cambios</message>
+  <message key="Todo">Tareas pendientes</message>
+  <message key="Samples">Ejemplos</message>
+  <message key="Apache document">Documento Apache</message>
+  <message key="Static content">Contenido Estático</message>
+  <message key="Linking">Linking</message>
+  <message key="Wiki page">Página Wiki</message>
+  <message key="ihtml page">Página ihtml</message>
+  <message key="ehtml page">Página ehtml</message>
+  <message key="FAQ">Preguntas Frecuentes</message>
+  <message key="Simplifed Docbook">Página Simplifed Docbook</message>
+  <message key="XSP page">Página XSP</message>
 </catalogue>

Modified: forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/translations/menu_it.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/translations/menu_it.xml?view=diff&rev=527038&r1=527037&r2=527038
==============================================================================
--- forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/translations/menu_it.xml (original)
+++ forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/translations/menu_it.xml Mon Apr  9 22:45:15 2007
@@ -16,18 +16,18 @@
   limitations under the License.
 -->
 <catalogue xml:lang="it">
-    <message key="About">Riguardo a</message>
-    <message key="Index">Indice</message>
-    <message key="Changes">Cambiamenti</message>
-    <message key="Todo">Cose da fare</message>
-    <message key="Samples">Esempi</message>
-    <message key="Apache document">Apache document</message>
-    <message key="Static content">Contenuto Statico</message>
-    <message key="Linking">Linking</message>
-    <message key="Wiki page">Pagina Wiki</message>
-    <message key="ihtml page">Pagina ihtml</message>
-    <message key="ehtml page">Pagina ehtml</message>
-    <message key="FAQ">Domande frequenti</message>
-    <message key="Simplifed Docbook">Simplifed Docbook</message>
-    <message key="XSP page">Pagina XSP</message>
+  <message key="About">Riguardo a</message>
+  <message key="Index">Indice</message>
+  <message key="Changes">Cambiamenti</message>
+  <message key="Todo">Cose da fare</message>
+  <message key="Samples">Esempi</message>
+  <message key="Apache document">Apache document</message>
+  <message key="Static content">Contenuto Statico</message>
+  <message key="Linking">Linking</message>
+  <message key="Wiki page">Pagina Wiki</message>
+  <message key="ihtml page">Pagina ihtml</message>
+  <message key="ehtml page">Pagina ehtml</message>
+  <message key="FAQ">Domande frequenti</message>
+  <message key="Simplifed Docbook">Simplifed Docbook</message>
+  <message key="XSP page">Pagina XSP</message>
 </catalogue>

Modified: forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/translations/menu_no.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/translations/menu_no.xml?view=diff&rev=527038&r1=527037&r2=527038
==============================================================================
--- forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/translations/menu_no.xml (original)
+++ forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/translations/menu_no.xml Mon Apr  9 22:45:15 2007
@@ -16,18 +16,18 @@
   limitations under the License.
 -->
 <catalogue xml:lang="no">
-    <message key="About">Om</message>
-    <message key="Index">Indeks</message>
-    <message key="Changes">Endringer</message>
-    <message key="Todo">Oppgave liste</message>
-    <message key="Samples">Eksempler</message>
-    <message key="Apache document">Apache Dokument</message>
-    <message key="Static content">Statisk innhold</message>
-    <message key="Linking">Linking</message>
-    <message key="Wiki page">Wiki side</message>
-    <message key="ihtml page">ihtml side</message>
-    <message key="ehtml page">ehtml side</message>
-    <message key="FAQ">FAQ</message>
-    <message key="Simplifed Docbook">Simplifed Docbook</message>
-    <message key="XSP page">XSP side</message>
+  <message key="About">Om</message>
+  <message key="Index">Indeks</message>
+  <message key="Changes">Endringer</message>
+  <message key="Todo">Oppgave liste</message>
+  <message key="Samples">Eksempler</message>
+  <message key="Apache document">Apache Dokument</message>
+  <message key="Static content">Statisk innhold</message>
+  <message key="Linking">Linking</message>
+  <message key="Wiki page">Wiki side</message>
+  <message key="ihtml page">ihtml side</message>
+  <message key="ehtml page">ehtml side</message>
+  <message key="FAQ">FAQ</message>
+  <message key="Simplifed Docbook">Simplifed Docbook</message>
+  <message key="XSP page">XSP side</message>
 </catalogue>

Modified: forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/translations/menu_ru.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/translations/menu_ru.xml?view=diff&rev=527038&r1=527037&r2=527038
==============================================================================
--- forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/translations/menu_ru.xml (original)
+++ forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/translations/menu_ru.xml Mon Apr  9 22:45:15 2007
@@ -16,18 +16,18 @@
   limitations under the License.
 -->
 <catalogue xml:lang="ru">
-    <message key="About">О проекте</message>
-    <message key="Index">Содержание</message>
-    <message key="Changes">Изменения</message>
-    <message key="Todo">План</message>
-    <message key="Samples">Примеры</message>
-    <message key="Apache document">Страница документа Apache</message>
-    <message key="Static content">Статическое содержание</message>
-    <message key="Linking">Linking</message>
-    <message key="Wiki page">Страница Wiki</message>
-    <message key="ihtml page">Страница ihtml</message>
-    <message key="ehtml page">Страница ehtml</message>
-    <message key="FAQ">Вопросы/Ответы</message>
-    <message key="Simplifed Docbook">Docbook страница</message>
-    <message key="XSP page">XSP страница</message>
+  <message key="About">О проекте</message>
+  <message key="Index">Содержание</message>
+  <message key="Changes">Изменения</message>
+  <message key="Todo">План</message>
+  <message key="Samples">Примеры</message>
+  <message key="Apache document">Страница документа Apache</message>
+  <message key="Static content">Статическое содержание</message>
+  <message key="Linking">Linking</message>
+  <message key="Wiki page">Страница Wiki</message>
+  <message key="ihtml page">Страница ihtml</message>
+  <message key="ehtml page">Страница ehtml</message>
+  <message key="FAQ">Вопросы/Ответы</message>
+  <message key="Simplifed Docbook">Docbook страница</message>
+  <message key="XSP page">XSP страница</message>
 </catalogue>

Modified: forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/translations/menu_sk.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/translations/menu_sk.xml?view=diff&rev=527038&r1=527037&r2=527038
==============================================================================
--- forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/translations/menu_sk.xml (original)
+++ forrest/trunk/whiteboard/plugins/rtf-output/src/documentation/translations/menu_sk.xml Mon Apr  9 22:45:15 2007
@@ -16,18 +16,18 @@
   limitations under the License.
 -->
 <catalogue xml:lang="sk">
-    <message key="About">O programe</message>
-    <message key="Index">Zoznám</message>
-    <message key="Changes">Zmeny</message>
-    <message key="Todo">Úlohy</message>
-    <message key="Samples">Príklady</message>
-    <message key="Apache document">Apache Document</message>
-    <message key="Static content">Statický Obsah</message>
-    <message key="Linking">Linking</message>
-    <message key="Wiki page">Wiki stránka</message>
-    <message key="ihtml page">ihtml stránka</message>
-    <message key="ehtml page">ehtml stránka</message>
-    <message key="FAQ">Casté Otázky</message>
-    <message key="Simplifed Docbook">Simplifed Docbook stránka</message>
-    <message key="XSP page">XSP stránka</message>
+  <message key="About">O programe</message>
+  <message key="Index">Zoznám</message>
+  <message key="Changes">Zmeny</message>
+  <message key="Todo">Úlohy</message>
+  <message key="Samples">Príklady</message>
+  <message key="Apache document">Apache Document</message>
+  <message key="Static content">Statický Obsah</message>
+  <message key="Linking">Linking</message>
+  <message key="Wiki page">Wiki stránka</message>
+  <message key="ihtml page">ihtml stránka</message>
+  <message key="ehtml page">ehtml stránka</message>
+  <message key="FAQ">Casté Otázky</message>
+  <message key="Simplifed Docbook">Simplifed Docbook stránka</message>
+  <message key="XSP page">XSP stránka</message>
 </catalogue>

Modified: forrest/trunk/whiteboard/plugins/rtf-output/status.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/rtf-output/status.xml?view=diff&rev=527038&r1=527037&r2=527038
==============================================================================
--- forrest/trunk/whiteboard/plugins/rtf-output/status.xml (original)
+++ forrest/trunk/whiteboard/plugins/rtf-output/status.xml Mon Apr  9 22:45:15 2007
@@ -16,24 +16,21 @@
   limitations under the License.
 -->
 <status>
-
   <developers>
     <person name="Ross Gardler" email="rgardler@apache.org" id="RDG" />
     <person name="Volunteer needed" email="dev@forrest.apache.org" id="open"/>
   </developers>
-
-  <!-- Define here the Title of the Context you want to display in the Changes pages.
+<!-- Define here the Title of the Context you want to display in the Changes pages.
        id = the context value of actions
        title = Title of the Context
-  -->  
+  -->
   <contexts>
-   <context id="code" title="Changes to the Code Base"/>
-   <context id="docs" title="Changes to Documentation"/>
-   <context id="admin" title="Changes to Project Administration"/>
-   <context id="design" title="Changes to Design"/>
-   <context id="build" title="Changes to Build"/>
-  </contexts> 
-
+    <context id="code" title="Changes to the Code Base"/>
+    <context id="docs" title="Changes to Documentation"/>
+    <context id="admin" title="Changes to Project Administration"/>
+    <context id="design" title="Changes to Design"/>
+    <context id="build" title="Changes to Build"/>
+  </contexts>
   <changes>
     <release version="0.1" date="unreleased">
       <action dev="RDG" type="add" context="code">
@@ -41,7 +38,6 @@
       </action>
     </release>
   </changes>
-
   <todo>
     <actions priority="high">
       <action context="code" dev="RDG">
@@ -56,7 +52,5 @@
       directories added to the CLASSPATH for that execution
       </action>
     </actions>
-    
   </todo>
-
 </status>