> -----Original Message-----
> From: Xavier RODRIGUEZ [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 17, 2003 8:59 AM
> To: [EMAIL PROTECTED]
> Subject: How to get session attributes in XSL

> Is it posible to get session attributes in an XSL?

The short answer is yes.

The long answer is:

There are many ways to do such, but, first, take a look at the InputModules 
(introduced, AFAIK, in 2.0.4). Doc on InputModules is
thin, but they are worth spending some time on.

You could use as well the SessionAttributeMatcher matcher, which returns the given 
session variable as attribute "1" of the
pipeline. Then, you can pass that parameter to your sylesheet.

What you should avoid, however, is the use of "document()", see: 
http://xml.apache.org/cocoon/faq/faq-xslt.html#faq-6

Regards,

---------------------------------------------
               Luca Morandini
               GIS Consultant
              [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
---------------------------------------------



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