开发者

Session handling into two different XSLT files

开发者 https://www.devze.com 2023-02-19 13:35 出处:网络
I have two XSLT files and I want to create session in one xslt file, then modify it in another XSLT file.

I have two XSLT files and I want to create session in one xslt file, then modify it in another XSLT file.

This is my first file:

<session:createcontext name="user_context"/>
    <session:setxml context="user_context" path="/">
        <NAME>HELLOWORLD</NAME>
    </session:setxml>

and this is my second file:

<session:setxml context="user_context" path="/">
    <NAME>HELLOINDIA</NAME>
</session:setxml>

Is this correct?

The code is not able to update the attribute "NAME" in session, and I am getting still "HELLOWORLD".

Environment: This implementation is running on Cocoon 2.2 with a Tomcat application.

In Cocoon, also same problem with the following scenario: I have created session in XM开发者_开发百科AP (Cocoon config file), and I am accessing the same session in one pipeline's transform XSLT implementation. Here I have changed the session's an one attribute and I want to access the same attribute of same session in again xmap file.

0

精彩评论

暂无评论...
验证码 换一张
取 消