Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 92005 invoked by uid 500); 6 Aug 2002 18:54:08 -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 91992 invoked from network); 6 Aug 2002 18:54:07 -0000 From: Torsten Knodt Organization: Datas-World To: cocoon-users@xml.apache.org Subject: Re: TESTERS WANTED for ns prefix cleaner Date: Tue, 6 Aug 2002 20:53:07 +0200 User-Agent: KMail/1.4.2 References: <016d01c23d77$769b3180$df74558b@vgritsenkopc> In-Reply-To: <016d01c23d77$769b3180$df74558b@vgritsenkopc> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Message-Id: <200208062053.11596.torstenknodt@datas-world.de> X-Mime-Autoconverted: from 8bit to 7bit by courier 0.39 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello Vadim, > > Hello, > > I've written my first transformer and now looking for testers. > > It simply removes all unused namespace prefix declarations (xmlns:). > > When I'm not wrong, far more than me have the problem of those. So I > have > > simply attached the source to the mail. > I solved that issue very easily: because my site produces HTML only, it > is Ok to remove *all* namespaces, thus I simply implemented start/end > PrefixMapping methods, and start/end Element methods. I also thought about it. But I didn't want to create wrong data, when I make something wrong in a xsl and have some elements left. Also when I generate vCard's in RDF, I need namespaces. > Pros: It's *fast* > Cons: Won't work if you want to leave some namespaces. Surely right. > Your solution: > Pros: Detects and removes unused namespaces (AFAIU) > Cons: High memory consumption and low performance. Sure, because of the DOM. > PS I see compromise here: you tell what namespaces you want to leave, > and transformer removes all other namespaces. It's fast, (not-so) > flexible, and memory efficient. Like I said, I wanted to be sure to not generate wrong documents, because I forget something in a xsl. And as I only use it to produce static content, no problem. With kind regards Torsten Knodt -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9UBsWvxZktkzSmiwRAmCQAJ0bcuiyqxmqFxG394cXHvexmrCrDgCfc37f Dzlnji/2gaKDQnzLm26EsY4= =LhOw -----END PGP SIGNATURE----- --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: