> From: Geert Poels [mailto:[EMAIL PROTECTED]] 
> 
> 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:     <[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/faq/index.html>

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

Reply via email to