cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Gallardo Rivera <>
Subject [PATCH] for <xsp-session:getxml>
Date Tue, 08 Oct 2002 11:43:36 GMT
Hi, I recently needed to write some app logi usin <xsp:logic> tags. Into tags 
we need to write some code like:

String myUserID = <xsp-session:getxml context="authentication" 
path="/authentication/ID" as="string"/>;

Then, I updated <xsp-session:getxml> to serve strings.

Currently the attribute "as" of the element can have 3 values:

1-as="object" (default) returns a org.w3c.dom.DocumentFragment object. More 
info at 

2-as="xml" return the DocumentFragment into <xsp-session:xml> tags.

3- return the value of the firstchild of the requested node. Example: If we 


A) Then if we write:
<xsp-session:getxml context="authentication" path="/authentication/ID" 

will return "MyID"

B) <xsp-session:getxml context="authentication" 
path="/authentication/data/fullname" as="string"/>

will return: "TheFullName"

Attached is the new session.xsl the place of this file is:


Antonio Gallardo

View raw message