cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@s-und-n.de>
Subject RE: Few authentication questions
Date Fri, 15 Aug 2003 06:25:25 GMT
Sonny Sukumar wrote:
> >Now, a session context is an XML document stored in the session. With the
> >session transformer (see below) you can fetch xml data out of such a
> >context and store data in it.
>
> Oh ok, so a session context is a session attribute that happens
> to be an XML
> doc.  But of what class type is this XML doc?  Just curious...
>
It's an internal class ;) (which uses a DOM tree)

> >
> > > 3.) The doc furthermore has this line in it:
> > >
> > > <session:getxml context="authentication" path="/authentication/ID"/>
> > >
> > > So I assume <session:getxml ..../> is a logichsheet call, but
> > > I've only seen
> > > a logicsheet called xsp-session that provides an interface to
> a Session
> > > instance.  And I don't see any "getxml" element for that logicsheet.
> > >
> >This is not a logicsheet but a transformer, so you can use this
> transformer
> >in your cocoon pipeline to set/get data to/from a session context, like
> >the authentcation session context in the example above.
>
> Hmm, I thought if it's a transformer it should be called like
> "<map:transform type="..." .../>
>
> Why isn't this the case?
>
It is the case, too. Your call is in the sitemap where you define the
pipeline and the <session:getxml...> is in the xml stream flowing through
the transformer. It's the signal for the session transformer to do
something.

Carsten


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


Mime
View raw message