forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From je...@apache.org
Subject cvs commit: xml-forrest/src/resources/conf faq.xmap
Date Fri, 21 Mar 2003 15:01:59 GMT
jefft       2003/03/21 07:01:59

  Modified:    src/resources/conf faq.xmap
  Log:
  Come to the happy realization that in subsitemaps, we can be completely general
  about matching.  The <map:match> in the parent sitemap will prevent us from
  handling any non-FAQ files.  For example (from Cocoon), we can have a faq/
  directory filled with oddly named files, and if sitemap.xmap has:
  
  <map:match pattern="faq/**">
    <map:mount uri-prefix="" src="faq.xmap" check-reload="yes" />
  </map:match>
  
  Then all files in faq/* will be treated as FAQs.
  
  Revision  Changes    Path
  1.4       +7 -7      xml-forrest/src/resources/conf/faq.xmap
  
  Index: faq.xmap
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/conf/faq.xmap,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- faq.xmap	21 Mar 2003 11:22:16 -0000	1.3
  +++ faq.xmap	21 Mar 2003 15:01:59 -0000	1.4
  @@ -38,15 +38,15 @@
   
       <!--Unfortunately we need to override all the document2html stuff too,
       since notoc must be set to true. -->
  -      <map:match pattern="**body-faq.xml">
  -        <map:generate src="cocoon:/{1}faq.xml"/>
  +    <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}faq.xml"/>
  +          <map:parameter name="path" value="/{1}{2}.xml"/>
             <map:parameter name="notoc" value="true"/>
           </map:call>
         </map:match>
  @@ -56,14 +56,14 @@
         <!-- SOURCE FORMATS                                               -->
         <!-- ============================================================ -->
   
  -      <map:match pattern="**/faq.xml">
  -        <map:generate type="file" src="content/xdocs/{1}/faq.xml" />
  +      <map:match pattern="**/*.xml">
  +        <map:generate type="file" src="content/xdocs/{1}/{2}.xml" />
           <map:transform src="resources/stylesheets/faq2document.xsl" label="content"
/>
           <map:serialize type="xml"/>
         </map:match>
   
  -      <map:match pattern="faq.xml">
  -        <map:generate type="file" src="content/xdocs/faq.xml" />
  +      <map:match pattern="*.xml">
  +        <map:generate type="file" src="content/xdocs/{1}.xml" />
           <map:transform src="resources/stylesheets/faq2document.xsl" label="content"
/>
           <map:serialize type="xml"/>
         </map:match>
  
  
  

Mime
View raw message