Re: Cleaning up unused namespace declaration

2004-02-10 Thread Upayavira
Geoff Howard wrote: Vadim Gritsenko wrote: Sylvain Wallez wrote: Geoff Howard wrote: .. Couldn't you also configure it to remove all ns without checking if you know your output should have no other namespaces (as usually the case with xhtml)? That way you could avoid buffering in that

Re: Cleaning up unused namespace declaration

2004-02-09 Thread Ugo Cei
Stefano Mazzocchi wrote: 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. !-- -

Re: Cleaning up unused namespace declaration

2004-02-09 Thread Sylvain Wallez
Stefano Mazzocchi wrote: I'm not normally bugged by namespace declarations which aren't used, but boy, something like this just can't go on without me to do something about it: br xmlns:dir=http://apache.org/cocoon/directory/2.0; xmlns:include=http://apache.org/cocoon/include/1.0/ [taken

Re: Cleaning up unused namespace declaration

2004-02-09 Thread Stefano Mazzocchi
On 9 Feb 2004, at 03:16, Ugo Cei wrote: Stefano Mazzocchi wrote: 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

Re: Cleaning up unused namespace declaration

2004-02-09 Thread Stefano Mazzocchi
On 9 Feb 2004, at 04:40, Sylvain Wallez wrote: Stefano Mazzocchi wrote: I'm not normally bugged by namespace declarations which aren't used, but boy, something like this just can't go on without me to do something about it: br xmlns:dir=http://apache.org/cocoon/directory/2.0;

Re: Cleaning up unused namespace declaration

2004-02-09 Thread Geoff Howard
Stefano Mazzocchi wrote: On 9 Feb 2004, at 04:40, Sylvain Wallez wrote: Stefano Mazzocchi wrote: I'm not normally bugged by namespace declarations which aren't used, but boy, something like this just can't go on without me to do something about it: br

Re: Cleaning up unused namespace declaration

2004-02-09 Thread Sylvain Wallez
Stefano Mazzocchi wrote: On 9 Feb 2004, at 04:40, Sylvain Wallez wrote: Stefano Mazzocchi wrote: I'm not normally bugged by namespace declarations which aren't used, but boy, something like this just can't go on without me to do something about it: br

Re: Cleaning up unused namespace declaration

2004-02-09 Thread Sylvain Wallez
Geoff Howard wrote: Stefano Mazzocchi wrote: On 9 Feb 2004, at 04:40, Sylvain Wallez wrote: A long time ago, I wrote a NamespaceNormalizer that works in two steps: 1 - record all SAX events (using XMLByteStreamCompiler) except namespace declarations which are stored separately, 2 - replay SAX

Re: Cleaning up unused namespace declaration

2004-02-09 Thread Vadim Gritsenko
Sylvain Wallez wrote: Geoff Howard wrote: .. Couldn't you also configure it to remove all ns without checking if you know your output should have no other namespaces (as usually the case with xhtml)? That way you could avoid buffering in that special but common case. We can filter out all

Re: Cleaning up unused namespace declaration

2004-02-09 Thread Geoff Howard
Vadim Gritsenko wrote: Sylvain Wallez wrote: Geoff Howard wrote: .. Couldn't you also configure it to remove all ns without checking if you know your output should have no other namespaces (as usually the case with xhtml)? That way you could avoid buffering in that special but common case.

RE: Cleaning up unused namespace declaration

2004-02-08 Thread Conal Tuohy
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

Re: Cleaning up unused namespace declaration

2004-02-08 Thread Stefano Mazzocchi
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

RE: Cleaning up unused namespace declaration

2004-02-08 Thread Conal Tuohy
:18 To: [EMAIL PROTECTED] Subject: Re: Cleaning up unused namespace declaration 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