Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 62956 invoked from network); 2 Sep 2004 04:05:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Sep 2004 04:05:20 -0000 Received: (qmail 7116 invoked by uid 500); 2 Sep 2004 04:04:42 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 7021 invoked by uid 500); 2 Sep 2004 04:04:41 -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 7007 invoked by uid 99); 2 Sep 2004 04:04:41 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=NO_REAL_NAME,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [192.18.33.10] (HELO exchange.sun.com) (192.18.33.10) by apache.org (qpsmtpd/0.28) with SMTP; Wed, 01 Sep 2004 21:04:40 -0700 Received: (qmail 4104 invoked by uid 50); 2 Sep 2004 04:06:21 -0000 Date: 2 Sep 2004 04:06:21 -0000 Message-ID: <20040902040621.4103.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: dev@cocoon.apache.org Cc: Subject: DO NOT REPLY [Bug 31010] New: - org.apache.cocoon.components.xscript.StringBufferContentHandler produces two default namespaces definitions in produced string X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=31010 org.apache.cocoon.components.xscript.StringBufferContentHandler produces two default namespaces definitions in produced string Summary: org.apache.cocoon.components.xscript.StringBufferContent Handler produces two default namespaces definitions in produced string Product: Cocoon 2 Version: 2.1.5 Platform: All OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: blocks AssignedTo: dev@cocoon.apache.org ReportedBy: greg.konstantinidis@thomson.com Hi I have a Transformer that uses the org.apache.cocoon.components.xscript.StringBufferContentHandler to collect data before posting it to a website. (see between tags below). The string generated has two default namespaces "book" and "fred". The fix is to around lines 118 in startElement. There needs to be some accounting for same name prefixes ("") but differing namespaces (book fred) and to use the one that is in scope. (i.e. only xmlns="fred" should only be generated). Thanks.