Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 29542 invoked from network); 9 Feb 2004 03:15:24 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 9 Feb 2004 03:15:24 -0000 Received: (qmail 32179 invoked by uid 500); 9 Feb 2004 03:14:59 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 32118 invoked by uid 500); 9 Feb 2004 03:14:58 -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 32077 invoked from network); 9 Feb 2004 03:14:58 -0000 Received: from unknown (HELO pulse.betaversion.org) (217.158.110.65) by daedalus.apache.org with SMTP; 9 Feb 2004 03:14:58 -0000 Received: (qmail 22334 invoked from network); 9 Feb 2004 03:15:06 -0000 Received: from unknown (HELO ?192.168.1.56?) (stefano@66.92.77.230) by pulse.betaversion.org with SMTP; 9 Feb 2004 03:15:06 -0000 Mime-Version: 1.0 (Apple Message framework v612) In-Reply-To: <001101c3eeb5$b9d8f2c0$d9784fcb@insurgentes.local> References: <001101c3eeb5$b9d8f2c0$d9784fcb@insurgentes.local> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Stefano Mazzocchi Subject: Re: Cleaning up unused namespace declaration Date: Sun, 8 Feb 2004 22:18:29 -0500 To: dev@cocoon.apache.org X-Mailer: Apple Mail (2.612) 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 On 8 Feb 2004, at 21:37, Conal Tuohy wrote: > I don't know if you can configure the xml serializer to drop a > namespace > (seems unlikely, because such namespace might not be used until the > end of > the document, for all the serializer knows, so it wouldn't be safe > without > buffering the entire output document to check). > > But typically you should suppress the namespace in the XSLT which > converts > the dir:* content into xhtml, using the exclude-result-prefixes > attribute of > the xsl:stylesheet or xsl:transform element. This works for me - I just > checked! :-) Yeah, well, that doesn't help me because I have the namespace declarations already there in the document I want to process and it appears that xsl:copy copies over the namespace declarations everytime and it's not influenced by exclude-result-prefixes. And this isn't true if you use , which feels hacky, but what the hell. [read http://www.xslt.com/xsl-list/2002-02/msg00026.html for more info] -- Stefano.