If you store the "goods" in the "cart" - why don't you just then add and remove items as needed using setxml and removexml. There is no need to copy the cart each time - it just stays in the session context.

Matthew


On Mittwoch, Oktober 29, 2003, at 06:38 PM, julien bloit wrote:


That's right.
In fact, I try to solve one problem after the other, doing little steps, I
first tried to work out the basic fonctionnality. Now that I got it working,
I'm working on the issue you just mentionned. I think maybe an xsl
stylesheet mixed with the <session:mergexml> tag could do the trick. I have
no results yet (started working on it a few minutes ago).


The global algorithm for adding would be something like :

- copy actual cart (using "xsl:copy-of")
- select item list (xpath)
- merge new item to the list.

Your thoughts/help are very welcome!

Julien


----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Cc: "julien bloit" <[EMAIL PROTECTED]> Sent: Wednesday, October 29, 2003 6:15 PM Subject: RE: shopping cart : creating a new context



hi julien


i like very much your very clean shoping-cart approach

and i consider to replace a javascripr based simple shoping cart with
something like yours but

as i see you set your cart (in session) at once, you are not able to add
or remove items thats right or is something i missed?


thnx in adv

--stavros



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




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



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



Reply via email to