Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 60222 invoked from network); 22 May 2008 16:25:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 May 2008 16:25:12 -0000 Received: (qmail 79735 invoked by uid 500); 22 May 2008 16:25:11 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 79665 invoked by uid 500); 22 May 2008 16:25:11 -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 79654 invoked by uid 99); 22 May 2008 16:25:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 May 2008 09:25:11 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [194.109.24.32] (HELO smtp-vbr12.xs4all.nl) (194.109.24.32) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 May 2008 16:24:23 +0000 Received: from [192.168.1.67] (magrathea.xs4all.nl [82.95.175.81]) (authenticated bits=0) by smtp-vbr12.xs4all.nl (8.13.8/8.13.8) with ESMTP id m4MGOaFx031665 for ; Thu, 22 May 2008 18:24:37 +0200 (CEST) (envelope-from su@islief.nl) Message-ID: <48359E5A.8090209@islief.nl> Date: Thu, 22 May 2008 18:24:58 +0200 From: Suzan Foster User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: XML binding in the default namespace References: <3CBF26EF-EC16-4C16-B54D-90038A6B075D@robinwyles.com> In-Reply-To: <3CBF26EF-EC16-4C16-B54D-90038A6B075D@robinwyles.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Checked: Checked by ClamAV on apache.org Robin, Sorry not noticing this earlier. You can use default namespaces in the document, but not in the binding. The JXPathContext reqires a prefix. Regards, Suzan. Robin Wyles wrote: > Hi All, > > I'm having trouble binding to a XML document with a declared default > namespace on C2.2. I've read back over the many posts on the subject > on this list, and have enabled NSPrefixes for the SAXParser as > suggested, but am still having problems. Here is the document to which > I am binding: > > > test > > > ... and the binding file: > > xmlns:fd="http://apache.org/cocoon/forms/1.0#definition" > xmlns="http://www.w3.org/2005/Atom" > path="/" > > > > > This doesn't seem to work, no value is loaded for the > element. I've also tried the following binding file, which still > doesn't work: > > <fb:context xmlns:fb="http://apache.org/cocoon/forms/1.0#binding" > xmlns:fd="http://apache.org/cocoon/forms/1.0#definition" > xmlns:atom="http://www.w3.org/2005/Atom" > path="/" > > <fb:value id="title" path="atom:title"/> > </fb:context> > > I can get it to work using the following document and binding file: > > <atom:entry xmlns:atom="http://www.w3.org/2005/Atom"> > <atom:title>test</atom:title> > </atom:entry> > > <fb:context xmlns:fb="http://apache.org/cocoon/forms/1.0#binding" > xmlns:fd="http://apache.org/cocoon/forms/1.0#definition" > path="/" > > <fb:value id="title" path="atom:title"/> > </fb:context> > > However, I am not really able to declare the namespace prefixes in the > source document like that - they really need to be specified in the > defined default namespace. Am I missing something here, or are there > really still issues with this? > > If anyone could help I'd really appreciate it! > > Thanks, > > Robin > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org