Do you have a sitemap and xsl example of this? I have problems for merging items, it seems my sitemap looses track of the session context after creating it and adding the first item to the cart.
thanks Julien ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 29, 2003 8:38 PM Subject: Re: shopping cart : creating a new context > i'm interesting too about this cart > > if u use setxml then you re-create the content in session's context > (correct me if i'm wring) > > so that we need is a mechanism tha wil determine if the "shoping-cart" > exist if not will create it (setxml) otherwhise will just add items > (mergexml) is it possible inside xslt? or the solution is an action? > > i have work on your example an i have a shoping-cart where i can add-item > (for first time) so the cart is created and then merge more items > but i have 2 different .xsl and to differen urls to call > /add-cart/ > /mrg-cart/ > > -- stavros > > > > On Wed, 29 Oct 2003, Matthew Langham wrote: > > > 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] > > > > > > > --------------------------------------------------------------------- > 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]