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: SourceConf (was: Re: Removed xdoc copying (Re: cvs commit: ...))
Date Mon, 13 Oct 2003 16:10:47 GMT
Unico Hommes wrote:

> Nicola Ken Barozzi wrote:
...
>>How about:
>>
>><locationmap xmlns="http://apache.org/forrest/locationmap /1.0">
>>
>>   <matches default-pattern="wildcard"
>>            default-select="resource-exists"
>>            base=".">
>>
>>     <!-- Asked for **.gif, return content/xdocs/{1}.gif -->
>>     <match pattern="**.gif" type="xxx" selector="xxx">
>>        <location src="content/xdocs/{1}.gif">
>>     </match >
>>
>>     <!-- Asked for **.xml, return the first location that exists -->
>>     <match pattern="**.xml">
>>       <location src="content/xdocs/{1}.ihtml">
>>       <location src="content/xdocs/{1}{2}.txt">
>>       <location src="{default}">
>>     </match >
>>   </matches>
>>
>></locationmap>
> 
> 
> OK, the matches element implies you want to a) group matchers and/or
> b) allow other content within locationmap element?

(a)

With multiple <matches> I can easily define a different @base for each.

(b)

Who knows if we will need a future configuration tag. For example ATM we 
are getting the matchers and selectors from the Cocoon Sitemap, but 
maybe in the future we would like to define them here too.

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



Mime
View raw message