cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <giac...@apache.org>
Subject Re: [C2][Important] Content aggregation again. Resolution needed.
Date Mon, 22 Jan 2001 23:19:24 GMT
Stuart Roebuck wrote:
> 
> Aggregation is something that I would value a lot in the kind of real-life work I'm doing
with Cocoon 2 at the moment.  So I'll add my thoughts...

<snipped/> 

> If you have a bit of sitemap like the following:
> 
>     <map:match pattern="result1.xml">
>                 <map:generate src="input.xml" />
>                 <map:translate src="stylesheet1.xslt" />
>                 <map:translate src="stylesheet2.xslt" />
>                 <map:translate src="stylesheet3.xslt" />
>                 <map:translate src="stylesheet4.xslt" />
>                 <map:translate src="stylesheetX.xslt" />
>         <map:serialize type="xml" />
>     </map:match>
> 
>     <map:match pattern="result2.xml">
>                 <map:generate src="input.xml" />
>                 <map:translate src="stylesheet1.xslt" />
>                 <map:translate src="stylesheet2.xslt" />
>                 <map:translate src="stylesheet3.xslt" />
>                 <map:translate src="stylesheet4.xslt" />
>                 <map:translate src="stylesheetY.xslt" />
>         <map:serialize type="xml" />
>     </map:match>
> 
> It would be great if you could do:
> 
>     <map:match pattern="result.xml">
>                 <map:generate src="input.xml" />
>                 <map:translate src="stylesheet1.xslt" />
>                 <map:translate src="stylesheet2.xslt" />
>                 <map:translate src="stylesheet3.xslt" />
>                 <map:translate src="stylesheet4.xslt" />
>         <map:serialize type="xml" />
>     </map:match>
> 
>     <map:match pattern="result1.xml">
>                 <map:generate src="sitemap:result.xml" />
>                 <map:translate src="stylesheetX.xslt" />
>         <map:serialize type="xml" />
>     </map:match>
> 
>     <map:match pattern="result2.xml">
>                 <map:generate src="sitemap:result.xml" />
>                 <map:translate src="stylesheetY.xslt" />
>         <map:serialize type="xml" />
>     </map:match>
> 
> (You'll probably tell me that this is already possible - if so, my apologies!)

You can easily do this today:

    <map:match pattern="result?.xml">
      <map:generate src="input.xml" />
      <map:translate src="stylesheet1.xslt" />
      <map:translate src="stylesheet2.xslt" />
      <map:translate src="stylesheet3.xslt" />
      <map:translate src="stylesheet4.xslt" />
      <map:match pattern="result1.xml">
        <map:translate src="stylesheetX.xslt" />
      </map:match
      <map:match pattern="result2.xml">
        <map:translate src="stylesheetY.xslt" />
      </map:match>
      <map:serialize type="xml" />
    </map:match>

Giacomo

Mime
View raw message