Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 31107 invoked from network); 11 Jun 2008 13:41:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jun 2008 13:41:28 -0000 Received: (qmail 29911 invoked by uid 500); 11 Jun 2008 13:41:28 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 29837 invoked by uid 500); 11 Jun 2008 13:41:28 -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 29826 invoked by uid 99); 11 Jun 2008 13:41:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jun 2008 06:41:28 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Heather.Rankin@bbc.co.uk designates 132.185.240.143 as permitted sender) Received: from [132.185.240.143] (HELO mailgw3.thls.bbc.co.uk) (132.185.240.143) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jun 2008 13:40:38 +0000 Received: from bbcxues10.national.core.bbc.co.uk ([10.180.130.26]) by mailgw3.thls.bbc.co.uk (8.13.7/8.13.7) with ESMTP id m5BDeoFT021015 for ; Wed, 11 Jun 2008 14:40:50 +0100 (BST) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: problem with document() function Date: Wed, 11 Jun 2008 14:40:55 +0100 Message-ID: In-Reply-To: <484FB475.70409@memocomp.de> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: problem with document() function Thread-Index: AcjLuQwAXsFa0rTeTUWZEt32689jTQADs3Ow References: <484FB475.70409@memocomp.de> From: "Heather Rankin" To: X-Virus-Checked: Checked by ClamAV on apache.org Hi Johannes, You should be able to use the document() function to interrogate the contents of an external XML file. It is also a good idea to use doc-available() first to check for the existence of the file and build the tree in memory. Heather -----Original Message----- From: Johannes Hoechstaedter [mailto:j.hoechstaedter@memocomp.de]=20 Sent: 11 June 2008 12:18 To: users@cocoon.apache.org Subject: problem with document() function Hello everybody, I have a for-each statement in my style sheet: =20 =20 This snippet puts out the content of all nodes into text fields. Now I want to make a distinction. Some values should be in a text field and some values should be displayed only. Which nodes should be displayed and which not is stored in a persitent xml file. What I thought of, is something like this: =20 =20 =20 How can I do this? Is this possible? --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain persona= l views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in relian= ce on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. =09 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org