cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject {cocoon 2} Feature request for aggregator:
Date Tue, 24 Apr 2001 15:15:57 GMT
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


Mime
View raw message