Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 395 invoked from network); 13 Feb 2004 17:09:50 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 13 Feb 2004 17:09:50 -0000 Received: (qmail 87436 invoked by uid 500); 13 Feb 2004 17:09:39 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 87386 invoked by uid 500); 13 Feb 2004 17:09:39 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 87371 invoked from network); 13 Feb 2004 17:09:39 -0000 Received: from unknown (HELO out008.verizon.net) (206.46.170.108) by daedalus.apache.org with SMTP; 13 Feb 2004 17:09:39 -0000 Received: from verizon.net ([4.40.114.87]) by out008.verizon.net (InterMail vM.5.01.06.06 201-253-122-130-106-20030910) with ESMTP id <20040213170941.OSNJ10003.out008.verizon.net@verizon.net> for ; Fri, 13 Feb 2004 11:09:41 -0600 Message-ID: <402D04B1.8010801@verizon.net> Date: Fri, 13 Feb 2004 09:09:05 -0800 From: Christopher Oliver User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: Woody binding of namespaced element References: <402D0360.8080800@apache.org> In-Reply-To: <402D0360.8080800@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH at out008.verizon.net from [4.40.114.87] at Fri, 13 Feb 2004 11:09:41 -0600 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N That is a problem with JXPath. I may be wrong, but if IIRC it doesn't support namespaces properly or at all. Gianugo Rabellino wrote: > ... I still consider myself quite a newbie on Woody, but I'm facing a > tough issue. I need to bind a woody form to some namespaced XML (a > SourcePropsWritingTransformer input, in case you were wondering), > introducing an element with a new namespace. My binding file so far is > as simple as: > > xmlns:swpt="http://apache.org/cocoon/propwrite/1.0" > xmlns:test="http://test.com/test/1.0" > path="/source:patch/source:set"> > > > > problem is that in my output I get: > > > > webdav://localhost/dav/test.xml > > publish > > > > where you can notice that the element is created in a correct way, but > the namespace is _not_ declared, so the output is not well-formed XML. > > Apart from some obnoxious XSLT tricks that would get the job done, I > was wondering if I'm doing something obviously wrong, so I'm asking > for your advice before starting to dig the quite scary Woody code. :-) >