forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r526511 - in /forrest/trunk/plugins/org.apache.forrest.plugin.output.POD: ./ resources/stylesheets/ src/documentation/ src/documentation/content/xdocs/
Date Sun, 08 Apr 2007 02:57:36 GMT
Author: crossley
Date: Sat Apr  7 19:57:35 2007
New Revision: 526511

URL: http://svn.apache.org/viewvc?view=rev&rev=526511
Log:
Whitespace changes only. Using xmlformat. Issue: FOR-644

Modified:
    forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/build.xml
    forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/locationmap.xml
    forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/output.xmap
    forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/resources/stylesheets/document-to-pod.xsl
    forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/src/documentation/content/xdocs/index.xml
    forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/src/documentation/content/xdocs/site.xml
    forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/src/documentation/content/xdocs/tabs.xml
    forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/src/documentation/skinconf.xml
    forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/status.xml

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/build.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/build.xml?view=diff&rev=526511&r1=526510&r2=526511
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/build.xml (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/build.xml Sat Apr  7 19:57:35
2007
@@ -16,7 +16,6 @@
   limitations under the License.
 -->
 <project default="docs" basedir="." name="Forrest plugin build file">
-
   <property name="plugin-name" value="org.apache.forrest.plugin.output.POD"/>
   <property name="forrest.version" value="0.8"/>
   <property name="type" value="output"/>
@@ -25,10 +24,8 @@
   <property name="author" value="Apache Forrest Project"/>
   <property name="websiteURL" value="http://forrest.apache.org/pluginDocs/plugins_0_80/org.apache.forrest.plugin.output.POD/"/>
   <property name="downloadURL" value="http://forrest.apache.org/plugins/"/>
-
   <import file="../build.xml"/>
-  
-  <!-- Add any additional installation work here in the build target, for example:
+<!-- Add any additional installation work here in the build target, for example:
   <target name="build"
           description="Extract the tools">
      <unzip dest="${plugins.localDeploy-dir}/${plugin-name}/resources">
@@ -39,5 +36,3 @@
   </target>
   -->
 </project>
-  
-  

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/locationmap.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/locationmap.xml?view=diff&rev=526511&r1=526510&r2=526511
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/locationmap.xml (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/locationmap.xml Sat Apr  7
19:57:35 2007
@@ -16,7 +16,6 @@
   limitations under the License.
 -->
 <locationmap xmlns="http://apache.org/forrest/locationmap/1.0">
-
   <components>
     <matchers default="lm">
       <matcher 
@@ -24,14 +23,13 @@
         src="org.apache.forrest.locationmap.WildcardLocationMapHintMatcher"/>
     </matchers>
     <selectors default="exists">
-          <selector name="exists" logger="sitemap.selector.exists"  
+      <selector name="exists" logger="sitemap.selector.exists"  
                     src="org.apache.forrest.sourceexists.SourceExistsSelector" />
     </selectors>
   </components>
-  
-  <locator>  
+  <locator>
     <match pattern="pod.transform.*.*">
-        <location src="resources/stylesheets/{1}-to-{2}.xsl" />
+      <location src="resources/stylesheets/{1}-to-{2}.xsl" />
     </match>
   </locator>
 </locationmap>

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/output.xmap
URL: http://svn.apache.org/viewvc/forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/output.xmap?view=diff&rev=526511&r1=526510&r2=526511
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/output.xmap (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/output.xmap Sat Apr  7 19:57:35
2007
@@ -15,21 +15,16 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
-
-  <!-- ============================================================ -->
-  <!-- Plain Old Documentation (POD)                                -->
-  <!-- This plugin performs the transformation of the Forrest       -->
-  <!-- intermediate format (currently document-v*, soon to be       -->
-  <!-- XHTML) to Perl POD format.                                   -->
-  <!-- ============================================================ -->
-
+<!-- ============================================================ -->
+<!-- Plain Old Documentation (POD)                                -->
+<!-- This plugin performs the transformation of the Forrest       -->
+<!-- intermediate format (currently document-v*, soon to be       -->
+<!-- XHTML) to Perl POD format.                                   -->
+<!-- ============================================================ -->
 <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
-
-<map:pipelines>
-
-  <map:pipeline>
-  
-      <!-- Plain Old Documentation -->
+  <map:pipelines>
+    <map:pipeline>
+<!-- Plain Old Documentation -->
       <map:match type="regexp" pattern="^(.*?)([^/]*).pod$">
         <map:aggregate element="site">
           <map:part src="cocoon://skinconf.xml"/>
@@ -39,12 +34,10 @@
         <map:transform type="linkrewriter" src="cocoon://{1}linkmap-{2}.pod"/>
         <map:transform src="{lm:transform.html.broken-links}"/>
         <map:transform src="{lm:pod.transform.document.pod}">
-            <map:parameter name="docname" value="{2}"/>
+          <map:parameter name="docname" value="{2}"/>
         </map:transform>
         <map:serialize type="text"/>
       </map:match>
-
-  </map:pipeline>
-</map:pipelines>
-
+    </map:pipeline>
+  </map:pipelines>
 </map:sitemap>

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/resources/stylesheets/document-to-pod.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/resources/stylesheets/document-to-pod.xsl?view=diff&rev=526511&r1=526510&r2=526511
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/resources/stylesheets/document-to-pod.xsl
(original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/resources/stylesheets/document-to-pod.xsl
Sat Apr  7 19:57:35 2007
@@ -15,51 +15,43 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
-
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                 xmlns:fo="http://www.w3.org/1999/XSL/Format"
                 version="1.0">
-
   <xsl:param name="docname">docname parameter from sitemap</xsl:param>
-
   <xsl:template match="/">
     <xsl:apply-templates select="//document"/>
   </xsl:template>
-
   <xsl:template match="document">
-    <xsl:text>
+<xsl:text>
 =head1 NAME
 
 </xsl:text>
-    <xsl:value-of select="$docname"/><xsl:text> - </xsl:text>
+    <xsl:value-of select="$docname"/>
+<xsl:text> - </xsl:text>
     <xsl:if test="//document/header/title">
       <xsl:value-of select="//document/header/title"/>
     </xsl:if>
     <xsl:call-template name="line-blank"/>
     <xsl:apply-templates select="body"/>
   </xsl:template>
-
   <xsl:template match="body">
-    <xsl:text>
+<xsl:text>
 =head1 DESCRIPTION
 
 </xsl:text>
     <xsl:apply-templates/>
     <xsl:call-template name="line-blank"/>
   </xsl:template>
-
   <xsl:template match="source">
     <xsl:call-template name="emit-verbatim">
       <xsl:with-param name="text" select="."/>
     </xsl:call-template>
-
     <xsl:call-template name="line-blank"/>
   </xsl:template>
-
   <xsl:template name="emit-verbatim">
     <xsl:param name="text"/>
-
-    <xsl:text> </xsl:text>
+<xsl:text> </xsl:text>
     <xsl:choose>
       <xsl:when test="contains( $text, '&#xa;')">
         <xsl:value-of select="substring-before( $text, '&#xa;' )"/>
@@ -74,11 +66,9 @@
       </xsl:otherwise>
     </xsl:choose>
   </xsl:template>
-
   <xsl:template name="max-len">
     <xsl:param name="maxlen">0</xsl:param>
     <xsl:param name="text"/>
-
     <xsl:variable name="pre-newline">
       <xsl:choose>
         <xsl:when test="contains( $text, '&#xa;' )">
@@ -89,11 +79,9 @@
         </xsl:otherwise>
       </xsl:choose>
     </xsl:variable>
-
     <xsl:variable name="post-newline">
       <xsl:value-of select="substring-after( $text, '&#xa;' )"/>
     </xsl:variable>
-
     <xsl:variable name="len">
       <xsl:choose>
         <xsl:when test="string-length( $pre-newline ) > $maxlen">
@@ -104,7 +92,6 @@
         </xsl:otherwise>
       </xsl:choose>
     </xsl:variable>
-
     <xsl:choose>
       <xsl:when test="$post-newline=''">
         <xsl:value-of select="$len"/>
@@ -117,9 +104,8 @@
       </xsl:otherwise>
     </xsl:choose>
   </xsl:template>
-
   <xsl:template match="abstract">
-    <xsl:text>
+<xsl:text>
 
 =head1 ABSTRACT
 
@@ -127,18 +113,17 @@
     <xsl:apply-templates/>
     <xsl:call-template name="line-blank"/>
   </xsl:template>
-
   <xsl:template match="section">
-    <!-- The sections become the main body of the POD, starting under 
+<!-- The sections become the main body of the POD, starting under 
          a =head1 DESCRIPTION.  Therefore, their begining =head number
          is 2.
     -->
     <xsl:param name="level">2</xsl:param>
-    <xsl:text>
+<xsl:text>
 
 =head</xsl:text>
     <xsl:value-of select="$level"/>
-    <xsl:text> </xsl:text>
+<xsl:text> </xsl:text>
     <xsl:value-of select="title"/>
     <xsl:call-template name="line-blank"/>
     <xsl:apply-templates>
@@ -146,32 +131,25 @@
     </xsl:apply-templates>
     <xsl:call-template name="line-blank"/>
   </xsl:template>
-
   <xsl:template match="section/title"/>
-
   <xsl:template match="subtitle"/>
-
   <xsl:template match="authors"/>
-
   <xsl:template match="p[@class='quote']">
-    <xsl:text>"</xsl:text>
+<xsl:text>"</xsl:text>
     <xsl:apply-templates/>
-    <xsl:text>"</xsl:text>
+<xsl:text>"</xsl:text>
     <xsl:call-template name="line-blank"/>
   </xsl:template>
-  
   <xsl:template match="p">
     <xsl:apply-templates/>
     <xsl:call-template name="line-blank"/>
   </xsl:template>
-
   <xsl:template match="p" mode="in-table">
     <xsl:apply-templates mode="in-table"/>
     <xsl:call-template name="line-blank"/>
   </xsl:template>
-
   <xsl:template match="note|warning|fixme">
-    <!-- Set up the proper label -->
+<!-- Set up the proper label -->
     <xsl:variable name="label">
       <xsl:choose>
         <xsl:when test="@label!=''">
@@ -180,180 +158,165 @@
         <xsl:otherwise>
           <xsl:choose>
             <xsl:when test="local-name()='note'">
-              <xsl:text>Note:</xsl:text>
+<xsl:text>Note:</xsl:text>
             </xsl:when>
             <xsl:when test="local-name()='warning'">
-              <xsl:text>Warning:</xsl:text>
+<xsl:text>Warning:</xsl:text>
             </xsl:when>
             <xsl:when test="local-name()='fixme'">
-              <xsl:text>Fixme</xsl:text>
+<xsl:text>Fixme</xsl:text>
               <xsl:if test="@author">
-                <xsl:text> (</xsl:text>
+<xsl:text> (</xsl:text>
                 <xsl:value-of select="@author"/>
-                <xsl:text>)</xsl:text>
+<xsl:text>)</xsl:text>
               </xsl:if>
-              <xsl:text>:</xsl:text>
+<xsl:text>:</xsl:text>
             </xsl:when>
             <xsl:otherwise>
               <xsl:value-of select="local-name()"/>
-              <xsl:text>:</xsl:text>
+<xsl:text>:</xsl:text>
             </xsl:otherwise>
           </xsl:choose>
         </xsl:otherwise>
       </xsl:choose>
     </xsl:variable>
-
     <xsl:variable name="dashes">
       <xsl:call-template name="line-dashed"/>
     </xsl:variable>
-
     <xsl:variable name="separator">
       <xsl:value-of select="concat( ' ', substring( $dashes, 1, 60 ) )"/>
     </xsl:variable>
-
-    <xsl:text>B&lt;</xsl:text>
+<xsl:text>B&lt;</xsl:text>
     <xsl:value-of select="$label"/>
-    <xsl:text>&gt;</xsl:text>
-
+<xsl:text>&gt;</xsl:text>
     <xsl:call-template name="line-blank"/>
     <xsl:value-of select="$separator"/>
     <xsl:call-template name="line-blank"/>
-    <xsl:text>
+<xsl:text>
 =over 4</xsl:text>
     <xsl:call-template name="line-blank"/>
     <xsl:apply-templates/>
     <xsl:call-template name="line-blank"/>
-    <xsl:text>
+<xsl:text>
 =back</xsl:text>
     <xsl:call-template name="line-blank"/>
     <xsl:value-of select="$separator"/>
     <xsl:call-template name="line-blank"/>
   </xsl:template>
-
   <xsl:template match="note" mode="in-table">
     <xsl:apply-templates mode="in-table"/>
     <xsl:call-template name="line-blank"/>
   </xsl:template>
-
   <xsl:template match="ol|ul">
     <xsl:call-template name="line-blank"/>
-    <xsl:text>
+<xsl:text>
 =over 4
 </xsl:text>
     <xsl:call-template name="line-blank"/>
     <xsl:apply-templates select="li"/>
-    <xsl:text>
+<xsl:text>
 =back
 </xsl:text>
     <xsl:call-template name="line-blank"/>
   </xsl:template>
-
   <xsl:template match="ol|ul" mode="in-table">
     <xsl:apply-templates select="li" mode="in-table"/>
     <xsl:call-template name="line-blank"/>
   </xsl:template>
-
   <xsl:template match="ol/li">
-    <xsl:text>
+<xsl:text>
 =item </xsl:text>
-    <xsl:value-of select="position()"/><xsl:text>.</xsl:text>
+    <xsl:value-of select="position()"/>
+<xsl:text>.</xsl:text>
     <xsl:call-template name="line-blank"/>
     <xsl:apply-templates/>
     <xsl:call-template name="line-blank"/>
   </xsl:template>
-
   <xsl:template match="ol/li" mode="in-table">
     <xsl:apply-templates mode="in-table"/>
     <xsl:call-template name="line-blank"/>
   </xsl:template>
-
   <xsl:template match="ul/li">
-    <xsl:text>
+<xsl:text>
 =item *
 </xsl:text>
     <xsl:call-template name="line-blank"/>
     <xsl:apply-templates/>
     <xsl:call-template name="line-blank"/>
   </xsl:template>
-
   <xsl:template match="ul/li" mode="in-table">
     <xsl:apply-templates mode="in-table"/>
     <xsl:call-template name="line-blank"/>
   </xsl:template>
-
   <xsl:template match="dl">
     <xsl:call-template name="line-blank"/>
     <xsl:apply-templates/>
   </xsl:template>
-
   <xsl:template match="dt">
-    <xsl:text>B&lt;</xsl:text>
+<xsl:text>B&lt;</xsl:text>
     <xsl:apply-templates/>
-    <xsl:text>&gt;</xsl:text>
+<xsl:text>&gt;</xsl:text>
   </xsl:template>
-
   <xsl:template match="dd">
     <xsl:call-template name="line-blank"/>
-    <xsl:text>
+<xsl:text>
 =over 4</xsl:text>
     <xsl:call-template name="line-blank"/>
     <xsl:apply-templates/>
     <xsl:call-template name="line-blank"/>
-    <xsl:text>
+<xsl:text>
 =back</xsl:text>
     <xsl:call-template name="line-blank"/>
   </xsl:template>
-
   <xsl:template match="strong">
     <xsl:variable name="tmp">
-      <xsl:text>B&lt;</xsl:text><xsl:apply-templates/><xsl:text>&gt;</xsl:text>
+<xsl:text>B&lt;</xsl:text>
+      <xsl:apply-templates/>
+<xsl:text>&gt;</xsl:text>
     </xsl:variable>
     <xsl:value-of select="concat( normalize-space( $tmp ), ' ' )"/>
   </xsl:template>
-
   <xsl:template match="strong" mode="in-table">
     <xsl:apply-templates mode="in-table"/>
   </xsl:template>
-
   <xsl:template match="em">
     <xsl:variable name="tmp">
-      <xsl:text>I&lt;</xsl:text><xsl:apply-templates/><xsl:text>&gt;</xsl:text>
+<xsl:text>I&lt;</xsl:text>
+      <xsl:apply-templates/>
+<xsl:text>&gt;</xsl:text>
     </xsl:variable>
     <xsl:value-of select="concat( normalize-space( $tmp ), ' ' )"/>
   </xsl:template>
-
   <xsl:template match="em" mode="in-table">
     <xsl:apply-templates mode="in-table"/>
   </xsl:template>
-
   <xsl:template match="code[@class='filename']">
     <xsl:variable name="tmp">
-      <xsl:text>F&lt;</xsl:text><xsl:apply-templates/><xsl:text>&gt;</xsl:text>
+<xsl:text>F&lt;</xsl:text>
+      <xsl:apply-templates/>
+<xsl:text>&gt;</xsl:text>
     </xsl:variable>
     <xsl:value-of select="concat( normalize-space( $tmp ), ' ' )"/>
   </xsl:template>
-
   <xsl:template match="code">
     <xsl:variable name="tmp">
-      <xsl:text>C&lt;</xsl:text><xsl:apply-templates/><xsl:text>&gt;</xsl:text>
+<xsl:text>C&lt;</xsl:text>
+      <xsl:apply-templates/>
+<xsl:text>&gt;</xsl:text>
     </xsl:variable>
     <xsl:value-of select="concat( normalize-space( $tmp ), ' ' )"/>
   </xsl:template>
-
   <xsl:template match="code" mode="in-table">
     <xsl:apply-templates mode="in-table"/>
   </xsl:template>
-
   <xsl:template match="link|jump|fork">
-
-    <!-- rewrite the rewritten link to make it palatable for POD -->
+<!-- rewrite the rewritten link to make it palatable for POD -->
     <xsl:variable name="podlink-text">
       <xsl:value-of select="."/>
       <xsl:if test=".!=''">
-        <xsl:text>|</xsl:text>
+<xsl:text>|</xsl:text>
       </xsl:if>
     </xsl:variable>
-
     <xsl:variable name="podlink-tmp">
       <xsl:choose>
         <xsl:when test="contains( @href, '#' )">
@@ -364,9 +327,8 @@
         </xsl:otherwise>
       </xsl:choose>
     </xsl:variable>
-
     <xsl:variable name="podlink-link">
-      <!-- Remove the '.html' suffix if we are a local URL -->
+<!-- Remove the '.html' suffix if we are a local URL -->
       <xsl:choose>
         <xsl:when test="starts-with( $podlink-tmp, 'http:' )">
           <xsl:value-of select="$podlink-tmp"/>
@@ -386,20 +348,17 @@
         </xsl:otherwise>
       </xsl:choose>
     </xsl:variable>
-
     <xsl:variable name="podlink-anchor">
       <xsl:if test="substring-after( @href, '#' )!=''">
-        <xsl:text>/"</xsl:text>
+<xsl:text>/"</xsl:text>
         <xsl:value-of select="substring-after( @href, '#' )"/>
-        <xsl:text>"</xsl:text>
+<xsl:text>"</xsl:text>
       </xsl:if>
     </xsl:variable>
-
-    <xsl:text>L&lt;</xsl:text>
+<xsl:text>L&lt;</xsl:text>
     <xsl:value-of select="concat( $podlink-text, $podlink-link, $podlink-anchor )"/>
-    <xsl:text>&gt; </xsl:text>
+<xsl:text>&gt; </xsl:text>
   </xsl:template>
-
   <xsl:template match="link|jump|fork" mode="in-table">
     <xsl:choose>
       <xsl:when test="contains( @href, '.html' )">
@@ -410,7 +369,6 @@
       </xsl:otherwise>
     </xsl:choose>
   </xsl:template>
-
   <xsl:template match="figure|img|icon">
     <xsl:variable name="as-text">
       <xsl:choose>
@@ -422,13 +380,10 @@
         </xsl:otherwise>
       </xsl:choose>
     </xsl:variable>
-
     <xsl:value-of select="$as-text"/>
-
   </xsl:template>
-
-  <!-- ==================================================================== -->
-  <!--  Table Handling
+<!-- ==================================================================== -->
+<!--  Table Handling
 
         The column widths are calculated automatically based on a maximum
         width, "maxwidth" (default 74),  that the table can be .  This maxiumum
@@ -443,8 +398,7 @@
         does a default indentation of 4 for verbatim text.  This value is used
         in the calculation of the column widths.
   -->
-  <!-- ==================================================================== -->
-
+<!-- ==================================================================== -->
   <xsl:template match="table">
     <xsl:param name="maxwidth">74</xsl:param>
     <xsl:param name="indent">4</xsl:param>
@@ -452,11 +406,9 @@
     <xsl:variable name="cols">
       <xsl:value-of select="count(tr[1]/th|tr[1]/td)"/>
     </xsl:variable>
-
     <xsl:variable name="calc-colwidth">
       <xsl:value-of select="floor(($maxwidth - $indent - $cols) div $cols) - 1"/>
     </xsl:variable>
-
     <xsl:variable name="colwidth">
       <xsl:choose>
         <xsl:when test="$mincolwidth > $calc-colwidth">
@@ -467,42 +419,33 @@
         </xsl:otherwise>
       </xsl:choose>
     </xsl:variable>
-
-    <xsl:text> </xsl:text>
+<xsl:text> </xsl:text>
     <xsl:apply-templates select="caption" mode="in-table"/>
     <xsl:call-template name="cr"/>
     <xsl:apply-templates select="tr" mode="in-table">
       <xsl:with-param name="colwidth" select="$colwidth"/>
       <xsl:with-param name="cols" select="$cols"/>
     </xsl:apply-templates>
-
     <xsl:call-template name="line-blank"/>
-
   </xsl:template>
-
   <xsl:template match="table" mode="in-table">
-    <!-- We can't handle nested tables correctly yet.  As a very
+<!-- We can't handle nested tables correctly yet.  As a very
          simplistic interim measure, just emit the value of the
          entire table node. -->
     <xsl:value-of select="."/>
   </xsl:template>
-
   <xsl:template match="caption" mode="in-table">
     <xsl:apply-templates/>
   </xsl:template>
-    
   <xsl:template match="tr" mode="in-table">
     <xsl:param name="colwidth"/>
     <xsl:param name="cols"/>
-
     <xsl:variable name="dashes">
       <xsl:call-template name="line-dashed"/>
     </xsl:variable>
-
     <xsl:variable name="cell-border">
       <xsl:value-of select="substring( $dashes, 1, $colwidth )"/>
     </xsl:variable>
-    
     <xsl:variable name="row-border">
       <xsl:call-template name="make-row-border">
         <xsl:with-param name="col">1</xsl:with-param>
@@ -511,17 +454,13 @@
         <xsl:with-param name="cell-border" select="$cell-border"/>
       </xsl:call-template>
     </xsl:variable>
-
     <xsl:value-of select="$row-border"/>
     <xsl:call-template name="cr"/>
-
-    <!-- Can we handle a dynamic number of columns?  Not sure how to
+<!-- Can we handle a dynamic number of columns?  Not sure how to
          do that, so just limit the number we can handle to some reasonable
          maximum.  Currently, that maximum is 10 -->
-
-    <!-- For the current row, grab the content for each cell in this row.
+<!-- For the current row, grab the content for each cell in this row.
          The content will be fit by the "handle-cell-content" template.  -->
-
     <xsl:variable name="col-1">
       <xsl:if test="(th|td)[1]">
         <xsl:variable name="tmp">
@@ -632,13 +571,11 @@
         </xsl:call-template>
       </xsl:if>
     </xsl:variable>
-
-    <!--
+<!--
       Okay, so we've got the contents of the cells for a single row.
       Let's pass this off to emit-table-row where we can extract
       $colwidth from each column and emit until we're out of content
     -->
-
     <xsl:call-template name="emit-table-row">
       <xsl:with-param name="maxcols" select="$cols"/>
       <xsl:with-param name="colwidth" select="$colwidth"/>
@@ -653,40 +590,35 @@
       <xsl:with-param name="col-9" select="$col-9"/>
       <xsl:with-param name="col-10" select="$col-10"/>
     </xsl:call-template>
-
     <xsl:if test="position()=last()">
       <xsl:value-of select="$row-border"/>
       <xsl:call-template name="cr"/>
     </xsl:if>
-
   </xsl:template>
-
   <xsl:template match="td|th" mode="in-table">
     <xsl:apply-templates mode="in-table"/>
   </xsl:template>
-
-  <!-- 120 dashes.  Used in building horizontal row borders -->
+<!-- 120 dashes.  Used in building horizontal row borders -->
   <xsl:template name="line-dashed">
     <xsl:variable name="char-20">--------------------</xsl:variable>
     <xsl:value-of select="concat($char-20, $char-20, $char-20, $char-20, $char-20, $char-20)"/>
   </xsl:template>
-
-  <!-- 120 spaces Used in building columns in tables.-->
+<!-- 120 spaces Used in building columns in tables.-->
   <xsl:template name="line-spaces">
-    <xsl:variable name="char-20"><xsl:text>                    </xsl:text></xsl:variable>
+    <xsl:variable name="char-20">
+<xsl:text>                    </xsl:text>
+    </xsl:variable>
     <xsl:value-of select="concat($char-20, $char-20, $char-20, $char-20, $char-20, $char-20)"/>
   </xsl:template>
-
   <xsl:template name="make-row-border">
     <xsl:param name="col"/>
     <xsl:param name="colwidth"/>
     <xsl:param name="maxcols"/>
     <xsl:param name="cell-border"/>
     <xsl:param name="border">+</xsl:param>
-
     <xsl:choose>
       <xsl:when test="$col > $maxcols">
-        <!-- Space at beginning to tell POD to emit as is -->
+<!-- Space at beginning to tell POD to emit as is -->
         <xsl:value-of select="concat( ' ', $border )"/>
       </xsl:when>
       <xsl:otherwise>
@@ -700,14 +632,12 @@
       </xsl:otherwise>
     </xsl:choose>
   </xsl:template>
-
-  <!-- emit-table-row
+<!-- emit-table-row
 
        Recursive template to keep extracting content from each of the
        columns, emit a single line in each cell, until all the content
        is used up
   -->
-
   <xsl:template name="emit-table-row">
     <xsl:param name="maxcols"/>
     <xsl:param name="colwidth"/>
@@ -721,85 +651,65 @@
     <xsl:param name="col-8"/>
     <xsl:param name="col-9"/>
     <xsl:param name="col-10"/>
-
-    <xsl:text> | </xsl:text>
+<xsl:text> | </xsl:text>
     <xsl:call-template name="make-cell">
       <xsl:with-param name="content" select="$col-1"/>
       <xsl:with-param name="colwidth" select="$colwidth"/>
     </xsl:call-template>
-
     <xsl:if test="$maxcols > 1">
-
-      <xsl:text> | </xsl:text>
+<xsl:text> | </xsl:text>
       <xsl:call-template name="make-cell">
         <xsl:with-param name="content" select="$col-2"/>
         <xsl:with-param name="colwidth" select="$colwidth"/>
       </xsl:call-template>
-
       <xsl:if test="$maxcols > 2">
-
-        <xsl:text> | </xsl:text>
+<xsl:text> | </xsl:text>
         <xsl:call-template name="make-cell">
           <xsl:with-param name="content" select="$col-3"/>
           <xsl:with-param name="colwidth" select="$colwidth"/>
         </xsl:call-template>
-
         <xsl:if test="$maxcols > 3">
-
-          <xsl:text> | </xsl:text>
+<xsl:text> | </xsl:text>
           <xsl:call-template name="make-cell">
             <xsl:with-param name="content" select="$col-4"/>
             <xsl:with-param name="colwidth" select="$colwidth"/>
           </xsl:call-template>
-
           <xsl:if test="$maxcols > 4">
-
-            <xsl:text> | </xsl:text>
+<xsl:text> | </xsl:text>
             <xsl:call-template name="make-cell">
               <xsl:with-param name="content" select="$col-5"/>
               <xsl:with-param name="colwidth" select="$colwidth"/>
             </xsl:call-template>
-
             <xsl:if test="$maxcols > 5">
-
-              <xsl:text> | </xsl:text>
+<xsl:text> | </xsl:text>
               <xsl:call-template name="make-cell">
                 <xsl:with-param name="content" select="$col-6"/>
                 <xsl:with-param name="colwidth" select="$colwidth"/>
               </xsl:call-template>
-
               <xsl:if test="$maxcols > 6">
-
-                <xsl:text> | </xsl:text>
+<xsl:text> | </xsl:text>
                 <xsl:call-template name="make-cell">
                   <xsl:with-param name="content" select="$col-7"/>
                   <xsl:with-param name="colwidth" select="$colwidth"/>
                 </xsl:call-template>
-
                 <xsl:if test="$maxcols > 7">
-
-                  <xsl:text> | </xsl:text>
+<xsl:text> | </xsl:text>
                   <xsl:call-template name="make-cell">
                     <xsl:with-param name="content" select="$col-8"/>
                     <xsl:with-param name="colwidth" select="$colwidth"/>
                   </xsl:call-template>
-
                   <xsl:if test="$maxcols > 8">
-
-                    <xsl:text> | </xsl:text>
+<xsl:text> | </xsl:text>
                     <xsl:call-template name="make-cell">
                       <xsl:with-param name="content" select="$col-9"/>
                       <xsl:with-param name="colwidth" select="$colwidth"/>
                     </xsl:call-template>
-
                     <xsl:if test="$maxcols > 9">
-
-                      <xsl:text> | </xsl:text>
+<xsl:text> | </xsl:text>
                       <xsl:call-template name="make-cell">
                         <xsl:with-param name="content" select="$col-10"/>
                         <xsl:with-param name="colwidth" select="$colwidth"/>
                       </xsl:call-template>
-
                     </xsl:if>
                   </xsl:if>
                 </xsl:if>
@@ -809,46 +719,42 @@
         </xsl:if>
       </xsl:if>
     </xsl:if>
-
-    <xsl:text> |</xsl:text>
+<xsl:text> |</xsl:text>
     <xsl:call-template name="cr"/>
-
-    <!-- Determine whether there is any content left in any of the
+<!-- Determine whether there is any content left in any of the
          cells on this row.  If so, we need to call emit-table-row again -->
-
     <xsl:variable name="content-remains">
       <xsl:if test="string-length(substring($col-1, $colwidth - 2)) > 1">
-        <xsl:text>1</xsl:text>
+<xsl:text>1</xsl:text>
       </xsl:if>
       <xsl:if test="string-length(substring($col-2, $colwidth - 2)) > 1">
-        <xsl:text>1</xsl:text>
+<xsl:text>1</xsl:text>
       </xsl:if>
       <xsl:if test="string-length(substring($col-3, $colwidth - 2)) > 1">
-        <xsl:text>1</xsl:text>
+<xsl:text>1</xsl:text>
       </xsl:if>
       <xsl:if test="string-length(substring($col-4, $colwidth - 2)) > 1">
-        <xsl:text>1</xsl:text>
+<xsl:text>1</xsl:text>
       </xsl:if>
       <xsl:if test="string-length(substring($col-5, $colwidth - 2)) > 1">
-        <xsl:text>1</xsl:text>
+<xsl:text>1</xsl:text>
       </xsl:if>
       <xsl:if test="string-length(substring($col-6, $colwidth - 2)) > 1">
-        <xsl:text>1</xsl:text>
+<xsl:text>1</xsl:text>
       </xsl:if>
       <xsl:if test="string-length(substring($col-7, $colwidth - 2)) > 1">
-        <xsl:text>1</xsl:text>
+<xsl:text>1</xsl:text>
       </xsl:if>
       <xsl:if test="string-length(substring($col-8, $colwidth - 2)) > 1">
-        <xsl:text>1</xsl:text>
+<xsl:text>1</xsl:text>
       </xsl:if>
       <xsl:if test="string-length(substring($col-9, $colwidth - 2)) > 1">
-        <xsl:text>1</xsl:text>
+<xsl:text>1</xsl:text>
       </xsl:if>
       <xsl:if test="string-length(substring($col-10, $colwidth - 2)) > 1">
-        <xsl:text>1</xsl:text>
+<xsl:text>1</xsl:text>
       </xsl:if>
     </xsl:variable>
-
     <xsl:if test="string-length($content-remains) > 0">
       <xsl:call-template name="emit-table-row">
         <xsl:with-param name="maxcols" select="$maxcols"/>
@@ -875,24 +781,18 @@
             select="substring( $col-10, $colwidth - 2 + 1 )"/>
       </xsl:call-template>
     </xsl:if>
-
   </xsl:template>
-
   <xsl:template name="make-cell">
     <xsl:param name="content"/>
     <xsl:param name="colwidth"/>
-
     <xsl:variable name="padding">
       <xsl:call-template name="line-spaces"/>
     </xsl:variable>
-
     <xsl:variable name="cell">
       <xsl:choose>
         <xsl:when test="$colwidth - 2 > string-length($content)">
-
-          <!-- The subtraction of 2 is for the border padding.  It is reflected
+<!-- The subtraction of 2 is for the border padding.  It is reflected
                in the call to make-cell in the "content" parameter -->
-
           <xsl:value-of select="concat($content,
                substring($padding,1,$colwidth - 2 - string-length($content)))"/>
         </xsl:when>
@@ -901,26 +801,21 @@
         </xsl:otherwise>
       </xsl:choose>
     </xsl:variable>
-
     <xsl:value-of select="$cell"/>
   </xsl:template>
-
-  <!--  handle-cell-content
+<!--  handle-cell-content
 
         Replaces any new-line characters found in the content with 
         an appropriate number of spaces to fill out the cell to the
         end of the cell and another number of spaces to fill out a 
         "blank" line.
   -->
-
   <xsl:template name="handle-cell-content">
     <xsl:param name="text"/>
     <xsl:param name="colwidth"/>
-
     <xsl:variable name="spaces">
       <xsl:call-template name="line-spaces"/>
     </xsl:variable>
-
     <xsl:choose>
       <xsl:when test="contains( $text, '&#xa;' )">
         <xsl:variable name="text-before">
@@ -940,57 +835,45 @@
         <xsl:value-of select="$text"/>
       </xsl:otherwise>
     </xsl:choose>
-
   </xsl:template>
 <!-- ====================================================================== -->
 <!-- Local Extensions section -->
 <!-- ====================================================================== -->
-
   <xsl:template match="version"/>
-
   <xsl:template match="authors"/>
-
   <xsl:template match="acronym">
-    <xsl:value-of select="."/><xsl:text> [</xsl:text><xsl:value-of select="@title"/><xsl:text>]
</xsl:text>
-
+    <xsl:value-of select="."/>
+<xsl:text> [</xsl:text>
+    <xsl:value-of select="@title"/>
+<xsl:text>] </xsl:text>
   </xsl:template>
-
   <xsl:template match="text()" mode="as-is">
     <xsl:value-of select="."/>
   </xsl:template>
-
   <xsl:template match="text()">
     <xsl:variable name="tmp">
       <xsl:value-of select="normalize-space(.)"/>
     </xsl:variable>
-
     <xsl:if test="$tmp!=''">
       <xsl:value-of select="$tmp"/>
-      <xsl:text> </xsl:text>
+<xsl:text> </xsl:text>
     </xsl:if>
   </xsl:template>
-
   <xsl:template match="text()" mode="in-table">
     <xsl:value-of select="normalize-space(.)"/>
   </xsl:template>
-
   <xsl:template match="*">
     <xsl:apply-templates/>
   </xsl:template>
-
-  <!-- Named templates -->
-
-  <!-- Simple carriage return -->
+<!-- Named templates -->
+<!-- Simple carriage return -->
   <xsl:template name="cr">
-    <xsl:text>
+<xsl:text>
 </xsl:text>
   </xsl:template>
-
-  <!-- Single blank line, no spaces, to separate POD elements -->
+<!-- Single blank line, no spaces, to separate POD elements -->
   <xsl:template name="line-blank">
     <xsl:call-template name="cr"/>
     <xsl:call-template name="cr"/>
   </xsl:template>
-
-
 </xsl:stylesheet>

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/src/documentation/content/xdocs/index.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/src/documentation/content/xdocs/index.xml?view=diff&rev=526511&r1=526510&r2=526511
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/src/documentation/content/xdocs/index.xml
(original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/src/documentation/content/xdocs/index.xml
Sat Apr  7 19:57:35 2007
@@ -21,44 +21,43 @@
   <header>
     <title>Welcome to the POD Output Plugin</title>
   </header>
-
   <body>
     <section>
       <title>Apache Forrest - POD Output Plugin</title>
-
-      <p>This plugin allows Forrest files to be output in the Perl Plain Old
-      Documentation (POD) format, text with minimal formatting directives. If
-      on a *nix system with perl installed, see "man perlpod".</p>
+      <p>
+        This plugin allows Forrest files to be output in the Perl Plain Old
+        Documentation (POD) format, text with minimal formatting directives. If
+        on a *nix system with perl installed, see "man perlpod".
+      </p>
     </section>
-
     <section>
       <title>How to Use the POD Plugin</title>
-
-      <p>The plugin needs to be incorporated into your existing build of
-      Forrest. To do this,</p>
-
+      <p>
+        The plugin needs to be incorporated into your existing build of Forrest.
+        To do this,
+      </p>
       <ol>
         <li><code>cd $FORREST_HOME/plugin/</code></li>
-
         <li><code>$FORREST_HOME/tools/ant/bin/ant local-deploy</code></li>
       </ol>
-
-      <p>Once you have the text plugin installed, it is simply a case of
-      requesting a file with a pod extension. For example, <a
-      href="index.pod">this page as pod</a>.</p>
-
-      <p>To have a POD link created in your project documentation, there are
-      two things you will need to do:</p>
-
+      <p>
+        Once you have the text plugin installed, it is simply a case of
+        requesting a file with a pod extension. For example,
+        <a
+      href="index.pod">this page as pod</a>.
+      </p>
+      <p>
+        To have a POD link created in your project documentation, there are two
+        things you will need to do:
+      </p>
       <ul>
         <li>Edit your <code>forrest.properties</code> file and add
         <code>org.apache.forrest.plugin.pod-output</code> to the
         <code>project.required.plugin</code> property.</li>
-
         <li>Edit your <code>skinconf.xml</code> and set the
         <code>&lt;disable-pod-link&gt;</code> element to
         <code>false</code>.</li>
       </ul>
     </section>
   </body>
-</document>
\ No newline at end of file
+</document>

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/src/documentation/content/xdocs/site.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/src/documentation/content/xdocs/site.xml?view=diff&rev=526511&r1=526510&r2=526511
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/src/documentation/content/xdocs/site.xml
(original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/src/documentation/content/xdocs/site.xml
Sat Apr  7 19:57:35 2007
@@ -15,7 +15,6 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
-
 <!--
 Forrest site.xml
 
@@ -29,24 +28,20 @@
 
 See http://forrest.apache.org/docs/linking.html for more info
 -->
-
 <site label="org.apache.forrest.plugin.pod-output" href="" xmlns="http://apache.org/forrest/linkmap/1.0"
tab="">
-
   <about label="About">
     <index label="Index" href="index.html" description="Welcome to org.apache.forrest.plugin.pod-output"/>
     <forrestPlugins label="Plugins Index" href="site:forrest/plugins" description="Index
of Forrest Plugins"/>
     <changes label="Changes" href="changes.html" description="History of Changes" />
     <todo label="Todo" href="todo.html" description="Todo List" />
   </about>
-
-  <!--
+<!--
   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"/>
@@ -56,5 +51,4 @@
       <plugins href="docs/plugins"/>
     </forrest>
   </external-refs>
-
 </site>

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/src/documentation/content/xdocs/tabs.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/src/documentation/content/xdocs/tabs.xml?view=diff&rev=526511&r1=526510&r2=526511
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/src/documentation/content/xdocs/tabs.xml
(original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/src/documentation/content/xdocs/tabs.xml
Sat Apr  7 19:57:35 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="plugins" label="Forrest Plugins" href="http://forrest.apache.org/pluginDocs"
indexfile="index.html"/>
   <tab id="" label="Home" dir="" 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/plugins/org.apache.forrest.plugin.output.POD/src/documentation/skinconf.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/src/documentation/skinconf.xml?view=diff&rev=526511&r1=526510&r2=526511
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/src/documentation/skinconf.xml
(original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/src/documentation/skinconf.xml
Sat Apr  7 19:57:35 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: POD output</project-name>
   <project-description>org.apache.forrest.plugin.output.POD plugin for Apache Forrest</project-description>
-
 </skinconfig>

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/status.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/status.xml?view=diff&rev=526511&r1=526510&r2=526511
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/status.xml (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.output.POD/status.xml Sat Apr  7 19:57:35
2007
@@ -16,19 +16,17 @@
   limitations under the License.
 -->
 <status>
-
-  <!-- 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.2-dev" date="not-released">
       <action type="add" context="code" dev="RDG" importance="high">
@@ -36,7 +34,6 @@
         {lm:pod.*}
       </action>
     </release>
-    
     <release version="0.1" date="not-released">
       <action dev="RDG" type="update" context="admin">
         Changed name to bring into line with new naming conventions.
@@ -47,7 +44,6 @@
       </action>
     </release>
   </changes>
-
   <todo>
     <actions priority="high">
       <action context="docs" dev="open">
@@ -57,5 +53,4 @@
       </action>
     </actions>
   </todo>
-
 </status>



Mime
View raw message