Return-Path: X-Original-To: apmail-cocoon-users-archive@www.apache.org Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D20FF956D for ; Tue, 8 Nov 2011 16:20:44 +0000 (UTC) Received: (qmail 11563 invoked by uid 500); 8 Nov 2011 16:20:43 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 11526 invoked by uid 500); 8 Nov 2011 16:20:43 -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 List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 11516 invoked by uid 99); 8 Nov 2011 16:20:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Nov 2011 16:20:43 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [57.67.164.70] (HELO be1ssnxpe2.nxp.com) (57.67.164.70) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Nov 2011 16:20:33 +0000 Received: from EU1RDCRDC1VW024.exi.nxp.com ([134.27.176.169]) by be1ssnxpe2.nxp.com (8.14.4/8.14.4) with ESMTP id pA8GKBFC001873 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT) for ; Tue, 8 Nov 2011 17:20:12 +0100 Received: from eu1rdcrdc1wx032.exi.nxp.com ([134.27.179.186]) by EU1RDCRDC1VW024.exi.nxp.com ([134.27.176.169]) with mapi; Tue, 8 Nov 2011 17:20:11 +0100 From: Robby Pelssers To: "users@cocoon.apache.org" Date: Tue, 8 Nov 2011 17:20:10 +0100 Subject: RE: fb:insert-node width dynamic src Thread-Topic: fb:insert-node width dynamic src Thread-Index: AcyeL3FzKYPKhT8gScaqccuKZERHOAAAnLsg Message-ID: <78B923726E7D59429936580CF127E943A192A451B4@eu1rdcrdc1wx032.exi.nxp.com> References: <30859D23-2CA1-49E8-99F7-BC0E84500DF8@ajlsm.com> <78B923726E7D59429936580CF127E943A192A44ED2@eu1rdcrdc1wx032.exi.nxp.com> <2745F1D0-3029-422D-A83A-70A0FCA0B1C2@ajlsm.com> In-Reply-To: <2745F1D0-3029-422D-A83A-70A0FCA0B1C2@ajlsm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.4.6813,1.0.211,0.0.0000 definitions=2011-11-08_05:2011-11-08,2011-11-08,1970-01-01 signatures=0 X-Virus-Checked: Checked by ClamAV on apache.org Just one little example to explain: Let's assume you have a generator that fetches the xml you are talking abou= t and that this xml contains the cinclude tag. Then you still need to use t= he cinclude transformer, otherwise nothing will happen. I advise you to lo= ok at http://cocoon.apache.org/2.1/userdocs/cinclude-transformer.html =20 =20 Kind regards, Robby -----Original Message----- From: Patricia D=E9chandol [mailto:pdechandol@ajlsm.com]=20 Sent: Tuesday, November 08, 2011 4:59 PM To: users@cocoon.apache.org Subject: Re: fb:insert-node width dynamic src Thanks for your answer Robby. The conclude transformer seems not to be seen in the context of CForms trea= tment. I need to import external XML in a fb:save-form context. I tried to insert conclude:include : no error but nothing happen. Finally, I achieved the import using Javascript code. This makes me think to another problem : how javascript libraries (manipula= ting DOM document) is supported by the different navigators ? Using , to treat my forms, implies to be navigator dependen= t. Patricia Le 8 nov. 2011 =E0 16:27, Robby Pelssers a =E9crit : > Not sure how the fb:insert-node solution works but you might get away usi= ng the cinclude transformer. >=20 > If you would generate or insert this tag into the xml you generate and ne= xt would run the cinclude transformer over the resulting xml > > The xml would get inserted at that point. >=20 > Robby >=20 >=20 >=20 > -----Original Message----- > From: Patricia D=E9chandol [mailto:pdechandol@ajlsm.com]=20 > Sent: Tuesday, November 08, 2011 2:20 PM > To: users@cocoon.apache.org > Subject: fb:insert-node width dynamic src >=20 > Hello, >=20 > I face a problem with the use of with my CForms. >=20 > I need to import an existing XML document into another one. > The imported XML can only be accessed through cocoon:// URI, so I use . >=20 > I need to be able to specify dynamic "src" attribute computed from the va= lue of a form widget. > The src attribute need to be constructed this way : >=20 > cocoon://{path}/{widget_value}.xml >=20 > How can I specify my src attribute to retrieve the widget value ? >=20 > Thanks for your help. >=20 > Patricia > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org >=20 --------------------------------------------------------------------- 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