cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: Sitemap and Links...
Date Fri, 31 Dec 1999 13:26:59 GMT
Brett McLaughlin wrote:

>   <!-- More flexibility - assign processors to the prefix -->
>   <prefix uri="diamonds">
>     <processor name="xslt">
>       <param name="stylesheet" value="diamonds.xsl" />
>     </processor>
> 
>     <process uri="diamonds/*.html" translate="/home/xml/*.xml">
>       <producer name="file" />
>     </process>
> 
>     <process uri="diamonds/xsp/*.html" translate="/home/xml/*.xsp">
>       <producer name="xsp" />
>     </process>
> 
>     <serializer name="html" />
>   </prefix>

Yes. This is _much_ better. I agree.

> This to me makes more sense.  It allows several things:
> 
> (1) The problem you refer to goes away, as the prefix currently invoked
> is searched before resorting to searching outer prefixes.
> (2) Prefixes could be nested, to allow even further "heirarchical"
> relationships

right, verbosity is reduced by time.

> (3) Common prefix elements (serizlier and processor in the example file)
> can be pulled out, reducing redundancy
> (4) The extension proposal we have been mulling over fits in, as
> processes can override prefix settings (so a given process whose prefix
> specifies a processor may override that processor for the specific
> process [tongue twister ;-)])
> (5) You gain a "context" type feel without the added verbosity or
> needing additional attributes - you only add one element, no attributes,
> and reduce verbosity that is useless.
> 
> What do you think?

I think we should take this path. Pier, what do you think?

[great job, Brett!]

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Come to the first official Apache Software Foundation Conference!  
------------------------- http://ApacheCon.Com ---------------------



Mime
View raw message