You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Berin Loritsch <bl...@apache.org> on 2001/04/24 17:15:57 UTC

{cocoon 2} Feature request for aggregator:

Can we expand values for <map:part/> "src" attributes?

I was expecting it to act just like the generators,
transformers etc.

The reason being is that I have a NavigationAction that
provides a layer of security, and will only allow people
who are logged in to access internal resources.

I want to be able to do something like this:

   <map:match pattern="*.html">
     <map:act set="advertisement">
       <parameter name="dbpool" value="ad-approval"/>
       <map:aggregate element="xforms" ns="http://www.w3.org/2001/02/xforms">
         <map:part src="document.xml" element="instance" ns="http://www.w3.org/2001/02/xforms"/>
         <map:part src="{destination}.xsp" element="document" ns=""/>
       </map:aggregate>
       <map:transform src="stylesheets/ad2document.xsl"/>
       <map:transform src="stylesheets/logout2form.xsl"/>
       <map:transform src="stylesheets/list2form.xsl"/>
       <map:transform src="stylesheets/form2document.xsl"/>
       <map:transform src="stylesheets/document2agg.xsl"/>
       <map:transform src="stylesheets/agg2html.xsl"/>
       <map:serialize/>
     </map:act>
   </map:match>


Notice the <map:part src="{destination}.xsp" element="document" ns=""/>?

I currently get a ResourceNotFoundException:

org.apache.cocoon.ResourceNotFoundException: Can't read file:
file:/C:/jakarta-tomcat-3.2.1/webapps/ROOT/ad-approval/{destination}.xsp

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: {cocoon 2} Feature request for aggregator:

Posted by Berin Loritsch <bl...@apache.org>.
Donald Ball wrote:
> 
> On Tue, 24 Apr 2001, Berin Loritsch wrote:
> 
> > Can we expand values for <map:part/> "src" attributes?
> 
> +10
> 
> > Notice the <map:part src="{destination}.xsp" element="document" ns=""/>?
> 
> i'm trying to use this technique to automatically add some standard bits
> of content around my main page. i think that this will be a common design
> pattern.
> 
> - donald

I already added it.

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: {cocoon 2} Feature request for aggregator:

Posted by Donald Ball <ba...@webslingerZ.com>.
On Tue, 24 Apr 2001, Berin Loritsch wrote:

> Can we expand values for <map:part/> "src" attributes?

+10

> Notice the <map:part src="{destination}.xsp" element="document" ns=""/>?

i'm trying to use this technique to automatically add some standard bits
of content around my main page. i think that this will be a common design
pattern.

- donald


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org