Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 37077 invoked from network); 30 Jul 2004 00:45:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 30 Jul 2004 00:45:40 -0000 Received: (qmail 69032 invoked by uid 500); 30 Jul 2004 00:45:30 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 68988 invoked by uid 500); 30 Jul 2004 00:45:30 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 68972 invoked by uid 99); 30 Jul 2004 00:45:29 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=DNS_FROM_RFC_POST X-Spam-Check-By: apache.org Received: from [65.54.187.188] (HELO hotmail.com) (65.54.187.188) by apache.org (qpsmtpd/0.27.1) with ESMTP; Thu, 29 Jul 2004 17:45:26 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 29 Jul 2004 17:45:25 -0700 Received: from 217.12.147.11 by bay18-dav8.bay18.hotmail.com with DAV; Fri, 30 Jul 2004 00:45:25 +0000 X-Originating-IP: [217.12.147.11] X-Originating-Email: [ben_pope@hotmail.com] X-Sender: ben_pope@hotmail.com Reply-To: From: "Ben Pope" To: Subject: RE: Cforms, Binding & Cross-Referenced data Date: Fri, 30 Jul 2004 01:45:23 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-Reply-To: <20040729113025.78591.qmail@hp1.pomoshnik.ru> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Thread-Index: AcR1X3p0bVoDjlaxRbqCKxDJlbD1XgAZ4swQ Message-ID: X-OriginalArrivalTime: 30 Jul 2004 00:45:25.0766 (UTC) FILETIME=[80CA2260:01C475CE] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, I still don't seem to be able to get the binding to work, or understand = how it is supposed to work. My data now looks like this: Me You Him Lounge Kitchen I've modified the XPath in the XPointers so that it points to the id attribute, rather than the position, which should be more robust! When you say "Use xinclude (or cinclude) transformer:" I'm not sure if = you mean I should actually parse the above data with it... If so, then the = rest of the example doesn't seem to make sense as I lose the xi:include = elements. E.g., the repeater row-path"xi:include" would fail, so I'll have to = assume that I'm leaving the data as it is, not transforming it. Right, now, binding: The identity won't work, 'cos elements don't have an id attribute. Of course... I could give it an idref, but that would seem = to be going back to the way I had it. My personName doesn't work either, there is obviously no variable named = id, I don't know how to locate the correct element to bind to. I think this = is the crux of the problem. My form model looks like this: Room ID href Name Select Add Person Remove Selected People I'm still really confused as to how this should work. If I am supposed to XInclude transform the data, then I can easily = modify the binding to manipulate each room/person, but how do I then create the xi:include tags, and map the new data back onto the old data? It would seem to be much better to modify the data "in situ", but I'm = not that fussed as long as it works. I feel pretty close, but am unsure how to correctly bind the person name = in both directions. Thanks for all help so far. Ben -----Original Message----- From: Timur Izhbulatov [mailto:tim@yxo.ru]=20 Sent: 29 July 2004 12:30 To: users@cocoon.apache.org Subject: Re: Cforms, Binding & Cross-Referenced data Ben Pope =D0=C9=D3=C1=CC(=C1):=20 > Hi, >=20 > I don't seem to be able to get my head around binding cross-referenced = > data I purpose you to try this approach.=20 Use xinclude (or cinclude) transformer: Lounge Kitchen =20 In this case form model may looks like this (don't know if this works): Select =20 Add =20 Remove =20 And binding (check if this works): =20 =20 =20 =20 =20 =20 Timur --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org