cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From je...@apache.org
Subject cvs commit: cocoon-2.1/src/documentation sitemap-localdocs.xmap sitemap.xmap sitemap.xmap.forrest05
Date Wed, 26 Mar 2003 13:28:00 GMT
jefft       2003/03/26 05:28:00

  Modified:    src/targets docs-build.xml
               src/documentation sitemap.xmap
  Added:       src/documentation sitemap-localdocs.xmap
  Removed:     src/documentation sitemap.xmap.forrest05
  Log:
  Get the Forrest-built site working (almost) as well as built-in rendering.
  - Rename old sitemap.xmap to sitemap-localdocs.xmap
  - Add a <move> in the Ant script, which renames sitemap-localdocs.xmap to
    sitemap.xmap in the temporary context
  - Rename the CVS Forrest sitemap (sitemap.xmap.forrest05) to sitemap.xmap
  
  Revision  Changes    Path
  1.7       +2 -0      cocoon-2.1/src/targets/docs-build.xml
  
  Index: docs-build.xml
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/targets/docs-build.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- docs-build.xml	24 Mar 2003 15:31:33 -0000	1.6
  +++ docs-build.xml	26 Mar 2003 13:28:00 -0000	1.7
  @@ -24,6 +24,8 @@
           <exclude name="images/**"/>
         </fileset>
       </copy>
  +    <move file="${build.context}/sitemap-localdocs.xmap"
  +      tofile="${build.context}/sitemap.xmap"/>
   
       <!-- Copy images -->
       <copy todir="${build.context}/images" filtering="off">
  
  
  
  1.5       +326 -239  cocoon-2.1/src/documentation/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/documentation/sitemap.xmap,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- sitemap.xmap	23 Mar 2003 07:20:38 -0000	1.4
  +++ sitemap.xmap	26 Mar 2003 13:28:00 -0000	1.5
  @@ -1,251 +1,338 @@
   <?xml version="1.0"?>
  -<!-- $Id$ -->
  +<!-- This sitemap is an overridden version of the main 'driver' sitemap from
  +Apache Forrest v0.5 ('stable' tag).  Cocoon-specific sections are marked as
  +such. -->
   <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
  +  <map:components>
  +    <map:generators default="file">
  +      <map:generator name="file" src="org.apache.cocoon.generation.FileGenerator" label="content"
/>
  +      <!--
  +      <map:generator name="html" src="org.apache.cocoon.generation.HTMLGenerator" label="content"
/>
  +      <map:generator name="directory" src="org.apache.cocoon.generation.DirectoryGenerator"
label="content" />
  +      <map:generator name="libre" src="org.apache.forrest.yer.use.cocoon.HierarchyGenerator"
label="content" />
  +      <map:generator name="textparser" src="org.apache.cocoon.generation.TextParserGenerator"
label="content" />
  +      -->
  +    </map:generators>
  +
  +    <map:transformers default="xslt">
  +      <map:transformer name="idgen" src="org.apache.cocoon.transformation.IdGeneratorTransformer">
  +        <element>//*[local-name() = 'section']</element>
  +        <id>title/text()</id>
  +      </map:transformer>
  +
  +      <map:transformer name="linkrewriter" logger="sitemap.transformer.linkrewriter"
src="org.apache.cocoon.transformation.LinkRewriterTransformer">
  +        <input-module name="linkmap">
  +          <file src="{src}" reloadable="false" />
  +        </input-module>
  +        <input-module name="site">
  +          <input-module name="linkmap">
  +            <file src="{src}" reloadable="false" />
  +          </input-module>
  +          <prefix>/site//</prefix>
  +          <suffix>/@href</suffix>
  +        </input-module>
  +      </map:transformer>
  +
  +      <map:transformer name="xpath" logger="sitemap.transformer.xpath" src="org.apache.cocoon.transformation.XPathTransformer"
/>
  +
  +      <map:transformer name="xslt" src="org.apache.cocoon.transformation.TraxTransformer"
logger="sitemap.transformer.xsltc" pool-max="32" pool-min="8" pool-grow="2">
  +        <use-request-parameters>false</use-request-parameters>
  +        <use-browser-capabilities-db>false</use-browser-capabilities-db>
  +        <use-deli>false</use-deli>
  +        <transformer-factory>org.apache.xalan.processor.TransformerFactoryImpl</transformer-factory>
  +        <!--<transformer-factory>com.icl.saxon.TransformerFactoryImpl</transformer-factory>-->
  +        <!--<transformer-factory>org.apache.xalan.xsltc.trax.TransformerFactoryImpl</transformer-factory>-->
  +      </map:transformer>
  +
  +      <map:transformer name="xinclude" src="org.apache.cocoon.transformation.XIncludeTransformer"
logger="sitemap.transformer.xinclude" pool-grow="2" pool-max="16" pool-min="2" />
  +      <map:transformer logger="sitemap.transformer.lexer" name="lexer" src="org.apache.cocoon.transformation.LexicalTransformer"/>
  +      <map:transformer logger="sitemap.transformer.lexer" name="parser" src="org.apache.cocoon.transformation.ParserTransformer"/>
  +      <map:transformer logger="sitemap.transformer.lexer" name="pattern" src="org.apache.cocoon.transformation.PatternTransformer"/>
  +    </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">
  +        <doctype-public>-//W3C//DTD HTML 4.01 Transitional//EN</doctype-public>
  +        <doctype-system>http://www.w3.org/TR/html4/loose.dtd</doctype-system>
  +        <encoding>ISO-8859-1</encoding>
  +      </map:serializer>
  +
  +      <map:serializer name="xml" mime-type="text/xml" src="org.apache.cocoon.serialization.XMLSerializer">
  +        <encoding>ISO-8859-1</encoding>
  +      </map:serializer>
  +
  +      <map:serializer name="fo2pdf" src="org.apache.cocoon.serialization.FOPSerializer"
mime-type="application/pdf" />
  +
  +      <map:serializer name="links" src="org.apache.cocoon.serialization.LinkSerializer">
  +        <encoding>ISO-8859-1</encoding>
  +      </map:serializer>
  +
  +      <map:serializer name="svg2jpeg" mime-type="image/jpeg" src="org.apache.cocoon.serialization.SVGSerializer">
  +        <parameter name="quality" type="float" value="1.0"/>
  +      </map:serializer>
  +
  +      <map:serializer mime-type="image/png" name="svg2png" src="org.apache.cocoon.serialization.SVGSerializer"/>
  +      <!--
  +      <map:serializer mime-type="application/x-shockwave-flash" name="swf" src="org.apache.cocoon.serialization.SWFSerializer"/>
  +      <map:serializer mime-type="application/msword" name="fo2rtf" src="org.apache.cocoon.serialization.RTFSerializer"/>
  +      -->
  +    </map:serializers>
  +
  +    <map:matchers default="wildcard">
  +      <map:matcher name="wildcard" src="org.apache.cocoon.matching.WildcardURIMatcher"/>
  +      <map:matcher name="regexp" src="org.apache.cocoon.matching.RegexpURIMatcher"/>
  +    </map:matchers>
  +
  +    <map:actions>
  +      <!-- <map:action logger="sitemap.action.request" name="request" src="org.apache.cocoon.acting.RequestParamAction"/>
-->
  +      <map:action logger="sitemap.action.resource-exists" name="resource-exists" src="org.apache.cocoon.acting.ResourceExistsAction"/>
  +
  +    </map:actions>
  +
  +    <map:pipes default="caching">
  +      <map:pipe name="caching" src="org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline"/>
  +      <map:pipe name="noncaching" src="org.apache.cocoon.components.pipeline.impl.NonCachingProcessingPipeline"/>
  +      <map:pipe name="profile-caching" src="org.apache.cocoon.components.profiler.ProfilingCachingProcessingPipeline"/>
  +      <map:pipe name="profile-noncaching" src="org.apache.cocoon.components.profiler.ProfilingNonCachingProcessingPipeline"/>
  +    </map:pipes>
  +  </map:components>
  +
  +  <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="resources/stylesheets/filterlinks.xsl"/>
  +      <map:serialize type="links"/>
  +    </map:view>
  +  </map:views>
   
  -<!-- =========================== Components ================================ -->
  -
  - <map:components>
  -
  -  <map:generators default="file">
  -   <map:generator  name="file"        src="org.apache.cocoon.generation.FileGenerator"
label="content"/>
  -   <!-- FIXME: Change this once better view handling is implemented -->
  -   <map:generator  name="file-nolabel" src="org.apache.cocoon.generation.FileGenerator"/>
  -  </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: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>ISO-8859-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:serializers>
  -
  -  <map:matchers default="wildcard">
  -   <map:matcher name="wildcard" src="org.apache.cocoon.matching.WildcardURIMatcher"/>
  -  </map:matchers>
  -
  -  <map:pipes default="caching">
  -     <map:pipe name="caching" src="org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline"
  -                   logger="core.processing-pipeline" pool-max="32" pool-min="8" pool-grow="4"/>
  -  </map:pipes>
  -
  - </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>
  -
  -<!-- =========================== Resources ================================= -->
  -  
     <map:resources>
  -    <map:resource name="book">
  -      <map:generate src="xdocs/{../1}book.xml"/>
  -        <map:transform src="stylesheets/book2menu.xsl">
  -          <map:parameter name="use-request-parameters" value="true"/>
  -          <map:parameter name="resource" value="{resource}.html"/>
  -        </map:transform>
  -        <map:serialize type="xml"/>        
  +    <map:resource name="skinit">
  +      <map:transform src="skins/{forrest:skin}/xslt/html/{type}.xsl">
  +        <map:parameter name="notoc" value="{notoc}"/>
  +        <!-- For backwards-compat with 0.2 - 0.4 skins -->
  +        <map:parameter name="isfaq" value="{notoc}"/>
  +        <map:parameter name="nopdf" value="{nopdf}"/>
  +        <map:parameter name="path" value="{path}"/>
  +        <!-- Can set an alternative project skinconfig here 
  +        <map:parameter name="config-file" value="../../../../skinconf.xml"/>
  +        -->
  +      </map:transform>
  +
  +      <map:serialize/>
       </map:resource>
  -  </map:resources>
   
  -<!-- =========================== Pipelines ================================= -->
  +  </map:resources>
   
  - <map:pipelines>
  +  <!-- =========================== Pipelines ================================= -->
  +  <map:pipelines>
   
  -  <!-- Cocoon documentation pipeline -->
  -  <map:pipeline>
  -   <map:match pattern="">
  -    <map:redirect-to uri="index.html"/>
  -   </map:match>
  -
  -  <!-- Process book.xml for nested levels -->
  -  <map:match pattern="**book-**/*.xml">
  -    <map:call resource="book">
  -      <map:parameter name="resource" value="{3}" />
  -    </map:call>
  -  </map:match>
  -
  -  <!-- Process book.xml -->  
  -  <map:match pattern="**book-**.xml">
  -    <map:call resource="book">
  -      <map:parameter name="resource" value="{2}" />                
  -    </map:call>
  -  </map:match>            
  -
  -   <!-- the main ToDo doc -->
  -   <map:match pattern="body-todo.xml">
  -     <map:generate type="file-nolabel" src="xdocs/todo.xml"/>
  -     <map:transform src="stylesheets/todo2document.xsl" label="content"/>
  -     <map:transform src="stylesheets/document2html.xsl"/>
  -     <map:serialize/>
  -   </map:match>
  -
  -   <!-- other ToDo docs -->
  -   <map:match pattern="body-**/todo-*.xml">
  -     <map:generate type="file-nolabel" src="xdocs/{1}/todo-{2}.xml"/>
  -     <map:transform src="stylesheets/todo2document.xsl" label="content"/>
  -     <map:transform src="stylesheets/document2html.xsl"/>
  -     <map:serialize/>
  -   </map:match>
  -
  -   <!-- the main Changes doc -->
  -   <map:match pattern="body-changes.xml">
  -     <map:generate type="file-nolabel" src="xdocs/changes.xml"/>
  -     <map:transform src="stylesheets/changes2document.xsl" label="content"/>
  -     <map:transform src="stylesheets/document2html.xsl"/>
  -     <map:serialize/>
  -   </map:match>
  -   
  -   <!-- other Changes docs -->
  -   <map:match pattern="body-**/changes-*.xml">
  -     <map:generate type="file-nolabel" src="xdocs/{1}/changes-{2}.xml"/>
  -     <map:transform src="stylesheets/changes2document.xsl" label="content"/>
  -     <map:transform src="stylesheets/document2html.xsl"/>
  -     <map:serialize/>
  -   </map:match>
  -      
  -   <!-- FAQ docs -->
  -   <map:match pattern="body-**/faq-*.xml">
  -     <map:generate type="file-nolabel" src="xdocs/{1}/faq-{2}.xml"/>
  -     <map:transform src="stylesheets/faqcommon.xsl" label="content"/>
  -     <map:transform src="stylesheets/faq2document.xsl" label="content"/>
  -     <map:transform src="stylesheets/document2html.xsl"/>
  -     <map:serialize/>
  -   </map:match>
  -
  -   <!-- 
  -     Generate the "doclist" - list of all documentation
  -     The first match generates each book.xml and adds a new attribute "uri".
  -     The second match aggregates each book.xml into a doclist and
  -     then converts it to a document.
  -   -->
  -   <map:match pattern="doclist/xdocs/**book.xml">
  -     <map:generate src="xdocs/{1}book.xml"/>
  -     <map:transform src="stylesheets/doclist.xsl">
  -       <map:parameter name="uri" value="{1}"/>
  -     </map:transform>
  -     <map:serialize type="xml"/>
  -   </map:match>
  -   
  -   <map:match pattern="body-doclist.xml">
  -     <map:aggregate element="doclist">
  -       <map:part src="cocoon:/doclist/xdocs/book.xml"/>
  -       <map:part src="cocoon:/doclist/xdocs/installing/book.xml"/>
  -       <map:part src="cocoon:/doclist/xdocs/userdocs/book.xml"/>
  -       <map:part src="cocoon:/doclist/xdocs/userdocs/concepts/book.xml"/>
  -       <map:part src="cocoon:/doclist/xdocs/userdocs/generators/book.xml"/>
  -       <map:part src="cocoon:/doclist/xdocs/userdocs/transformers/book.xml"/>
  -       <map:part src="cocoon:/doclist/xdocs/userdocs/serializers/book.xml"/>
  -       <map:part src="cocoon:/doclist/xdocs/userdocs/matchers/book.xml"/>
  -       <map:part src="cocoon:/doclist/xdocs/userdocs/selectors/book.xml"/>
  -       <map:part src="cocoon:/doclist/xdocs/userdocs/actions/book.xml"/>
  -       <map:part src="cocoon:/doclist/xdocs/userdocs/readers/book.xml"/>
  -       <map:part src="cocoon:/doclist/xdocs/userdocs/xsp/book.xml"/>
  -       <map:part src="cocoon:/doclist/xdocs/developing/book.xml"/>
  -       <map:part src="cocoon:/doclist/xdocs/developing/webapps/book.xml"/>
  -       <map:part src="cocoon:/doclist/xdocs/tutorial/book.xml"/>
  -       <map:part src="cocoon:/doclist/xdocs/howto/book.xml"/>
  -       <map:part src="cocoon:/doclist/xdocs/faq/book.xml"/>
  -       <map:part src="cocoon:/doclist/xdocs/snippet/book.xml"/>
  -       <map:part src="cocoon:/doclist/xdocs/plan/book.xml"/>
  -       <map:part src="cocoon:/doclist/xdocs/link/book.xml"/>
  -     </map:aggregate>
  -     <map:transform src="stylesheets/doclist2document.xsl"/>
  -     <map:transform src="stylesheets/document2html.xsl"/>
  -     <map:serialize type="html"/>
  -   </map:match>
  -
  -   <map:match pattern="body-**.xml">
  -     <map:generate src="xdocs/{1}.xml"/>
  -     <map:transform src="stylesheets/document2html.xsl"/>
  -     <map:serialize/>
  -   </map:match>
  -
  -   <map:match pattern="*.html">
  -    <map:aggregate element="site">
  -     <map:part src="cocoon:/book-{1}.xml"/>
  -     <map:part src="cocoon:/body-{1}.xml" label="content"/>
  -    </map:aggregate>
  -    <map:transform src="stylesheets/site2xhtml.xsl">
  -     <map:parameter name="use-request-parameters" value="true"/>
  -     <map:parameter name="header" value="graphics/{1}-header.jpg"/>
  -    </map:transform>
  -    <map:serialize/>
  -   </map:match>
  -
  -   <map:match pattern="**/*.html">
  -    <map:aggregate element="site">
  -     <map:part src="cocoon:/{1}/book-{1}/{2}.xml"/>
  -     <map:part src="cocoon:/body-{1}/{2}.xml" label="content"/>
  -    </map:aggregate>
  -    <map:transform src="stylesheets/site2xhtml.xsl">
  -     <map:parameter name="use-request-parameters" value="true"/>
  -     <map:parameter name="header" value="graphics/{2}-header.jpg"/>
  -    </map:transform>
  -    <map:serialize/>
  -   </map:match>
  -
  -   <!-- ================  Static  =========================== -->
  -
  -   <map:match pattern="**sample/**">
  -    <map:read src="xdocs/{1}sample/{2}" mime-type="text/plain"/>
  -   </map:match>
  -
  -   <map:match pattern="**.txt">
  -    <map:read src="xdocs/{1}.txt" mime-type="text/plain"/>
  -   </map:match>
  -
  -   <map:match pattern="**resources/script.js">
  -     <map:read src="stylesheets/script-cli.js" mime-type="application/javascript"/>
  -   </map:match>
  -
  -   <map:match pattern="**resources/**.js">
  -     <map:read src="stylesheets/{2}.js" mime-type="application/javascript"/>
  -   </map:match>
  -
  -   <map:match pattern="**.css">
  -    <map:read src="{1}.css" mime-type="text/css"/>
  -   </map:match>
  -
  -   <map:match pattern="favicon.ico">
  -    <map:read src="images/cocoon.ico"/>
  -   </map:match>
  -   
  -   <map:match pattern="**images/*.png">
  -    <map:read src="images/{2}.png" mime-type="image/png"/>
  -   </map:match>
  -
  -   <map:match pattern="**images/*.jpg">
  -    <map:read src="images/{2}.jpg" mime-type="image/jpeg"/>
  -   </map:match>
  -
  -   <map:match pattern="**images/*.gif">
  -    <map:read src="images/{2}.gif" mime-type="image/gif"/>
  -   </map:match>
  +    <map:pipeline internal-only="false">
   
  -  </map:pipeline>
  +      <!-- ============================================================ -->
  +      <!-- OUTPUT FORMATS                                               -->
  +      <!-- ============================================================ -->
  +
  +      <!-- COCOON SPECIFIC -->
  +      <map:match pattern="**.txt">
  +        <!-- Handle .txt files (incorrectly) placed in xdocs.  Forrest will
  +        eventually evolve to handle mixed-content scenarios  (JT) -->
  +        <map:read src="content/xdocs/{0}" mime-type="text/plain"/>
  +      </map:match>
  +      <!-- /COCOON SPECIFIC -->
  +
  +      <map:match type="regexp" pattern=".+">
  +        <map:act type="resource-exists">
  +          <map:parameter name="url" value="content/{0}" />
  +          <map:mount uri-prefix="" src="raw.xmap" check-reload="yes" />
  +        </map:act>
  +      </map:match>
  +
  +      <map:match pattern="*.html">
  +        <map:aggregate element="site">
  +          <map:part src="cocoon:/tab-{1}.xml"/>
  +          <map:part src="cocoon:/menu-{1}.xml"/>
  +          <map:part src="cocoon:/body-{1}.xml"/>
  +        </map:aggregate>
  +        <map:call resource="skinit">
  +          <map:parameter name="type" value="site2xhtml"/>
  +          <map:parameter name="path" value="{0}"/>
  +        </map:call>
  +      </map:match>         
  +
  +      <map:match pattern="**/*.html">
  +        <map:aggregate element="site">
  +          <map:part src="cocoon:/{1}/tab-{2}.xml"/>
  +          <map:part src="cocoon:/{1}/menu-{2}.xml"/>
  +          <map:part src="cocoon:/{1}/body-{2}.xml"/>
  +        </map:aggregate>
  +        <map:call resource="skinit">
  +          <map:parameter name="type" value="site2xhtml"/>
  +          <map:parameter name="path" value="{0}"/>
  +        </map:call>
  +      </map:match>
  +
  +      <map:match pattern="**.pdf">
  +        <map:generate src="cocoon:/{1}.xml"/>
  +        <map:transform src="skins/{forrest:skin}/xslt/fo/document2fo.xsl"/>
  +        <map:serialize type="fo2pdf"/>
  +      </map:match>
  +
  +    </map:pipeline>
  +
  +    <!-- ============================================================ -->
  +    <!-- INTERMEDIATE FORMATS                                         -->
  +    <!-- ============================================================ -->
  +    <map:pipeline internal-only="false">
  +
  +      <!-- External matches -->
  +      <!-- (HTML rendered directly from special formats) -->
  +
  +      <!-- COCOON SPECIFIC -->
  +      <map:match pattern="faq/**body-*.xml">
  +        <map:mount uri-prefix="" src="faq.xmap" check-reload="yes" />
  +      </map:match>
  +      <!-- /COCOON SPECIFIC -->
  +
  +      <map:match pattern="**body-faq.xml">
  +        <map:mount uri-prefix="" src="faq.xmap" check-reload="yes" />
  +      </map:match>
  +
  +      <map:match pattern="**body-*.xml">
  +        <map:act type="resource-exists">
  +          <map:parameter name="url" value="content/xdocs/{1}{2}.ehtml" />
  +          <map:generate src="content/xdocs/{../1}{../2}.ehtml" />
  +          <map:transform src="resources/stylesheets/html2htmlbody.xsl" />
  +          <map:serialize type="xml" />
  +        </map:act>
  +      </map:match>
  +
  +      <!-- Default matches -->
  +      <!-- (HTML rendered from doc-v11 intermediate format -->
  +      <map:match pattern="**body-*.xml">
  +        <map:generate src="cocoon:/{1}{2}.xml"/>
  +        <map:transform type="xinclude"/>
  +        <map:transform type="linkrewriter" src="cocoon:/{1}linkmap">
  +          <map:parameter name="schemes" value="site ext"/>
  +        </map:transform>
  +        <map:call resource="skinit">
  +          <map:parameter name="type" value="document2html"/>
  +          <map:parameter name="path" value="/{1}{2}.xml"/>
  +          <map:parameter name="notoc" value="false"/>
  +        </map:call>
  +      </map:match>
  +
  +      <map:match pattern="**menu-*.xml">
  +        <map:generate src="cocoon:/{1}book.xml"/>
  +        <map:transform type="linkrewriter" src="cocoon:/{1}linkmap">
  +          <map:parameter name="schemes" value="site ext"/>
  +        </map:transform>
  +        <map:call resource="skinit">
  +          <map:parameter name="type" value="book2menu"/>
  +          <map:parameter name="path" value="/{1}{2}.xml"/>
  +        </map:call>
  +      </map:match>
  +
  +      <map:match pattern="**tab-*.xml">
  +        <map:generate src="cocoon:/{1}tab.xml" />
  +        <map:transform type="linkrewriter" src="cocoon:/{1}linkmap">
  +          <map:parameter name="schemes" value="site ext"/>
  +        </map:transform>
  +        <map:call resource="skinit">
  +          <map:parameter name="type" value="tab2menu"/>
  +          <map:parameter name="path" value="{1}{2}"/>
  +        </map:call>
  +      </map:match>
  +    </map:pipeline>
  +
  +    <!-- ============================================================ -->
  +    <!-- SOURCE FORMATS                                               -->
  +    <!-- ============================================================ -->
  +    <map:pipeline internal-only="false">
  +      <map:match pattern="**book.xml">
  +        <map:mount uri-prefix="" src="navigation.xmap" check-reload="yes" />
  +      </map:match>
  +      <map:match pattern="**tab.xml">
  +        <map:mount uri-prefix="" src="navigation.xmap" check-reload="yes" />
  +      </map:match>
  +
  +      <map:match pattern="**changes.xml">
  +        <map:mount uri-prefix="" src="status.xmap" check-reload="yes" />
  +      </map:match>
  +
  +      <map:match pattern="**changes.rss">
  +        <map:mount uri-prefix="" src="status.xmap" check-reload="yes" />
  +      </map:match>
  +
  +      <map:match pattern="**todo.xml">
  +        <map:mount uri-prefix="" src="status.xmap" check-reload="yes" />
  +      </map:match>
  +
  +      <map:match pattern="**dtdx.xml">
  +        <map:mount uri-prefix="" src="dtd.xmap" check-reload="yes" />
  +      </map:match>
  +
  +      <map:match pattern="**linkmap**">
  +        <map:mount uri-prefix="" src="linkmap.xmap" check-reload="yes" />
  +      </map:match>
  +
  +      <map:match pattern="community/*/**">
  +        <map:mount uri-prefix="" src="revisions.xmap" check-reload="yes" />
  +      </map:match>
  +
  +      <map:match pattern="**issues.xml">
  +        <map:mount uri-prefix="" src="issues.xmap" check-reload="yes" />
  +      </map:match>
  +
  +      <!-- COCOON SPECIFIC -->
  +      <map:match pattern="faq/**.xml">
  +        <map:mount uri-prefix="" src="faq.xmap" check-reload="yes" />
  +      </map:match>
  +      <!-- /COCOON SPECIFIC -->
  +
  +      <map:match pattern="**faq.xml">
  +        <map:mount uri-prefix="" src="faq.xmap" check-reload="yes" />
  +      </map:match>
  +
  +      <map:match pattern="profiler">
  +        <map:mount uri-prefix="" src="profiler.xmap" check-reload="yes" />
  +      </map:match>
  +
  +      <map:match pattern="**.js">
  +        <map:mount uri-prefix="" src="static.xmap" check-reload="yes" />
  +      </map:match>
  +
  +      <map:match pattern="**.css">
  +        <map:mount uri-prefix="" src="static.xmap" check-reload="yes" />
  +      </map:match>
  +
  +      <map:match pattern="**images**">
  +        <map:mount uri-prefix="" src="static.xmap" check-reload="yes" />
  +      </map:match>
  +
  +      <map:match pattern="**favicon.ico">
  +        <map:mount uri-prefix="" src="static.xmap" check-reload="yes" />
  +      </map:match>
  +
  +      <map:match pattern="**.xml">
  +        <map:mount uri-prefix="" src="forrest.xmap" check-reload="yes" />
  +      </map:match>
  +
  +      <map:match pattern="">
  +        <map:mount uri-prefix="" src="redirect.xmap" check-reload="yes" />
  +      </map:match>
  +
  +      <map:match pattern="**/">
  +        <map:mount uri-prefix="" src="redirect.xmap" check-reload="yes" />
  +      </map:match>
   
  - </map:pipelines>
  +    </map:pipeline>
   
  +  </map:pipelines>
   </map:sitemap>
  
  
  
  1.1                  cocoon-2.1/src/documentation/sitemap-localdocs.xmap
  
  Index: sitemap-localdocs.xmap
  ===================================================================
  <?xml version="1.0"?>
  <!-- This sitemap is written specifically for rendering Cocoon's docs.  When the
  Ant 'docs' target is invoked, it will be renamed to sitemap.xmap in a temporary
  context.  The sitemap.xmap file here is an override of Forrest's -->
  <!-- $Id: sitemap-localdocs.xmap,v 1.1 2003/03/26 13:28:00 jefft Exp $ -->
  <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"/>
     <!-- FIXME: Change this once better view handling is implemented -->
     <map:generator  name="file-nolabel" src="org.apache.cocoon.generation.FileGenerator"/>
    </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: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>ISO-8859-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:serializers>
  
    <map:matchers default="wildcard">
     <map:matcher name="wildcard" src="org.apache.cocoon.matching.WildcardURIMatcher"/>
    </map:matchers>
  
    <map:pipes default="caching">
       <map:pipe name="caching" src="org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline"
                     logger="core.processing-pipeline" pool-max="32" pool-min="8" pool-grow="4"/>
    </map:pipes>
  
   </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>
  
  <!-- =========================== Resources ================================= -->
    
    <map:resources>
      <map:resource name="book">
        <map:generate src="xdocs/{../1}book.xml"/>
          <map:transform src="stylesheets/book2menu.xsl">
            <map:parameter name="use-request-parameters" value="true"/>
            <map:parameter name="resource" value="{resource}.html"/>
          </map:transform>
          <map:serialize type="xml"/>        
      </map:resource>
    </map:resources>
  
  <!-- =========================== Pipelines ================================= -->
  
   <map:pipelines>
  
    <!-- Cocoon documentation pipeline -->
    <map:pipeline>
     <map:match pattern="">
      <map:redirect-to uri="index.html"/>
     </map:match>
  
    <!-- Process book.xml for nested levels -->
    <map:match pattern="**book-**/*.xml">
      <map:call resource="book">
        <map:parameter name="resource" value="{3}" />
      </map:call>
    </map:match>
  
    <!-- Process book.xml -->  
    <map:match pattern="**book-**.xml">
      <map:call resource="book">
        <map:parameter name="resource" value="{2}" />                
      </map:call>
    </map:match>            
  
     <!-- the main ToDo doc -->
     <map:match pattern="body-todo.xml">
       <map:generate type="file-nolabel" src="xdocs/todo.xml"/>
       <map:transform src="stylesheets/todo2document.xsl" label="content"/>
       <map:transform src="stylesheets/document2html.xsl"/>
       <map:serialize/>
     </map:match>
  
     <!-- other ToDo docs -->
     <map:match pattern="body-**/todo-*.xml">
       <map:generate type="file-nolabel" src="xdocs/{1}/todo-{2}.xml"/>
       <map:transform src="stylesheets/todo2document.xsl" label="content"/>
       <map:transform src="stylesheets/document2html.xsl"/>
       <map:serialize/>
     </map:match>
  
     <!-- the main Changes doc -->
     <map:match pattern="body-changes.xml">
       <map:generate type="file-nolabel" src="xdocs/changes.xml"/>
       <map:transform src="stylesheets/changes2document.xsl" label="content"/>
       <map:transform src="stylesheets/document2html.xsl"/>
       <map:serialize/>
     </map:match>
     
     <!-- other Changes docs -->
     <map:match pattern="body-**/changes-*.xml">
       <map:generate type="file-nolabel" src="xdocs/{1}/changes-{2}.xml"/>
       <map:transform src="stylesheets/changes2document.xsl" label="content"/>
       <map:transform src="stylesheets/document2html.xsl"/>
       <map:serialize/>
     </map:match>
        
     <!-- FAQ docs -->
     <map:match pattern="body-**/faq-*.xml">
       <map:generate type="file-nolabel" src="xdocs/{1}/faq-{2}.xml"/>
       <map:transform src="stylesheets/faqcommon.xsl" label="content"/>
       <map:transform src="stylesheets/faq2document.xsl" label="content"/>
       <map:transform src="stylesheets/document2html.xsl"/>
       <map:serialize/>
     </map:match>
  
     <!-- 
       Generate the "doclist" - list of all documentation
       The first match generates each book.xml and adds a new attribute "uri".
       The second match aggregates each book.xml into a doclist and
       then converts it to a document.
     -->
     <map:match pattern="doclist/xdocs/**book.xml">
       <map:generate src="xdocs/{1}book.xml"/>
       <map:transform src="stylesheets/doclist.xsl">
         <map:parameter name="uri" value="{1}"/>
       </map:transform>
       <map:serialize type="xml"/>
     </map:match>
     
     <map:match pattern="body-doclist.xml">
       <map:aggregate element="doclist">
         <map:part src="cocoon:/doclist/xdocs/book.xml"/>
         <map:part src="cocoon:/doclist/xdocs/installing/book.xml"/>
         <map:part src="cocoon:/doclist/xdocs/userdocs/book.xml"/>
         <map:part src="cocoon:/doclist/xdocs/userdocs/concepts/book.xml"/>
         <map:part src="cocoon:/doclist/xdocs/userdocs/generators/book.xml"/>
         <map:part src="cocoon:/doclist/xdocs/userdocs/transformers/book.xml"/>
         <map:part src="cocoon:/doclist/xdocs/userdocs/serializers/book.xml"/>
         <map:part src="cocoon:/doclist/xdocs/userdocs/matchers/book.xml"/>
         <map:part src="cocoon:/doclist/xdocs/userdocs/selectors/book.xml"/>
         <map:part src="cocoon:/doclist/xdocs/userdocs/actions/book.xml"/>
         <map:part src="cocoon:/doclist/xdocs/userdocs/readers/book.xml"/>
         <map:part src="cocoon:/doclist/xdocs/userdocs/xsp/book.xml"/>
         <map:part src="cocoon:/doclist/xdocs/developing/book.xml"/>
         <map:part src="cocoon:/doclist/xdocs/developing/webapps/book.xml"/>
         <map:part src="cocoon:/doclist/xdocs/tutorial/book.xml"/>
         <map:part src="cocoon:/doclist/xdocs/howto/book.xml"/>
         <map:part src="cocoon:/doclist/xdocs/faq/book.xml"/>
         <map:part src="cocoon:/doclist/xdocs/snippet/book.xml"/>
         <map:part src="cocoon:/doclist/xdocs/plan/book.xml"/>
         <map:part src="cocoon:/doclist/xdocs/link/book.xml"/>
       </map:aggregate>
       <map:transform src="stylesheets/doclist2document.xsl"/>
       <map:transform src="stylesheets/document2html.xsl"/>
       <map:serialize type="html"/>
     </map:match>
  
     <map:match pattern="body-**.xml">
       <map:generate src="xdocs/{1}.xml"/>
       <map:transform src="stylesheets/document2html.xsl"/>
       <map:serialize/>
     </map:match>
  
     <map:match pattern="*.html">
      <map:aggregate element="site">
       <map:part src="cocoon:/book-{1}.xml"/>
       <map:part src="cocoon:/body-{1}.xml" label="content"/>
      </map:aggregate>
      <map:transform src="stylesheets/site2xhtml.xsl">
       <map:parameter name="use-request-parameters" value="true"/>
       <map:parameter name="header" value="graphics/{1}-header.jpg"/>
      </map:transform>
      <map:serialize/>
     </map:match>
  
     <map:match pattern="**/*.html">
      <map:aggregate element="site">
       <map:part src="cocoon:/{1}/book-{1}/{2}.xml"/>
       <map:part src="cocoon:/body-{1}/{2}.xml" label="content"/>
      </map:aggregate>
      <map:transform src="stylesheets/site2xhtml.xsl">
       <map:parameter name="use-request-parameters" value="true"/>
       <map:parameter name="header" value="graphics/{2}-header.jpg"/>
      </map:transform>
      <map:serialize/>
     </map:match>
  
     <!-- ================  Static  =========================== -->
  
     <map:match pattern="**sample/**">
      <map:read src="xdocs/{1}sample/{2}" mime-type="text/plain"/>
     </map:match>
  
     <map:match pattern="**.txt">
      <map:read src="xdocs/{1}.txt" mime-type="text/plain"/>
     </map:match>
  
     <map:match pattern="**resources/script.js">
       <map:read src="stylesheets/script-cli.js" mime-type="application/javascript"/>
     </map:match>
  
     <map:match pattern="**resources/**.js">
       <map:read src="stylesheets/{2}.js" mime-type="application/javascript"/>
     </map:match>
  
     <map:match pattern="**.css">
      <map:read src="{1}.css" mime-type="text/css"/>
     </map:match>
  
     <map:match pattern="favicon.ico">
      <map:read src="images/cocoon.ico"/>
     </map:match>
     
     <map:match pattern="**images/*.png">
      <map:read src="images/{2}.png" mime-type="image/png"/>
     </map:match>
  
     <map:match pattern="**images/*.jpg">
      <map:read src="images/{2}.jpg" mime-type="image/jpeg"/>
     </map:match>
  
     <map:match pattern="**images/*.gif">
      <map:read src="images/{2}.gif" mime-type="image/gif"/>
     </map:match>
  
    </map:pipeline>
  
   </map:pipelines>
  
  </map:sitemap>
  
  
  

Mime
View raw message