forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicola Ken Barozzi <nicola...@apache.org>
Subject Re: [PROPOSAL] Forrest site configuration
Date Wed, 08 Oct 2003 12:46:50 GMT

Nicola Ken Barozzi wrote:

...
> Finally, here is the proposal of an initial srcconf.xml:

Here is an update. The previous version had also a map:components 
section. I removed it as the ones used are only the ones in the sitemap.

I also removed the map namespace, and srcconf->sourceconf

  <sourceconf xmlns:smap="http://apache.org/forrest/sourcemap/1.0">
    <sources>

       <match type="wildcard" pattern="**.gif">
          <location src="content/xdocs/{1}.gif">
       </match>

       <match type="wildcard" pattern="**.xml">
         <select type="exists">
           <when test="content/xdocs/{1}.ihtml">
              <location src="content/xdocs/{1}.ihtml">
           </when>
           <when test="content/xdocs/{1}.txt">
             <location src="content/xdocs/{1}{2}.txt">
           </when>
           <otherwise>
             <!-- there is a default srcconf that handles other sources -->
             <location src="{default}">
           </otherwise>
        </select>
      </match>

     </sources>
  </srcconf>

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------



Mime
View raw message