Hi,

first of all thanks for your answers.

> > Quite possibly the wrong way of doing things, but I use an 
> XSP to grab the
> > relevant session details then aggregate them so they are 
> available to use
> > in the stylesheet.
> >
maybe I try this one.

> But when this kind of problem arises, I usually ask myself:
> 
> 1. "Why do I need it in the stylesheet?"
> 2. "Is my stylesheet for -style- or am I programming with it?"
> 3. "Can't I resolve this problem once and for all during Generation?"
> 4. "Isn't this better solved with a Transformer, since it 
> requires coding?"

Ok, maybe you are right, I am mixing things. But, what is styling?
I try to use a different name for it: presentation. I have xml data and
have to present it in voiceXML (using transformations ;-). And I need to
cut my data into pieces, so I have to do callbacks to my data.
Is this business or presentation? If I have html output I would not
need it, so it is presentation!
Ok, I am not using cocoon as it is meant to be ...

Something different:
I found the use-session-info. Can I use this to access the session?
I tried:
 <map:pipelines>
  <map:pipeline>
 <map:match pattern="testpackage/*/*"> 
   <map:act type="request">
     <map:parameter name="parameters" value="true"/>
     <map:generate
src="http://localhost:8080/heike/servlet/testpackage.{../2}{requestQuery}"/>
   </map:act>
   <map:transform type="xslt" src="testpackage/{1}/{2}.xsl">
   <map:use-session-info>true</map:use-session-info>
       <map:parameter name="session-id" value="{session-id}"/>
       <map:parameter name="session-is-new" value="{session-is-new}"/>
   </map:transform>
   <map:serialize type="xml"/>
 </map:match>

  </map:pipeline>
 </map:pipelines>

But I get no session. What's wrong?
One more question: If I get this running, do I get the same session id as
used from tomcat (this is essential)?

Thank you very much for your help.

Heike

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