avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon/tools/documentation/stylesheets/system directory2html.xsl error2html.xsl status2html.xsl
Date Sun, 16 Dec 2001 09:37:07 GMT
donaldp     01/12/16 01:37:07

  Added:       tools/documentation cocoon.xconf sitemap.xmap
               tools/documentation/resources/images add.jpg fix.jpg
                        jakarta-logo.gif remove.jpg update.jpg
               tools/documentation/stylesheets book2menu.xsl
                        docbook2body.xsl docbook2fo.xsl
                        document2docbook.xsl filterlinks.xsl site2xhtml.xsl
               tools/documentation/stylesheets/system directory2html.xsl
                        error2html.xsl status2html.xsl
  Log:
  Start to move some of the documentation stuff into the tools directory so that we can get rid of inter-project build dependencies in time.
  
  Revision  Changes    Path
  1.1                  jakarta-avalon/tools/documentation/cocoon.xconf
  
  Index: cocoon.xconf
  ===================================================================
  <?xml version="1.0"?>
  <cocoon version="2.0">
  
  <!-- ===================== General Components =========================== -->
  
    <!-- The default parser used in the Apache Cocoon 2 system is
         org.apache.cocoon.components.parser.JaxpParser.
         Apache Cocoon 2 system requires a JAXP 1.1 parser.
         If you have problems because your servlet environment uses its own
         parser not conforming to JAXP 1.1 try using the alternative
         XercesParser instead of the JaxpParser. To activate the XercesParser
         move the line below starting with <parser ...> out of this comment block.
         You also than have to add a system property to your JVM
         (probably on the startup of your servlet engine like this:
  
         -Dorg.apache.cocoon.components.parser.Parser=org.apache.cocoon.components.parser.XercesParser
  
    <parser class="org.apache.cocoon.components.parser.XercesParser"/>
    -->
  
    <!-- Storing:
         freememory: Indicates how much memory should be left free in the
                     JVM for normal operation.
         heapsize: Indicates how big the heap size can grow to before the
                   cleanup thread kicks in.
         objectlifetime: Indicates how long (seconds) a cache object will
                         be hold in memory. The object will be thrown out,
                         when the time is over.
         interval: Indicates the interval of the cleanup thread in seconds.
         maxobjects: Indicates how many objects will be hold in the cache.
                     When the number of maxobjects has been reached. The
                     last object in the cache will be thrown out.
         usethread: Indicates whether we use a cleanup thread or not.
         threadpriority: Indicates the priority of the cleanup thread.
                         (1 is the lowest priority and 10 is the highest).
    -->
    <store class="org.apache.cocoon.components.store.MRUMemoryStore">
       <parameter name="maxobjects" value="100"/>
       <parameter name="threadpriority" value="5"/>
       <parameter name="filesystem" value="true"/>
    </store>
  
    <!-- Store Janitor:
      freememory = How much free memory shall be available in the jvm
      heapsize = Indicates the limit of the jvm memory consumption
      cleanupthreadinterval = How often shall the cleanup thread check memory
      threadpriority = Indicates the thread priority of the cleanup thread
  
      Be carefull with the heapsize and freememory paramters. Wrong values can
      cause high cpu usage.
      Example configuration:
      Jvm settings: 
        -Xms100000000 -Xmx200000000
      store-janitor settings:
         <parameter name="freememory" value="50000000"/>
         <parameter name="heapsize" value="150000000"/>
    
      Heapsize must be higher then the -Xms parameter and freememory
      between those both.    
    -->
    <store-janitor class="org.apache.cocoon.components.store.StoreJanitorImpl" logger="root.store">
       <parameter name="freememory" value="1000000"/>
       <parameter name="heapsize" value="60000000"/>
       <parameter name="cleanupthreadinterval" value="10"/>
       <parameter name="threadpriority" value="5"/>
    </store-janitor>
  
   <xslt-processor class="org.apache.cocoon.components.xslt.XSLTProcessorImpl" logger="root.xslt">
       <parameter name="use-store" value="true"/>
    </xslt-processor>
  
    <!-- The url factory adds special url protocols to the system, they
         are then available inside Cocoon, e.g. as a source argument
         for one of the sitemap components -->
    <url-factory>
      <protocol name="resource" class="org.apache.cocoon.components.url.ResourceURLFactory"/>
      <protocol name="context"  class="org.apache.cocoon.components.url.ContextURLFactory"/>
    </url-factory>
  
    <!-- The source handler adds special url protocols to the system, they
         are then available inside Cocoon, e.g. as a source argument
         for one of the sitemap components. -->
    <source-handler>
    </source-handler>
  
    <program-generator>
      <parameter name="auto-reload" value="true"/>
      <parameter name="root-package" value="org.apache.cocoon.www"/>
      <parameter name="preload" value="true"/>
    </program-generator>
  
    <programming-languages>
      <java-language name="java">
        <!-- compiler parameter specifies which class to use to compile Java.
             Possible variants are Javac and Jikes compilers.
             Javac requires javac.jar (included with Cocoon distribution).
             Jikes requires IBM jikes compiler to be present in the PATH  -->
        <parameter name="compiler" value="org.apache.cocoon.components.language.programming.java.Javac"/>
        <!-- Specifies which formatter to use to format source code.
             This parameter is optional. -->
         <!-- A singleton-like implementation of a ClassLoader -->
        <parameter name="class-loader" value="org.apache.cocoon.components.classloader.ClassLoaderManagerImpl"/>
      </java-language>
    </programming-languages>
  
    <classloader class="org.apache.cocoon.components.classloader.ClassLoaderManagerImpl"/>
  
    <markup-languages>
      <xsp-language name="xsp">
        <parameter name="prefix" value="xsp"/>
        <parameter name="uri" value="http://apache.org/xsp"/>
  
        <!-- Defines the XSP Core logicsheet for the Java language -->
        <target-language name="java">
          <parameter name="core-logicsheet" value="resource://org/apache/cocoon/components/language/markup/xsp/java/xsp.xsl"/>
          
          <!-- The Request logicsheet (taglib) is an XSP logicsheet that wraps XML tags 
               around standard request operations -->
          <builtin-logicsheet>
            <parameter name="prefix" value="xsp-request"/>
            <parameter name="uri" value="http://apache.org/xsp/request/2.0"/>
            <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/request.xsl"/>
          </builtin-logicsheet>
         
          <!-- The Response logicsheet (taglib) is an XSP logicsheet that wraps XML tags 
               around standard response operations -->
          <builtin-logicsheet>
            <parameter name="prefix" value="xsp-response"/>
            <parameter name="uri" value="http://apache.org/xsp/response/2.0"/>
            <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/response.xsl"/>
          </builtin-logicsheet>
  
          <!-- The Session logicsheet (taglib) is an XSP logicsheet that wraps XML tags around 
               standard session operations. Specifically, the Session logicsheet provides an 
               XML interface to most methods of the HttpSession object (see the Java Servlet API 
               Specification, version 2.2 ) for more information. -->
          <builtin-logicsheet>
            <parameter name="prefix" value="session"/>
            <parameter name="uri" value="http://apache.org/xsp/session/2.0"/>
            <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/session.xsl"/>
          </builtin-logicsheet>
  
          <builtin-logicsheet>
            <parameter name="prefix" value="xsp-cookie"/>
            <parameter name="uri" value="http://apache.org/xsp/cookie/2.0"/>
            <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/cookie.xsl"/>
          </builtin-logicsheet>
  
          <!-- The ESQL logicsheet is an XSP logicsheet that performs sql queries and 
               serializes their results as XML. This allows you to work with data from a 
               wide variety of different sources when using Apache Cocoon. -->
          <builtin-logicsheet>
            <parameter name="prefix" value="esql"/>
            <parameter name="uri" value="http://apache.org/cocoon/SQL/v2"/>
            <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/esql.xsl"/>
          </builtin-logicsheet>
  
          <builtin-logicsheet>
            <parameter name="prefix" value="log"/>
            <parameter name="uri" value="http://apache.org/xsp/log/2.0"/>
            <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/log.xsl"/>
          </builtin-logicsheet>
  
          <builtin-logicsheet>
            <parameter name="prefix" value="util"/>
            <parameter name="uri" value="http://apache.org/xsp/util/2.0"/>
            <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/util.xsl"/>
          </builtin-logicsheet>
          
          <!-- The xsp-formval taglib serves as interface to retrieve validation results 
               from a request attribute -->
          <builtin-logicsheet>
            <parameter name="prefix" value="xsp-formval"/>
            <parameter name="uri" value="http://apache.org/xsp/form-validator/2.0"/>
            <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/form-validator.xsl"/>
          </builtin-logicsheet>
  
          <!-- The capture taglib is for capturing parts of the XSP-generated XML as
               XML fragments or DOM nodes -->
          <builtin-logicsheet>
            <parameter name="prefix" value="capture"/>
            <parameter name="uri" value="http://apache.org/cocoon/capture/1.0"/>
            <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/capture.xsl"/>
          </builtin-logicsheet>
  
        </target-language>
      </xsp-language>
  
      <!-- Defines Sitemap Core logicsheet for the Java language -->
      <sitemap-language name="sitemap">
        <parameter name="prefix" value="map"/>
        <parameter name="uri" value="http://apache.org/cocoon/sitemap/1.0"/>
  
        <target-language name="java">
          <parameter name="core-logicsheet" value="resource://org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl"/>
        </target-language>
      </sitemap-language>
    </markup-languages>
  
    <!-- A StreamPipeline either
         collects a Reader and let it produce a character stream
         or connects a EventPipeline with a
         Serializer and let them produce the character stream.
    -->
    <stream-pipeline class="org.apache.cocoon.components.pipeline.CachingStreamPipeline"
                     pool-max="32" pool-min="16" pool-grow="4"/>
  
    <!-- Caching of stream pipeline:
         freememory: Indicates how much memory should be left free in the
                     JVM for normal operation.
         heapsize: Indicates how big the heap size can grow to before the
                   cleanup thread kicks in.
         objectlifetime: Indicates how long (seconds) a cache object will
                         be hold in memory. The object will be thrown out,
                         when the time is over.
         interval: Indicates the interval of the cleanup thread in seconds.
         maxobjects: Indicates how many objects will be hold in the cache.
                     When the number of maxobjects has been reached. The
                     last object in the cache will be thrown out.
         usethread: Indicates whether we use a cleanup thread or not.
         threadpriority: Indicates the priority of the cleanup thread.
                         (1 is the lowest priority and 10 is the highest).
    -->
    <stream-cache class="org.apache.cocoon.components.store.MRUMemoryStore" logger="root.store">
       <parameter name="maxobjects" value="100"/>
       <parameter name="threadpriority" value="5"/>
       <parameter name="filesystem" value="true"/>
    </stream-cache>
  
    <!-- An EventPipeline connects the generator and the various transformers
         and produces a character stream. Alternatives to CachingEventPipeline
         are: NonCachingEventPipeline.
    <event-pipeline class="org.apache.cocoon.components.pipeline.NonCachingEventPipeline"/>
    -->
   <event-pipeline class="org.apache.cocoon.components.pipeline.CachingEventPipeline"
                    pool-max="32" pool-min="16" pool-grow="4"/>
  
    <!-- Caching of event pipeline:
         freememory: Indicates how much memory should be left free in the
                     JVM for normal operation.
         heapsize: Indicates how big the heap size can grow to before the
                   cleanup thread kicks in.
         objectlifetime: Indicates how long (seconds) a cache object will
                         be hold in memory. The object will be thrown out,
                         when the time is over.
         interval: Indicates the interval of the cleanup thread in seconds.
         maxobjects: Indicates how many objects will be hold in the cache.
                     When the number of maxobjects has been reached. The
                     last object in the cache will be thrown out.
         usethread: Indicates whether we use a cleanup thread or not.
         threadpriority: Indicates the priority of the cleanup thread.
                         (1 is the lowest priority and 10 is the highest).
    -->
    <event-cache class="org.apache.cocoon.components.store.MRUMemoryStore" logger="root.store">
       <parameter name="maxobjects" value="100"/>
       <parameter name="threadpriority" value="5"/>
       <parameter name="filesystem" value="true"/>
    </event-cache>
  
    <!-- The SAXConnector connects the various pipeline components.
         LoggingSAXConnector logs SAX events between pipeline components
         into a cocoon's log file.
         Uncomment one of the following lines for using the SAXConnector.
    <sax-connector class="org.apache.cocoon.components.saxconnector.LoggingSAXConnector"/>
    -->
  
  <!-- ======================== The sitemap  ============================== -->
  
    <!-- The reloading of the sitemap:
          The check-reload attribute determines if the sitemap is reloaded on change. If
          it is set to "no", the sitemap is generated once at startup, if it is set to "yes",
          the sitemap is regenerated if it changes.
          The reload-method specifies the method for the regeneration:
          asynchron: If the sitemap changes, the sitemap is regenerated at the next request in
                           the background and the incoming request is served with the old sitemap.
                           All subsequent requests are served with the old sitemap until the
                           regeneration in the background has finished.
          synchron: If the sitemap changes, the sitemap is regenerated at the next request.
                         When the regeneration is finished the request (and all subsequent ones)
                         is served with the new sitemap.
  
          For development environment set the reload-method to synchron and the
          check-reload to yes, for production environment it is advisable to set
          the reload-method to asynchron and for more safety the check-reload to no.
       -->
    <sitemap file="sitemap.xmap" reload-method="asynchron" check-reload="yes"/>
  
  </cocoon>
  
  
  
  1.1                  jakarta-avalon/tools/documentation/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  <?xml version="1.0"?>
  
  <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
  
  <!-- =========================== Components ================================ -->
  
   <map:components>
  
    <map:generators default="file">
     <map:generator  name="file"        src="org.apache.cocoon.generation.FileGenerator" label="content"/>
    </map:generators>
  
    <map:transformers default="xslt">
     <map:transformer     name="xslt"      src="org.apache.cocoon.transformation.TraxTransformer">
      <use-request-parameters>false</use-request-parameters>
      <use-browser-capabilities-db>false</use-browser-capabilities-db>
     </map:transformer>
     <map:transformer     name="xinclude"  src="org.apache.cocoon.transformation.XIncludeTransformer"/>
    </map:transformers>
  
    <map:readers default="resource">
     <map:reader name="resource"       src="org.apache.cocoon.reading.ResourceReader"/>
    </map:readers>
  
    <map:serializers default="html">
     <map:serializer name="html"   mime-type="text/html"        src="org.apache.cocoon.serialization.HTMLSerializer">
       <encoding>iso8859-1</encoding>
     </map:serializer>
     <map:serializer name="xml"    mime-type="text/xml"         src="org.apache.cocoon.serialization.XMLSerializer"/>
     <map:serializer name="links"                               src="org.apache.cocoon.serialization.LinkSerializer"/>
     <map:serializer name="fo2pdf" mime-type="application/pdf"  src="org.apache.cocoon.serialization.FOPSerializer"/>
    </map:serializers>
  
    <map:matchers default="wildcard">
     <map:matcher name="wildcard" src="org.apache.cocoon.matching.WildcardURIMatcher"/>
    </map:matchers>
   </map:components>
  
  <!-- =========================== Views =================================== -->
  
   <map:views>
    <map:view name="content" from-label="content">
     <map:serialize type="xml"/>
    </map:view>
  
    <map:view name="links" from-position="last">
     <map:transform src="stylesheets/filterlinks.xsl"/>
     <map:serialize type="links"/>
    </map:view>
  
   </map:views>
  
  <!-- =========================== Pipelines ================================= -->
  
   <map:pipelines>
    <map:pipeline>
     <map:match pattern="">
      <map:redirect-to uri="index.html"/>
     </map:match>
  
     <map:match pattern="**book.xml">
       <map:generate src="xdocs/{1}book.xml"/>
       <map:transform src="stylesheets/book2menu.xsl"/>
       <map:serialize type="xml"/>
     </map:match>
  
     <map:match pattern="body-**.xml">
       <map:generate src="xdocs/{1}.xml"/>
       <map:transform src="stylesheets/document2docbook.xsl"/>
       <map:transform src="stylesheets/docbook2body.xsl"/>
       <map:serialize type="xml"/>
     </map:match>
  
     <map:match pattern="*.html">
      <map:aggregate element="site">
       <map:part src="cocoon:/book.xml"/>
       <map:part src="cocoon:/body-{1}.xml"/>
      </map:aggregate>
      <map:transform src="stylesheets/site2xhtml.xsl"/>
      <map:serialize/>
     </map:match>
  
     <map:match pattern="developing-with-avalon.pdf">
       <map:generate src="xdocs/developing/index.xml"/>
       <map:transform type="xinclude"/>
       <map:transform src="stylesheets/docbook2fo.xsl"/>
       <map:serialize type="fo2pdf"/>
     </map:match>
  
     <map:match pattern="**diagrams/*.html">
       <map:read src="diagrams/{2}.html" mime-type="text/html"/>
     </map:match>
  
     <map:match pattern="api/**.html">
       <!-- dummy: can't "ignore" certain uris -->
       <map:read src="xdocs/index.xml" mime-type="text/xml"/>
     </map:match>
  
     <map:match pattern="developing/*.html">
      <map:aggregate element="site">
       <map:part src="cocoon:/developing/book.xml"/>
       <map:part src="cocoon:/body-developing/{1}.xml"/>
      </map:aggregate>
      <map:transform src="stylesheets/site2xhtml.xsl"/>
      <map:serialize/>
     </map:match>
  
     <map:match pattern="**/*.html">
      <map:aggregate element="site">
       <map:part src="cocoon:/{1}/book.xml"/>
       <map:part src="cocoon:/body-{1}/{2}.xml"/>
      </map:aggregate>
      <map:transform src="stylesheets/site2xhtml.xsl"/>
      <map:serialize/>
     </map:match>
  
     <!-- ================  Static  =========================== -->
  
     <map:match pattern="**images/*.png">
      <map:read src="resources/images/{2}.png" mime-type="image/png"/>
     </map:match>
  
     <map:match pattern="**images/*.jpg">
      <map:read src="resources/images/{2}.jpg" mime-type="image/jpeg"/>
     </map:match>
  
     <map:match pattern="**images/*.gif">
      <map:read src="resources/images/{2}.gif" mime-type="image/gif"/>
     </map:match>
  
     <map:handle-errors>
      <map:transform src="stylesheets/system/error2html.xsl"/>
      <map:serialize status-code="500"/>
     </map:handle-errors>
  
    </map:pipeline>
   </map:pipelines>
  
  </map:sitemap>
  
  <!-- end of file -->
  
  
  
  1.1                  jakarta-avalon/tools/documentation/resources/images/add.jpg
  
  	<<Binary file>>
  
  
  1.1                  jakarta-avalon/tools/documentation/resources/images/fix.jpg
  
  	<<Binary file>>
  
  
  1.1                  jakarta-avalon/tools/documentation/resources/images/jakarta-logo.gif
  
  	<<Binary file>>
  
  
  1.1                  jakarta-avalon/tools/documentation/resources/images/remove.jpg
  
  	<<Binary file>>
  
  
  1.1                  jakarta-avalon/tools/documentation/resources/images/update.jpg
  
  	<<Binary file>>
  
  
  1.1                  jakarta-avalon/tools/documentation/stylesheets/book2menu.xsl
  
  Index: book2menu.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                  version="1.0">
  
    <xsl:template match="book">
      <menu>
        <xsl:apply-templates/>
      </menu>
    </xsl:template>
  
    <xsl:template match="project">
      <br/><a href="{@href}"><font color="#F3510C" size="+1"><xsl:value-of select="@label"/></font></a><br/>
    </xsl:template>
  
    <xsl:template match="menu">
      <br/><font color="#000000" size="+1"><xsl:value-of select="@label"/></font><br/>
      <font size="-1">
        <ul>
          <xsl:apply-templates/>
        </ul>
      </font><br/>
    </xsl:template>
  
    <xsl:template match="menu-item">
      <xsl:if test="not(@type) or @type!='hidden'">
        <li><a href="{@href}"><font size="-1"><xsl:value-of select="@label"/></font></a></li>
      </xsl:if>
    </xsl:template>
  
    <xsl:template match="node()|@*" priority="-1"/>
  </xsl:stylesheet>
  
  
  
  
  1.1                  jakarta-avalon/tools/documentation/stylesheets/docbook2body.xsl
  
  Index: docbook2body.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                  version="1.0">
  
    <xsl:template match="book">
      <body>
        <title><xsl:value-of select="title"/></title>
        <center>
          <table width="80%">
            <tr>
              <td bgcolor="#F3DD61">
                <br/><center><b><font color="#000000" face="arial,helvetica,sanserif"><xsl:value-of select="title"/><xsl:if test="subtitle"><xsl:text>: </xsl:text><xsl:value-of select="subtitle"/></xsl:if></font></b></center>
                <br/>
              </td>
            </tr>
          </table>
        </center><br/>
        <xsl:apply-templates select="dedication"/>
        <xsl:apply-templates select="bookinfo"/>
      </body>
    </xsl:template>
  
    <xsl:template match="chapter|article|appendix">
      <body>
        <title><xsl:value-of select="title"/></title>
        <center>
          <table width="80%">
            <tr>
              <td bgcolor="#F3DD61">
                <br/><center><b><font color="#000000" face="arial,helvetica,sanserif"><xsl:value-of select="title"/></font></b></center>
                <br/>
              </td>
            </tr>
          </table>
        </center><br/>
        <xsl:if test="subtitle">
          <font face="arial,helvetica,sanserif" color="#525D76"><i><xsl:value-of select="subtitle"/></i></font><br/>
        </xsl:if>
  
        <font color="#000000" face="arial,helvetica,sanserif" size="-2">
          <p>
            <xsl:for-each select="//authorgroup/author">
              <xsl:choose>
                <xsl:when test="position()=1">by</xsl:when>
                <xsl:otherwise>, </xsl:otherwise>
              </xsl:choose>
            </xsl:for-each>
            <a href="mailto:{address/email}">
              <xsl:if test="honorific"><xsl:value-of select="honorific"/>. </xsl:if>
              <xsl:if test="firstname"><xsl:value-of select="firstname"/> </xsl:if>
              <xsl:value-of select="surname"/>
            </a>
          </p>
        </font>
  
        <font color="#000000" face="arial,helvetica,sanserif">
          <xsl:apply-templates select="para"/>
        </font><br/>
  
        <xsl:apply-templates select="section">
          <xsl:with-param name="level" select="1"/>
        </xsl:apply-templates>
  
        <xsl:apply-templates select="//footnote" mode="base"/>
      </body>
    </xsl:template>
  
    <xsl:template match="title|subtitle"/>
  
    <xsl:template match="author">
      <body>
        <title>
          <xsl:value-of select="honorific"/><xsl:text>. </xsl:text>
          <xsl:value-of select="firstname"/><xsl:text> </xsl:text>
          <xsl:value-of select="surname"/>
        </title>
        <center>
          <table width="80%">
            <tr>
              <td bgcolor="#F3DD61">
                <br/><center><b><font color="#000000" face="arial,helvetica,sanserif"><xsl:text>Author: </xsl:text><xsl:value-of select="honorific"/><xsl:text>. </xsl:text><xsl:value-of select="firstname"/><xsl:text> </xsl:text><xsl:value-of select="surname"/></font></b></center>
                <br/>
              </td>
            </tr>
          </table>
        </center><br/>
        <div align="right">
          <table border="0" cellpadding="2" cellspacing="0" width="100%">
            <tr>
              <td bgcolor="#525D76">
                <font color="#ffffff" face="arial,helvetica,sanserif" size="+1"><b>Affiliations</b></font>
              </td>
            </tr>
            <tr>
              <td>
                <font color="#000000" face="arial,helvetica,sanserif"><br/>
                  <ul>
                    <xsl:apply-templates select="affiliation"/>
                  </ul>
                </font>
              </td>
            </tr>
          </table>
        </div><br/>
        <xsl:apply-templates select="authorblurb"/>
      </body>
    </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">
      <div align="right">
        <table border="0" cellpadding="2" cellspacing="0" width="100%">
          <tr>
            <td bgcolor="#525D76">
              <font color="#ffffff" face="arial,helvetica,sanserif" size="+1"><b>Bio</b></font>
            </td>
          </tr>
          <tr>
            <td>
              <font color="#000000" face="arial,helvetica,sanserif"><br/>
                <ul>
                  <xsl:apply-templates/>
                </ul>
              </font>
            </td>
          </tr>
        </table>
      </div>
    </xsl:template>
  
    <xsl:template match="honorific|firstname|surname|orgdiv|orgname|shortaffil|jobtitle"/>
  
    <xsl:template match="revhistory">
      <body>
        <title>Revision History</title>
        <center>
          <table width="80%">
            <tr>
              <td bgcolor="#F3DD61">
                <br/><center><b><font color="#000000" face="arial,helvetica,sanserif">Revision History</font></b></center>
                <br/>
              </td>
            </tr>
          </table>
        </center><br/>
        <div align="right">
          <table border="0" cellpadding="2" cellspacing="0" width="100%">
            <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 bgcolor="#525D76">
                <font color="#ffffff" face="arial,helvetica,sanserif">
                  <b>Revision <xsl:value-of select="."/> 
                     (<xsl:value-of select="$base/revision[revnumber=current()]/date"/>)
                  </b>
                </font>
              </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>
        </div>
      </body>
    </xsl:template>
  
    <xsl:template match="para">
      <p align="justify"><xsl:apply-templates/></p>
    </xsl:template>
  
    <xsl:template match="emphasis"><em><xsl:apply-templates/></em></xsl:template>
  
    <xsl:template match="revision">
      <li>
        <xsl:choose>
          <xsl:when test="@revisionflag='added'">
            <img align="absmiddle" alt="added" border="0" src="images/add.jpg"/>
          </xsl:when>
          <xsl:when test="@revisionflag='changed'">
            <img align="absmiddle" alt="changed" border="0" src="images/update.jpg"/>
          </xsl:when>
          <xsl:when test="@revisionflag='deleted'">
            <img align="absmiddle" alt="deleted" border="0" src="images/remove.jpg"/>
          </xsl:when>
          <xsl:when test="@revisionflag='off'">
            <img align="absmiddle" alt="off" border="0" src="images/fix.jpg"/>
          </xsl:when>
          <xsl:otherwise>
            <img align="absmiddle" alt="changed" border="0" 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="section">
      <xsl:param name="level"/>
  
      <div align="right">
        <table border="0" cellpadding="2" cellspacing="0">
          <xsl:attribute name="width"><xsl:value-of select="number(100)-(1*(number($level)-1))"/>%</xsl:attribute>
          <tr>
            <td bgcolor="#525D76">
              <font color="#ffffff" face="arial,helvetica,sanserif">
                <xsl:attribute name="size">
                  <xsl:choose>
                    <xsl:when test="number($level)=1">+1</xsl:when>
                    <xsl:when test="number($level)=2">+0</xsl:when>
                    <xsl:otherwise>-<xsl:value-of select="number($level)-2"/></xsl:otherwise>
                  </xsl:choose>
                </xsl:attribute>
                <b><xsl:value-of select="title"/></b>
              </font>
            </td>
          </tr>
          <tr>
            <td>
              <font color="#000000" face="arial,helvetica,sanserif">
                <br/>
                <xsl:apply-templates>
                  <xsl:with-param name="level" select="number($level)+1"/>
                </xsl:apply-templates>
              </font>
            </td>
          </tr>
        </table>
      </div><br/>
    </xsl:template>
  
    <xsl:template match="bookinfo">
      <div align="right">
        <table border="0" cellpadding="2" cellspacing="0" width="100%">
          <tr>
            <td bgcolor="#525D76">
              <font color="#ffffff" face="arial,helvetica,sanserif" size="+1">
                <b><xsl:value-of select="edition"/></b><xsl:text> </xsl:text>
                <i><font size="0">pub. <xsl:value-of select="pubdate"/></font></i>
              </font>
            </td>
          </tr>
          <tr>
            <td>
              <font color="#000000" face="arial,helvetica,sanserif">
                <br/>
                <xsl:apply-templates/>
              </font>
            </td>
          </tr>
        </table>
      </div><br/>
    </xsl:template>
  
    <xsl:template match="dedication">
      <div align="right">
        <table border="0" cellpadding="2" cellspacing="0" width="100%">
          <tr>
            <td bgcolor="#525D76">
              <font color="#ffffff" face="arial,helvetica,sanserif" size="+1">
                <b>Dedication</b>
              </font>
            </td>
          </tr>
          <tr>
            <td>
              <font color="#000000" face="arial,helvetica,sanserif">
                <br/>
                <xsl:apply-templates/>
              </font>
            </td>
          </tr>
        </table>
      </div><br/>
    </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"/>.<br/>
        <i>All rights reserved.</i>
      </p>
    </xsl:template>
  
    <xsl:template match="legalnotice">
      <div align="center">
        <table border="1" cellpadding="2" cellspacing="2">
          <tr>
            <td><xsl:apply-templates/></td>
          </tr>
        </table>
      </div>
    </xsl:template>
  
    <xsl:template match="programlisting">
      <div align="center">
        <table border="1" cellpadding="2" cellspacing="2">
          <tr>
            <td>
              <pre>
                <xsl:apply-templates/>
              </pre>
            </td>
          </tr>
        </table>
      </div>
    </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="classname|function|parameter"><code><xsl:apply-templates/><xsl:if test="name(.)='function'"><xsl:text>()</xsl:text></xsl:if></code></xsl:template>
  
    <xsl:template match="blockquote">
      <div align="center">
        <table border="1" cellpadding="2" cellspacing="2">
          <xsl:if test="title">
            <tr>
              <td bgcolor="#525D76">
                <font color="#ffffff"><xsl:value-of select="title"/></font>
              </td>
            </tr>
          </xsl:if>
          <tr>
            <td bgcolor="#c0c0c0">
              <font color="#023264" size="-1"><xsl:apply-templates/></font>
            </td>
          </tr>
        </table>
      </div>
    </xsl:template>
  
    <xsl:template match="warning">
      <div align="center">
        <table border="1" cellpadding="2" cellspacing="2">
          <xsl:if test="title">
            <tr>
              <td bgcolor="#800000">
                <font color="#ffffff"><xsl:value-of select="title"/></font>
              </td>
            </tr>
          </xsl:if>
          <tr>
            <td bgcolor="#c0c0c0">
              <font color="#023264" size="-1"><xsl:apply-templates/></font>
            </td>
          </tr>
        </table>
      </div>
    </xsl:template>
  
    <xsl:template match="ulink"><a href="{@uri}"><xsl:apply-templates/></a></xsl:template>
  
    <xsl:template match="footnote"><sup><a href="#{generate-id(.)}"><xsl:value-of select="generate-id(.)"/></a></sup></xsl:template>
  
    <xsl:template match="footnote" mode="base">
      <div align="left">
        <a name="{generate-id(.)}"/><font size="-2"><xsl:value-of select="generate-id(.)"/><xsl:text>) </xsl:text><i><xsl:value-of select="."/></i></font>
      </div>
    </xsl:template>
  
    <xsl:template match="figure">
      <div align="center">
        <table border="0" cellpadding="2" cellspacing="2">
          <tr>
            <td bgcolor="#525D76"><font color="#ffffff" size="0"><xsl:value-of select="title"/></font></td>
          </tr>
          <xsl:apply-templates/>
        </table>
      </div>
    </xsl:template>
  
    <xsl:template match="graphic">
      <tr>
        <td><img border="0" alt="{@srccredit}" src="{@fileref}"/></td>
      </tr>
      <xsl:if test="@srccredit">
        <tr>
          <td><font size="-1"><ul><li><xsl:value-of select="@srccredit"/></li></ul></font></td>
        </tr>
      </xsl:if>
    </xsl:template>
  
    <xsl:template match="table">
      <table border="0" cellpadding="2" cellspacing="2" width="100%">
        <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 select="row" mode="head"/>
    </xsl:template>
  
    <xsl:template match="row" mode="head">
      <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 align="left" bgcolor="#a0ddf0" valign="top">
        <font color="#000000" face="arial,helvetica,sanserif" size="-1"><xsl:apply-templates/></font>
      </td>
    </xsl:template>
  
    <xsl:template match="trademark"><xsl:apply-templates/><sup>TM</sup></xsl:template>
  
    <xsl:template match="node()|@*" priority="-1">
      <xsl:copy>
        <xsl:apply-templates select="node()|@*"/>
      </xsl:copy>
    </xsl:template>
  </xsl:stylesheet>
  
  
  
  
  1.1                  jakarta-avalon/tools/documentation/stylesheets/docbook2fo.xsl
  
  Index: docbook2fo.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                  xmlns:fo="http://www.w3.org/1999/XSL/Format"
                  version="1.0">
  
    <xsl:template match="book">
      <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
     
      <fo:layout-master-set>
          <fo:simple-page-master master-name="title"
                                 page-height="11in"
                                 page-width="8.5in"
                                 margin-top="1in"
                                 margin-bottom="1in"
                                 margin-left="1.25in"
                                 margin-right="1.5in">
            <fo:region-before extent=".5in" region-name="title-header"/>
            <fo:region-body margin-top="1in" margin-bottom="1in"/>
            <fo:region-after extent=".5in" region-name="title-footer"/>
          </fo:simple-page-master>
  
          <fo:simple-page-master master-name="inside"
                                 page-height="11in"
                                 page-width="8.5in"
                                 margin-top="1in"
                                 margin-bottom="1in"
                                 margin-left="1.5in"
                                 margin-right="1.25in">
            <fo:region-before extent=".5in" region-name="inside-header"/>
            <fo:region-body margin-top="1in" margin-bottom="1in"/>
            <fo:region-after extent=".5in" region-name="inside-footer"/>
          </fo:simple-page-master>
  
          <fo:simple-page-master master-name="even-page"
                                 page-height="11in" 
                                 page-width="8.5in"
                                 margin-top="1in" 
                                 margin-bottom="1in" 
                                 margin-left="1.25in" 
                                 margin-right="1in">
            <fo:region-before extent=".5in" region-name="even-header"/>
            <fo:region-body margin-top=".5in" margin-bottom=".5in"/>
            <fo:region-after extent=".5in" region-name="even-footer"/>
          </fo:simple-page-master>
  
          <fo:simple-page-master master-name="odd-page"
                                 page-height="11in"
                                 page-width="8.5in"
                                 margin-top="1in"
                                 margin-bottom="1in"
                                 margin-left="1in"
                                 margin-right="1.25in">
            <fo:region-before extent=".5in" region-name="odd-header"/>
            <fo:region-body margin-top=".5in" margin-bottom=".5in"/>
            <fo:region-after extent=".5in" region-name="odd-footer"/>
          </fo:simple-page-master>
  
          <fo:page-sequence-master master-name="chapter">
            <fo:repeatable-page-master-alternatives>
              <fo:conditional-page-master-reference master-name="title"
                                                    page-position="first"
                                                    odd-or-even="odd"/>
              <fo:conditional-page-master-reference master-name="odd-page"
                                                    odd-or-even="odd"
                                                    blank-or-not-blank="not-blank"/>
              <fo:conditional-page-master-reference master-name="even-page"
                                                    page-position="last"/>
              <fo:conditional-page-master-reference master-name="even-page"
                                                    odd-or-even="even"/>
            </fo:repeatable-page-master-alternatives>
          </fo:page-sequence-master>
        </fo:layout-master-set>
  
        <fo:page-sequence master-name="title">
          <xsl:if test="bookinfo/authorgroup">
            <fo:static-content flow-name="title-footer">
              <fo:block font-family="serif"
                        font-size="16pt"
                        font-style="italic"
                        text-align="end">
                <xsl:for-each select="bookinfo/authorgroup/author">
                  <xsl:value-of select="firstname"/>
                  <xsl:text> </xsl:text>
                  <xsl:value-of select="surname"/>
                </xsl:for-each>
              </fo:block>
            </fo:static-content>
          </xsl:if>
          <fo:flow flow-name="xsl-region-body">
            <fo:block font-family="serif"
                      font-size="48pt"
                      font-weight="bold">
              <xsl:value-of select="title"/>
            </fo:block>
            <xsl:if test="subtitle">
              <fo:block font-family="serif"
                        font-size="24pt"
                        border-top-style="solid"
                        border-top-width=".5pt"
                        space-before="12pt"
                        text-align="end">
                <xsl:value-of select="subtitle"/>
              </fo:block>
            </xsl:if>
          </fo:flow>
        </fo:page-sequence>
        <xsl:apply-templates/>
        <xsl:call-template name="authors"/>
      </fo:root>
    </xsl:template>
  
    <xsl:template match="chapter|article|appendix">
      <fo:page-sequence force-page-count="end-on-even" master-name="chapter">
        <fo:title><xsl:value-of select="title"/></fo:title>
        <fo:static-content flow-name="even-header">
          <fo:block text-align="start"
                    line-height="12pt"
                    font-style="italic"
                    font-family="serif"
                    font-size="10pt"
                    border-after-style="solid"
                    border-after-width=".5pt">
            <xsl:value-of select="/book/title"/>
          </fo:block>
        </fo:static-content>
        <fo:static-content flow-name="even-footer">
          <fo:block text-align="start"
                    line-height="12pt"
                    border-before-style="solid"
                    border-before-width=".5pt"
                    font-family="serif"
                    font-size="10pt"><fo:page-number/></fo:block>
        </fo:static-content>
        <fo:static-content flow-name="odd-header">
          <fo:block text-align="end"
                    line-height="12pt"
                    font-style="italic"
                    font-family="serif"
                    font-size="10pt"
                    border-after-style="solid"
                    border-after-width=".5pt">
            <xsl:value-of select="title"/>
          </fo:block>
        </fo:static-content>
        <fo:static-content flow-name="odd-footer">
          <fo:block text-align="end"
                    line-height="12pt"
                    border-before-style="solid"
                    border-before-width=".5pt"
                    font-family="serif"
                    font-size="10pt"><fo:page-number/></fo:block>
        </fo:static-content>
        <fo:static-content flow-name="title-footer">
          <fo:block text-align="end"
                    line-height="12pt"
                    border-before-style="solid"
                    border-before-width=".5pt"
                    font-family="serif"
                    font-size="10pt"><fo:page-number/></fo:block>
        </fo:static-content>
        <fo:flow flow-name="xsl-region-body">
          <fo:block space-before="2in" font-family="serif" font-size="24pt" font-weight="bold">
            <xsl:value-of select="title"/>
          </fo:block>
          <xsl:if test="subtitle">
            <fo:block font-style="italic"
                      font-family="serif"
                      font-size="18pt"
                      space-after="10pt">
              <xsl:value-of select="subtitle"/>
            </fo:block>
          </xsl:if>
          <xsl:apply-templates/>
          <xsl:apply-templates select="/bookinfo/authorgroup"/>
        </fo:flow>
      </fo:page-sequence>
    </xsl:template>
  
    <xsl:template match="title|subtitle"/>
    <xsl:template match="honorific|firstname|surname|orgdiv|orgname|shortaffil|jobtitle"/>
  
    <xsl:template match="bookinfo/revhistory">
      <fo:block font-family="serif" font-size="10pt" font-weight="bold" space-before="10pt">
        Revision History:
      </fo:block>
      <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">
        <fo:block font-family="serif"
                  font-size="8pt">
          <xsl:value-of select="$base/revision[revnumber=current()]/date"/>: Revision <xsl:value-of select="."/>
        </fo:block>
      </xsl:for-each>
    </xsl:template>
  
    <xsl:template match="book/revhistory">
      <fo:page-sequence force-page-count="end-on-even" master-name="chapter">
        <fo:title>Revision History</fo:title>
        <fo:static-content flow-name="even-header">
          <fo:block text-align="start"
                    line-height="12pt"
                    font-style="italic"
                    font-family="serif"
                    font-size="10pt"
                    border-after-style="solid"
                    border-after-width=".5pt">
            <xsl:value-of select="/book/title"/>
          </fo:block>
        </fo:static-content>
        <fo:static-content flow-name="even-footer">
          <fo:block text-align="start"
                    line-height="12pt"
                    border-before-style="solid"
                    border-before-width=".5pt"
                    font-family="serif"
                    font-size="10pt"><fo:page-number/></fo:block>
        </fo:static-content>
        <fo:static-content flow-name="odd-header">
          <fo:block text-align="end"
                    line-height="12pt"
                    font-style="italic"
                    font-family="serif"
                    font-size="10pt"
                    border-after-style="solid"
                    border-after-width=".5pt">
            <xsl:value-of select="title"/>
          </fo:block>
        </fo:static-content>
        <fo:static-content flow-name="odd-footer">
          <fo:block text-align="end"
                    line-height="12pt"
                    border-before-style="solid"
                    border-before-width=".5pt"
                    font-family="serif"
                    font-size="10pt"><fo:page-number/></fo:block>
        </fo:static-content>
        <fo:static-content flow-name="title-footer">
          <fo:block text-align="end"
                    line-height="12pt"
                    border-before-style="solid"
                    border-before-width=".5pt"
                    font-family="serif"
                    font-size="10pt"><fo:page-number/></fo:block>
        </fo:static-content>
        <fo:flow flow-name="xsl-region-body">
          <fo:block space-before="2in" font-family="serif" font-size="24pt" font-weight="bold" space-after="10pt">
            Revision History
          </fo:block>
          <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">
            <fo:block font-weight="bold"
                      font-family="serif"
                      font-size="14pt"
                      space-before="10pt">
              Revision <xsl:value-of select="."/>
              (<xsl:value-of select="$base/revision[revnumber=current()]/date"/>)
            </fo:block>
            <fo:list-block provisional-distance-between-starts="9mm"
                     provisional-label-separation="3mm">
              <xsl:apply-templates select="$base/revision[revnumber=current()]"/>
            </fo:list-block>
          </xsl:for-each>
        </fo:flow>
      </fo:page-sequence>
    </xsl:template>
  
    <xsl:template match="para">
      <fo:block space-after="8pt"
                font-family="serif"><xsl:apply-templates/></fo:block>
    </xsl:template>
  
    <xsl:template match="emphasis">
      <fo:inline font-style="italic"><xsl:apply-templates/></fo:inline>
    </xsl:template>
  
    <xsl:template match="revision">
      <fo:list-item>
        <fo:list-item-label start-indent="3mm" end-indent="label-end()">
          <fo:block>&#x2022;</fo:block>
        </fo:list-item-label>
        <fo:list-item-body start-indent="body-start()">
          <fo:block>
            <xsl:apply-templates/>
            <fo:inline font-variant="small-caps">
              <xsl:value-of select="@revisionflag"/><xsl:text>&#x2014;</xsl:text>
            </fo:inline>
            <xsl:value-of select="revremark"/>
            <xsl:text> (</xsl:text><xsl:value-of select="authorinitials"/><xsl:text>)</xsl:text>
          </fo:block>
        </fo:list-item-body>
      </fo:list-item>
    </xsl:template>
  
    <xsl:template match="revnumber|revremark|authorinitials|date"/>
  
    <xsl:template match="section">
      <xsl:param name="level">0</xsl:param>
      <xsl:variable name="size" select="16-(number($level)*2)"/>
  
      <fo:block font-family="serif"
                font-size="{$size}pt"
                font-weight="bold"
                space-before="12pt">
        <xsl:value-of select="title"/>
      </fo:block>
      <xsl:apply-templates>
        <xsl:with-param name="level" select="number($level)+1"/>
      </xsl:apply-templates>
    </xsl:template>
  
    <xsl:template match="bookinfo">
      <fo:page-sequence master-name="inside">
        <fo:flow flow-name="xsl-region-body">
          <fo:block font-weight="bold" font-size="14pt">
            <xsl:value-of select="title"/>
          </fo:block>
          <xsl:if test="subtitle">
            <fo:block font-weight="bold" font-size="10pt">
              <xsl:value-of select="subtitle"/>
            </fo:block>
          </xsl:if>
          <xsl:if test="authorgroup">
            <fo:block font-size="10pt">
              <xsl:text>by </xsl:text>
              <xsl:for-each select="authorgroup/author">
                <xsl:if test="not(position()=1)">
                  <xsl:text>, </xsl:text>
                </xsl:if>
                <xsl:if test="honorific">
                  <xsl:value-of select="honorific"/><xsl:text>. </xsl:text>
                </xsl:if>
                <xsl:value-of select="firstname"/>
                <xsl:text> </xsl:text>
                <xsl:value-of select="surname"/>
              </xsl:for-each>
            </fo:block>
          </xsl:if>
          <xsl:apply-templates select="copyright"/>
          <fo:block space-before="10pt" font-size="10pt">
            <xsl:value-of select="edition"/><xsl:text> published </xsl:text>
            <xsl:value-of select="pubdate"/>
          </fo:block>
          <xsl:apply-templates select="revhistory"/>
          <xsl:apply-templates select="legalnotice"/>
        </fo:flow>
      </fo:page-sequence>
    </xsl:template>
  
  
    <xsl:template name="authors">
      <fo:page-sequence force-page-count="end-on-even" master-name="chapter">
        <fo:title>About the Authors</fo:title>
        <fo:static-content flow-name="even-header">
          <fo:block text-align="start"
                    line-height="12pt"
                    font-style="italic"
                    font-family="serif"
                    font-size="10pt"
                    border-after-style="solid"
                    border-after-width=".5pt">
            <xsl:value-of select="/book/title"/>
          </fo:block>
        </fo:static-content>
        <fo:static-content flow-name="even-footer">
          <fo:block text-align="start"
                    line-height="12pt"
                    border-before-style="solid"
                    border-before-width=".5pt"
                    font-family="serif"
                    font-size="10pt"><fo:page-number/></fo:block>
        </fo:static-content>
        <fo:static-content flow-name="odd-header">
          <fo:block text-align="end"
                    line-height="12pt"
                    font-style="italic"
                    font-family="serif"
                    font-size="10pt"
                    border-after-style="solid"
                    border-after-width=".5pt">
            About the Authors
          </fo:block>
        </fo:static-content>
        <fo:static-content flow-name="odd-footer">
          <fo:block text-align="end"
                    line-height="12pt"
                    border-before-style="solid"
                    border-before-width=".5pt"
                    font-family="serif"
                    font-size="10pt"><fo:page-number/></fo:block>
        </fo:static-content>
        <fo:static-content flow-name="title-footer">
          <fo:block text-align="end"
                    line-height="12pt"
                    border-before-style="solid"
                    border-before-width=".5pt"
                    font-family="serif"
                    font-size="10pt"><fo:page-number/></fo:block>
        </fo:static-content>
        <fo:flow flow-name="xsl-region-body">
          <fo:block space-before="2in" font-family="serif" font-size="24pt" font-weight="bold" space-after="10pt">
            About the Authors
          </fo:block>
          <xsl:apply-templates select="/book/bookinfo/authorgroup/author"/>
        </fo:flow>
      </fo:page-sequence>
    </xsl:template>
  
    <xsl:template match="author">
      <fo:block font-family="serif"
                font-size="16pt"
                font-weight="bold"
                space-before="12pt">
        <xsl:value-of select="honorific"/><xsl:text>. </xsl:text>
        <xsl:value-of select="firstname"/><xsl:text> </xsl:text>
        <xsl:value-of select="surname"/>
      </fo:block>
      <fo:block font-family="serif"
                font-size="14pt"
                font-weight="bold"
                space-before="12pt">
        Affiliations
      </fo:block>
      <fo:list-block provisional-distance-between-starts="9mm"
                     provisional-label-separation="3mm">
        <xsl:apply-templates select="affiliation"/>
      </fo:list-block>
      <xsl:apply-templates select="authorblurb"/>
    </xsl:template>
  
    <xsl:template match="affiliation">
      <fo:list-item>
        <fo:list-item-label start-indent="50%" end-indent="label-end()">
          <fo:block>&#x2022;</fo:block>
        </fo:list-item-label>
        <fo:list-item-body start-indent="body-start()">
          <fo:block>
            <xsl:text>[</xsl:text><xsl:value-of select="shortaffil"/><xsl:text>] </xsl:text>
            <fo:inline font-weight="bold"><xsl:value-of select="jobtitle"/><xsl:text> </xsl:text></fo:inline>
            <fo:inline font-style="italic">
              <xsl:value-of select="orgname"/>
              <xsl:if test="orgdiv"><xsl:text>/</xsl:text><xsl:value-of select="orgdiv"/></xsl:if>
            </fo:inline>
          </fo:block>
        </fo:list-item-body>
      </fo:list-item>
    </xsl:template>
  
    <xsl:template match="authorblurb">
      <fo:block font-family="serif"
                font-size="14pt"
                font-weight="bold"
                space-before="12pt">
        Bio
      </fo:block>
      <xsl:apply-templates/>
    </xsl:template>
  
    <xsl:template match="dedication">
      <fo:page-sequence master-name="title">
        <fo:flow flow-name="xsl-region-body">
          <xsl:for-each select="para">
            <fo:block font-style="italic" font-family="serif" space-before="3in" font-size="10pt" text-align="center">
              <xsl:apply-templates/>
            </fo:block>
          </xsl:for-each>
        </fo:flow>
      </fo:page-sequence>
      <fo:page-sequence master-name="inside">
        <fo:flow flow-name="xsl-region-body">
          <fo:block> </fo:block>
        </fo:flow>
      </fo:page-sequence>
    </xsl:template>
  
    <xsl:template match="edition|pubdate|year|holder"/>
  
    <xsl:template match="copyright">
      <fo:block font-size="10pt" space-before="10pt">
        Copyright &#x00A9;<xsl:value-of select="year"/> by <xsl:value-of select="holder"/>.
        All rights reserved.
      </fo:block>
    </xsl:template>
  
    <xsl:template match="legalnotice">
      <fo:block font-size="8pt"
                text-align="justify"
                space-before="20pt"
                width="7.5in"
                font-family="serif">
        <xsl:apply-templates/>
      </fo:block>
    </xsl:template>
  
    <xsl:template match="programlisting">
      <fo:block font-family="monospace"
                font-size="10pt"
                background-color="#f0f0f0"
                white-space-collapse="false"
                keep-together="always">
         <xsl:apply-templates/>
      </fo:block>
    </xsl:template>
  
    <xsl:template match="orderedlist|itemizedlist">
      <fo:list-block provisional-distance-between-starts="9mm"
                     provisional-label-separation="3mm">
        <xsl:apply-templates/>
      </fo:list-block>
    </xsl:template>
  
    <xsl:template match="orderedlist/listitem">
      <fo:list-item>
        <fo:list-item-label start-indent="50%" end-indent="label-end()">
          <fo:block>
            <xsl:number format="1."/>
          </fo:block>
        </fo:list-item-label>
        <fo:list-item-body start-indent="body-start()">
          <fo:block>
            <xsl:apply-templates/>
          </fo:block>
        </fo:list-item-body>
      </fo:list-item>
    </xsl:template>
  
    <xsl:template match="itemizedlist/listitem">
      <fo:list-item>
        <fo:list-item-label start-indent="50%" end-indent="label-end()">
          <fo:block>&#x2022;</fo:block>
        </fo:list-item-label>
        <fo:list-item-body start-indent="body-start()">
          <fo:block>
            <xsl:apply-templates/>
          </fo:block>
        </fo:list-item-body>
      </fo:list-item>
    </xsl:template>
  
    <xsl:template match="classname|function|parameter">
      <fo:inline font-family="monospace">
        <xsl:apply-templates/><xsl:if test="name(.)='function'"><xsl:text>()</xsl:text></xsl:if>
      </fo:inline>
    </xsl:template>
  
    <xsl:template match="blockquote">
      <fo:block margin-left="1in"
                margin-right="1in"
                font-weight="bold"
                font-size="10pt"
                font-family="serif"
                space-before="10pt"
                border-before-style="solid"
                border-start-style="solid"
                border-end-style="solid"
                background-color="#000000"
                color="#ffffff">
        <xsl:value-of select="title"/>
      </fo:block>
      <fo:block margin-left="1in"
                margin-right="1in"
                font-family="serif"
                font-size="8pt"
                border-after-style="solid"
                border-start-style="solid"
                border-end-style="solid"
                background-color="#f0f0f0"
                padding-start="3pt"
                padding-end="3pt"
                padding-before="3pt"
                padding-after="3pt"
                space-after="20pt">
        <xsl:apply-templates/>
      </fo:block>
    </xsl:template>
  
    <xsl:template match="warning">
      <fo:block margin-left="1in"
                margin-right="1in"
                font-weight="bold"
                font-size="10pt"
                font-family="serif"
                space-before="10pt"
                border-before-style="solid"
                border-start-style="solid"
                border-end-style="solid"
                background-color="#800000"
                color="#ffffff">
        Warning: <xsl:value-of select="title"/>
      </fo:block>
      <fo:block margin-left="1in"
                margin-right="1in"
                font-family="serif"
                font-size="8pt"
                border-after-style="solid"
                border-start-style="solid"
                border-end-style="solid"
                background-color="#f0f0f0"
                padding-start="3pt"
                padding-end="3pt"
                padding-before="3pt"
                padding-after="3pt">
        <xsl:apply-templates/>
      </fo:block>
    </xsl:template>
  
    <xsl:template match="ulink">
      <fo:basic-link external-destination="{@uri}"><xsl:apply-templates/></fo:basic-link>
    </xsl:template>
  
    <xsl:template match="footnote">
      <fo:footnote>
        <fo:inline>
          (see <xsl:value-of select="generate-id()"/> below)
        </fo:inline>
        <fo:footnote-body>
          <fo:block font-family="serif"
                    font-size="8pt"
                    line-height="12pt"
                    font-style="italic">
            <xsl:value-of select="generate-id()"/>) <xsl:value-of select="."/>
          </fo:block>
        </fo:footnote-body>
      </fo:footnote>
    </xsl:template>
  
    <xsl:template match="figure">
      <fo:block text-align="center" font-weight="bold" font-family="serif" space-before="10pt" space-after="20pt">
        <xsl:value-of select="title"/>
        <xsl:apply-templates/>
      </fo:block>
    </xsl:template>
  
    <xsl:template match="graphic">
      <fo:external-graphic src="build/documentation/resources/{@fileref}">
        <xsl:attribute name="content-type">
          <xsl:text>content-type:image/</xsl:text>
          <xsl:value-of select="translate(@format,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')"/>
        </xsl:attribute>
      </fo:external-graphic>
      <xsl:if test="@srccredit">
        <fo:block font-size="8pt" font-family="serif" font-style="italic">
          &#x2022; <xsl:value-of select="@srccredit"/>
        </fo:block>
      </xsl:if>
    </xsl:template>
  
    <xsl:template match="table">
      <fo:table width="100%" table-layout="fixed">
        <xsl:apply-templates/>
      </fo:table>
    </xsl:template>
  
    <xsl:template match="colspec">
      <fo:table-column>
        <xsl:attribute name="column-number">
          <xsl:number count="colspec"/>
        </xsl:attribute>
        <xsl:attribute name="column-width">
          <xsl:call-template name="calc.column.width">
            <xsl:with-param name="colwidth">
              <xsl:value-of select="@colwidth"/>
            </xsl:with-param>
          </xsl:call-template>
        </xsl:attribute>
      </fo:table-column>
    </xsl:template>
  
    <xsl:template match="tgroup">
      <xsl:apply-templates/>
    </xsl:template>
  
    <xsl:template match="thead">
      <fo:table-header>
        <xsl:apply-templates/>
      </fo:table-header>
    </xsl:template>
  
    <xsl:template match="tfoot">
      <fo:table-footer>
        <xsl:apply-templates/>
      </fo:table-footer>
    </xsl:template>
  
    <xsl:template match="row">
      <fo:table-row><xsl:apply-templates/></fo:table-row>
    </xsl:template>
  
    <xsl:template match="tbody">
      <fo:table-body>
        <xsl:apply-templates/>
      </fo:table-body>
    </xsl:template>
  
    <xsl:template match="entry">
      <fo:table-cell>
        <xsl:apply-templates/>
      </fo:table-cell>
    </xsl:template>
  
    <xsl:template name="calc.column.width">
      <xsl:param name="colwidth">1*</xsl:param>
  
      <xsl:if test="contains($colwidth, '*')">
        <xsl:text>proportional-column-width(</xsl:text>
        <xsl:value-of select="substring-before($colwidth, '*')"/>
        <xsl:text>)</xsl:text>
      </xsl:if>
  
      <xsl:variable name="width-units">
        <xsl:choose>
          <xsl:when test="contains($colwidth, '*')">
            <xsl:value-of select="normalize-space(substring-after($colwidth, '*'))"/>
          </xsl:when>
          <xsl:otherwise>
            <xsl:value-of select="normalize-space($colwidth)"/>
          </xsl:otherwise>
        </xsl:choose>
      </xsl:variable>
  
      <xsl:variable name="width"
                    select="normalize-space(translate($width-units, '+-0123456789.abcdefghijklmnopqrstuvwxyz', '+-0123456789.'))"/>
  
      <xsl:variable name="units"
                   select="normalize-space(translate($width-units, 'abcdefghijklmnopqrstuvwxyz+-0123456789.', 'abcdefghijklmnopqrstuvwxyz'))"/>
  
      <xsl:value-of select="$width"/>
  
      <xsl:choose>
        <xsl:when test="$units='pi'">pc</xsl:when>
        <xsl:when test="$units='' and $width != ''">pt</xsl:when>
        <xsl:otherwise><xsl:value-of select="$units"/></xsl:otherwise>
      </xsl:choose>
    </xsl:template>
  
    <xsl:template match="trademark"><xsl:apply-templates/>&#x2122;</xsl:template>
  
  </xsl:stylesheet>
  
  
  
  
  1.1                  jakarta-avalon/tools/documentation/stylesheets/document2docbook.xsl
  
  Index: document2docbook.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                  version="1.0">
  
    <xsl:template match="document">
      <article>
        <articleinfo>
          <authorgroup>
            <xsl:for-each select="header/person">
              <author>
                <firstname><xsl:value-of select="@name"/></firstname>
                <address><email><xsl:value-of select="@email"/></email></address>
              </author>
            </xsl:for-each>
          </authorgroup>
        </articleinfo>
        <title><xsl:value-of select="header/title"/></title>
        <xsl:apply-templates select="body"/>
      </article>
    </xsl:template>
  
    <xsl:template match="changes">
      <revhistory>
        <xsl:apply-templates select="//action"/>
      </revhistory>
    </xsl:template>
  
    <xsl:template match="action">
      <revision>
        <xsl:attribute name="revisionflag">
          <xsl:choose>
            <xsl:when test="@type='add'">added</xsl:when>
            <xsl:when test="@type='update'">changed</xsl:when>
            <xsl:when test="@type='remove'">deleted</xsl:when>
            <xsl:when test="@type='fix'">off</xsl:when>
            <xsl:otherwise>changed</xsl:otherwise>
          </xsl:choose>
        </xsl:attribute>
        <revnumber><xsl:value-of select="../@version"/></revnumber>
        <date><xsl:value-of select="../@date"/></date>
        <authorinitials><xsl:value-of select="@dev"/></authorinitials>
        <revremark>
          <xsl:value-of select="."/>
        </revremark>
      </revision>
    </xsl:template>
  
    <xsl:template match="body">
      <xsl:apply-templates/>
    </xsl:template>
  
    <xsl:template match="s1">
      <section>
        <title><xsl:value-of select="@title"/></title>
        <xsl:apply-templates/>
      </section>
    </xsl:template>
  
    <xsl:template match="s2">
      <section>
        <title><xsl:value-of select="@title"/></title>
        <xsl:apply-templates/>
      </section>
    </xsl:template>
  
    <xsl:template match="s3">
      <section>
        <title><xsl:value-of select="@title"/></title>
        <xsl:apply-templates/>
      </section>
    </xsl:template>
  
    <xsl:template match="s4">
      <section>
        <title><xsl:value-of select="@title"/></title>
        <xsl:apply-templates/>
      </section>
    </xsl:template>
  
    <xsl:template match="p|br">
      <para>
        <xsl:apply-templates/>
      </para>
    </xsl:template>
  
    <xsl:template match="strong|em">
      <emphasis><xsl:apply-templates/></emphasis>
    </xsl:template>
  
    <xsl:template match="ul">
      <itemizedlist><xsl:apply-templates/></itemizedlist>
    </xsl:template>
  
    <xsl:template match="li">
      <listitem><xsl:apply-templates/></listitem>
    </xsl:template>
  
    <xsl:template match="ol">
      <orderedlist><xsl:apply-templates/></orderedlist>
    </xsl:template>
  
    <xsl:template match="link">
      <ulink uri="{@href}"><xsl:apply-templates/></ulink>
    </xsl:template>
  
    <xsl:template match="figure">
      <xsl:choose>
        <xsl:when test="@src">
          <figure>
            <title><xsl:value-of select="@alt"/></title>
            <graphic fileref="{@src}" srccredit="{@alt}"/>
          </figure>
        </xsl:when>
        <xsl:otherwise>
          <figure>
            <xsl:apply-templates/>
          </figure>
        </xsl:otherwise>
      </xsl:choose>
    </xsl:template>
  
    <xsl:template match="fixme">
      <warning><xsl:apply-templates/></warning>
    </xsl:template>
  
    <xsl:template match="note">
      <note><xsl:apply-templates/></note>
    </xsl:template>
  
    <xsl:template match="warn">
      <warning><xsl:apply-templates/></warning>
    </xsl:template>
  
    <xsl:template match="code">
      <classname><xsl:apply-templates/></classname>
    </xsl:template>
  
    <xsl:template match="source">
      <programlisting><xsl:apply-templates/></programlisting>
    </xsl:template>
  
    <xsl:template match="table">
      <table>
        <tgroup>
          <xsl:attribute name="cols"><xsl:value-of select="count(tr/td)"/></xsl:attribute>
          <xsl:if test="th">
            <thead>
              <xsl:apply-templates select="th"/>
            </thead>
          </xsl:if>
          <tbody>
            <xsl:apply-templates select="tr"/>
          </tbody>
        </tgroup>
      </table>
    </xsl:template>
  
    <xsl:template match="th|tr">
      <row>
        <xsl:apply-templates/>
      </row>
    </xsl:template>
  
    <xsl:template match="td">
      <entry>
        <xsl:apply-templates/>
      </entry>
    </xsl:template>
  
    <xsl:template match="node()|@*" priority="-1">
      <xsl:copy>
        <xsl:apply-templates select="node()|@*"/>
      </xsl:copy>
    </xsl:template>
  </xsl:stylesheet>
  
  
  
  
  1.1                  jakarta-avalon/tools/documentation/stylesheets/filterlinks.xsl
  
  Index: filterlinks.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <!--
  This stylesheet filters all references to the javadocs
  and the samples.
  -->
  <xsl:stylesheet
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      version="1.0">
  
    <xsl:template match="@src|@href|@background">
      <xsl:if test="not(contains(.,'apidocs')) and not(starts-with(., 'samples/'))">
        <xsl:copy>
          <xsl:apply-templates select="."/>
        </xsl:copy>
      </xsl:if>
    </xsl:template>
  
    <!-- This is a hack which makes the javascript images work -->
    <xsl:template match="img[@onLoad and starts-with(@src, 'graphics')]">
        <img src="{@src}"/>
        <img>
          <xsl:attribute name="src">
            <xsl:value-of select="substring-before(@src, '.')"/>_over.<xsl:value-of select="substring-after(@src, '.')"/>
          </xsl:attribute>
        </img>
    </xsl:template>
  
    <xsl:template match="img[@onLoad and starts-with(@src, 'images') and contains(@src, '-lo.gif')]">
        <img src="{@src}"/>
        <img>
          <xsl:attribute name="src"><xsl:value-of select="substring-before(@src, '-lo.gif')"/>-hi.gif</xsl:attribute>
        </img>
    </xsl:template>
  
    <xsl:template match="@*|node()">
     <xsl:copy>
      <xsl:apply-templates select="@*|node()"/>
     </xsl:copy>
    </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  jakarta-avalon/tools/documentation/stylesheets/site2xhtml.xsl
  
  Index: site2xhtml.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <html xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        xsl:version="1.0">
    <head><title><xsl:value-of select="/site/body/title"/></title></head>
    <body text="#000000" link="#525D76" vlink="#023264" alink="#023264"
          topmargin="4" leftmargin="4" marginwidth="4" marginheight="4"
  	bgcolor="#ffffff">
      <table width="100%" cellspacing="0" cellpadding="0" border="0">
        <tr>
          <td valign="top" align="left">
            <a href="http://jakarta.apache.org/index.html">
              <img hspace="0" vspace="0" border="0" src="images/jakarta-logo.gif"/>
            </a>
          </td>
          <td width="100%" valign="top" align="left" bgcolor="#ffffff">
            <img hspace="0"
                 vspace="0"
                 border="0"
                 align="right"
                 src="images/header.gif"/>
          </td>
        </tr>
        <tr>
          <td width="100%" height="2" colspan="2"><hr noshade="" size="1"/></td>
        </tr>
      </table>
   
      <table width="100%" cellspacing="0" cellpadding="0" border="0">
        <tr>
          <td width="1%" valign="top"/>
          <td width="14%" valign="top" nowrap="1">
            <br/>
            <font face="arial,helvetica,sanserif">
              <br/>
              <xsl:copy-of select="/site/menu/node()|@*"/>
              <br/>
            </font>
          </td>
          <td width="*" valign="top" align="left">
            <xsl:copy-of select="/site/body/node()|@*"/>
          </td>
        </tr>
      </table>
      <br/>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr><td><hr noshade="" size="1"/></td></tr>
        <tr>
          <td align="center">
            <font face="arial,helvetica,sanserif" size="-1" color="#525D76">
              <i>
                Copyright &#169;1999-2001 by the Apache Software Foundation.
                All Rights Reserved.
              </i>
            </font>
          </td>
        </tr>
      </table>
    </body>
  </html>
  
  
  
  
  1.1                  jakarta-avalon/tools/documentation/stylesheets/system/directory2html.xsl
  
  Index: directory2html.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet version="1.0"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   xmlns:dir="http://apache.org/cocoon/directory/2.0">
  
    <xsl:template match="/">
     <html>
     <head>
      <title><xsl:value-of select="dir:directory/@name"/></title>
      </head>
      <body bgcolor="#ffffff">
       <h1>Directory Listing of <xsl:value-of select="dir:directory/@name"/></h1>
       <table border="0">
        <tr>
         <td>
          <a href="../"><i>parent directory</i></a>
         </td>
        </tr>
        <tr>
         <td>
          &#160;
         </td>
        </tr>
        <xsl:apply-templates/>
       </table>
      </body>
     </html>
    </xsl:template>
  
    <xsl:template match="dir:directory/dir:directory">
     <tr>
      <td>
       <a href="{@name}/"><i><xsl:value-of select="@name"/></i></a>
      </td>
      <td>
       <xsl:value-of select="@date"/>
      </td>
     </tr>
    </xsl:template>
  
    <xsl:template match="dir:file">
     <tr>
      <td>
       <a href="{@name}"><xsl:value-of select="@name"/></a>
      </td>
      <td>
       <xsl:value-of select="@date"/>
      </td>
     </tr>
    </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  jakarta-avalon/tools/documentation/stylesheets/system/error2html.xsl
  
  Index: error2html.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet version="1.0"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   xmlns:error="http://apache.org/cocoon/error/2.0">
  
  <xsl:template match="error:notify">
   <html>
    <head>
     <title>
      <xsl:value-of select="@type"/>:<xsl:value-of select="error:title"/>
     </title>
    </head>
    <body bgcolor="#ffffff">
     <table border="0" bgcolor="#000000" cellpadding="2" cellspacing="2">
      <tbody>
       <tr>
        <td bgcolor="#0086b2" colspan="2">
         <font color="#ffffff" face="arial,helvetica,sanserif" size="+2">
          <xsl:value-of select="error:title"/>
         </font>
        </td>
       </tr>
  
       <tr>
        <td bgcolor="#0086b2" valign="top">
         <font color="#ffffff" face="arial,helvetica,sanserif" size="+1">
          <xsl:value-of select="@type"/>
         </font>
        </td>
        <td bgcolor="#ffffff" >
         <xsl:apply-templates select="error:message"/>
        </td>
       </tr>
  
       <tr>
        <td bgcolor="#0086b2" valign="top" colspan="2">
         <font color="#ffffff" face="arial,helvetica,sanserif" size="+1">details</font>
        </td>
       </tr>
  
       <tr>
        <td bgcolor="#0086b2" valign="top">
         <font face="arial,helvetica,sanserif" color="#ffffff">from</font>
        </td>
        <td bgcolor="#ffffff">
         <font face="arial,helvetica,sanserif">
          <xsl:value-of select="@sender"/>
         </font>
        </td>
       </tr>
  
       <tr>
        <td bgcolor="#0086b2" valign="top">
         <font face="arial,helvetica,sanserif" color="#ffffff">source</font>
        </td>
        <td bgcolor="#ffffff">
         <font face="arial,helvetica,sanserif">
          <xsl:value-of select="error:source"/>
         </font>
        </td>
       </tr>
  
       <xsl:apply-templates select="error:description"/>
  
       <tr>
        <td bgcolor="#0086b2" valign="top" colspan="2">
         <font color="#ffffff" face="arial,helvetica,sanserif" size="+1">extra info</font>
        </td>
       </tr>
  
       <xsl:apply-templates select="error:extra"/>
  
      </tbody>
     </table>
    </body>
   </html>
  </xsl:template>
  
   <xsl:template match="error:description">
    <tr>
     <td bgcolor="#0086b2" valign="top">
      <font color="#ffffff" face="arial,helvetica,sanserif">description</font>
     </td>
     <td bgcolor="#ffffff">
      <font face="arial,helvetica,sanserif">
       <xsl:value-of select="."/>
      </font>
     </td>
    </tr>
   </xsl:template>
  
   <xsl:template match="error:message">
    <font face="arial,helvetica,sanserif">
     <xsl:value-of select="."/>
    </font>
   </xsl:template>
  
   <xsl:template match="error:extra">
    <tr>
     <td bgcolor="#0086b2" valign="top">
      <font color="#ffffff" face="arial,helvetica,sanserif">
       <xsl:value-of select="@description"/>
      </font>
     </td>
     <td bgcolor="#ffffff">
      <pre>
       <xsl:value-of select="."/>
      </pre>
     </td>
    </tr>
   </xsl:template>
  </xsl:stylesheet>
  
  
  
  1.1                  jakarta-avalon/tools/documentation/stylesheets/system/status2html.xsl
  
  Index: status2html.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet version="1.0"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   xmlns:status="http://apache.org/cocoon/status/2.0">
  
    <xsl:template match="status:statusinfo">
      <html>
        <head>
          <title>Cocoon2 status [<xsl:value-of select="@status:host"/>]</title>
        </head>
        <body bgcolor="white">
  
    <table bgcolor="#000000" cellspacing="0" cellpadding="2" width="100%">
      <tr>
        <td>
  
    <table bgcolor="#ffffff" noshade="noshade" cellspacing="0" cellpadding="6" width="100%">
      <tr>
        <td bgcolor="#0086b2" valign="top" align="left">
          <img src="images/cocoon.gif" border="0"/>
        </td>
        <td bgcolor="#0086b2" valign="top" align="right">
         <FONT face="arial,helvetica,sanserif" color="#ffffff">
  	[<xsl:value-of select="@status:host"/>] <xsl:value-of select="@status:date"/>
         </FONT>
        </td>
      </tr>
          </table>
  
        </td>
      </tr>
          </table>
  
    <table bgcolor="#000000" cellspacing="0" cellpadding="2" width="100%">
      <tr>
        <td bgcolor="#ffffff" valign="top" align="left" colspan="2" height="12">
        </td>
      </tr>
    </table>
  
            <xsl:apply-templates />
        </body>
      </html>
    </xsl:template>
  
    <xsl:template match="status:group">
     <table bgcolor="#000000" noshade="noshade" border="0" cellspacing="2" cellpadding="6" width="100%">
      <tr>
        <td bgcolor="#0086b2" valign="top" align="left" colspan="2">
         <FONT color="#ffffff" face="arial,helvetica,sanserif" size="+1">
          -<xsl:value-of select="@status:name"/>
         </FONT>
        </td>
      </tr>
      <tr>
        <td bgcolor="ffffff" width="100%" colspan="2">
          <table bgcolor="#000000" noshade="noshade" border="0" cellspacing="2" cellpadding="6" bordercolor="black" width="100%">
            <xsl:apply-templates />
          </table>
        </td>
      </tr>
     </table>
  
    <table bgcolor="#000000" cellspacing="0" cellpadding="2" width="100%">
      <tr>
        <td bgcolor="#ffffff" valign="top" align="left" colspan="2" height="8">
        </td>
      </tr>
    </table>
  
    </xsl:template>
  
    <xsl:template match="status:value">
      <tr>
        <td bgcolor="#0086b2" valign="top" align="left">
         <FONT face="arial,helvetica,sanserif" color="#ffffff">
          <xsl:value-of select="@status:name"/>
         </FONT>
        </td>
        <td bgcolor="ffffff" width="100%">
         <FONT face="arial,helvetica,sanserif">
          <xsl:value-of select="." />
         </FONT>
        </td>
      </tr>
  
    </xsl:template>
  </xsl:stylesheet>
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message