>From what I know, basically {name} is a representation of
a sitemap parameter which are used by sitemap components.
For example, if your pipeline wants to call another (resource)
pipeline you with a target parameter you would do it this way
<map:call resource="simple-page">
 <map:parameter name="target" value="some/path/to/something"/>
</map:call>

now in your "simple-page" pipline you can access that target
paramter with {target} so you can have:
  <map:resource name="simple-page">
     <map:generate type="file" src="{target}.xml"/>
     <map:transform src="stylesheets/page/simple-page2html.xsl">
        <map:parameter name="view-source" value="{target}.xml"/>
     </map:transform>
     <map:serialize/>
  </map:resource>

Also, if you implement actions the return of the act() method
is a map that will be added to the session paramters.
In your action of you do
sitemapParam.put("session-id", getSessionID()); then
in your pipeline you can do
<map:match pattern="something">
  <map:act type="my-action">
   <map:generate src="something/{session-id}"/>
    ...
 </map:act>
</map:match>

Hope this helps.

Artur...

> -----Original Message-----
> From: John Austin [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 23, 2002 5:44 PM
> To: [EMAIL PROTECTED]
> Subject: Question: what is {session-id} ? in a sitemap.xmap ?
> 
> 
> I have been using Cocoon 2.0.1 for a few months now and have run into a 
> few brick walls. The most serious limitation is the lack of 
> documentation for just about everything. I have worked through a number 
> of problems in the past but am currently frustrated by a number of 
> questions.
> 
> I have often seen expressions in the sitemap like {session-id} and 
> {target}. it is clear that these are variables substituted from 
> somewhere magical but I cannot for the life of me imagine what.
> 
> Can anyone explain where I can find the documentation for these 
> constructs ? I suspect that I can use these items to transfer 
> information in to parameter lists but need to understand this aspect of 
> Cocoon before I can do it.
> 
> Thanks.
> 
> ---------------------------------------------------------------------
> 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]>
> 

---------------------------------------------------------------------
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