cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Piroumian Konstantin <KPiroum...@protek.com>
Subject RE: difference between xsp-session and session
Date Thu, 29 Aug 2002 10:09:33 GMT
> From: Geert Poels [mailto:Geert.Poels@thales-is.com] 
> 
> Hi,
> 
> I was browsing Cocoon documentation and wondered what
> the difference in use and definition was between 
> using 
> xmlns:session="http://apache.org/xsp/session/2.0"
> and
> xmlns:xsp-session="http://apache.org/xsp/session/2.0"

There is no difference as long as the namespace URI is the same. The
namespace prefix is just a short name for the namespace URI.

> 
> and also referencing it in code as
> <session:get-attribute name="somename"/>
> or 
> <xsp-session:get-attribute name="somename"/>

You can declare either prefix.

As for the documentation, thanks for reporting, it should be fixed.

--
  Konstantin

> 
> Examples are shown at
> http://xml.apache.org/cocoon/userdocs/xsp/sessions.html
> 
> Yet the second to last example at :
> http://xml.apache.org/cocoon/userdocs/xsp/session.html
> 
> uses xmlns:session="http://apache.org/xsp/session/2.0"
> yet references it using xsp-session
> 
> <?xml version="1.0" encoding="iso-8859-1"?>
> <xsp:page
>    language="java"
>    xmlns:xsp="http://apache.org/xsp"
>    xmlns:session="http://apache.org/xsp/session/2.0"
>    xmlns:xsp-request="http://apache.org/xsp/request/2.0"
> >
> 
> ....
>     <para> Session ID = <xsp-session:get-id as="xml"/> </para>
> </xsp:page>
> ....
> 
> Thanks,
> 
> Geert
> 
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
> 

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

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


Mime
View raw message