> Is ist possbile to define at runtime the stylesheet the xml content should
> be transformed with?

Yes, sitemap contains a Map and (key, value) pair can be set (by action). this map can 
be
used to parameter generation (source), stylesheet...

> For example for a role management so that i don't have to edit the sitemap
> for every new user.

By exemple :
 <map:match pattern="info/toto">
   <map:act type="getRole">
     <map:generate src="info/toto.xml"/>
     <map:transform src="stylesheets/{role}2page.xsl"/>
     <map:transform src="stylesheets/page2html.xsl"/>
     <map:serialize/>
   </map:act>
 </map:match>

You must code (and register) getRole Action.


-- 
--------------------------------------------------------------
David "Dwayne" Bernard             Freelance Developer (Java)
                                   mailto:[EMAIL PROTECTED]
      \|/                          http://dwayne.java-fan.com
--o0O @.@ O0o-------------------------------------------------

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to