Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 2380 invoked by uid 500); 5 Apr 2002 21:29:06 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 2369 invoked from network); 5 Apr 2002 21:29:06 -0000 Reply-To: From: "Stephen Ng" To: Subject: Extra namespace declarations in XML from XSP Date: Fri, 5 Apr 2002 16:29:25 -0500 Message-ID: <0C1123BD58364B4E81A902F515AF0A25436830@prism.lumigent.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 Importance: Normal In-Reply-To: <103615557785.20020403122752@4charity.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I'm running into a small nuisance with Cocoon 2.0.2 (I'm running WinXP). After my XSP has been processed, I find the resulting xml file still has all the namespaces from the xsp. This is bumming me out because I have unit tests on my xml output, and I have to update them to include these extraneous namespaces every time I refactor my xsp's. (Plus it's a little wasteful to pass these namespace declarations around when they aren't needed). To see an example of this, go to docs/samples/xsp/hello.xsp. Change the first line to read: Then navigate to: http://localhost:8080/cocoon/xsp-plain/hello?cocoon-view=content You should get: Hello This is my first Cocoon page! With the help of XSP and Apache Cocoon 2.0.2 Notice how you get an xmlns:foo declaration here. Exclude-result-prefixes doesn't seem to make a difference. In my case, I have quite a few namespaces, such as cinclude, esql, etc. I went into esql.xsl and threw in exclude-result-prefixes="esql" on xsl:stylesheet, but it didn't make a difference. So now I'm stumped. Anyone out there know how to fix this? Thanks, Stephen Ng Lumigent --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: