Return-Path: Delivered-To: apmail-cocoon-docs-archive@www.apache.org Received: (qmail 32380 invoked from network); 23 Sep 2008 16:28:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Sep 2008 16:28:21 -0000 Received: (qmail 64973 invoked by uid 500); 23 Sep 2008 16:28:18 -0000 Delivered-To: apmail-cocoon-docs-archive@cocoon.apache.org Received: (qmail 64851 invoked by uid 500); 23 Sep 2008 16:28:18 -0000 Mailing-List: contact docs-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: docs@cocoon.apache.org List-Id: Delivered-To: mailing list docs@cocoon.apache.org Received: (qmail 64840 invoked by uid 99); 23 Sep 2008 16:28:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Sep 2008 09:28:18 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Sep 2008 16:27:26 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 20EB7118D6 for ; Tue, 23 Sep 2008 16:27:30 +0000 (GMT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: docs@cocoon.apache.org Date: Tue, 23 Sep 2008 16:27:30 -0000 Message-ID: <20080923162730.11520.14659@eos.apache.org> Subject: [Cocoon Wiki] Update of "HTML Serializer" by DavidLegg X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Cocoon Wiki" for change notification. The following page has been changed by DavidLegg: http://wiki.apache.org/cocoon/HTML_Serializer ------------------------------------------------------------------------------ ##language:en == HTML Serializer == - The secret to generating compliant 4.01 strict from Cocoon is to have the correct the 'HTML' serializer declaration in the sitemap. + The secret to generating compliant 4.01 strict from Cocoon is to have the correct doctype declaration in the sitemap and to ensure the previous transformer does not have a default namespace. - === Example === + If the transformer that feeds the HTMLSerializer has a statement similar to this: + + + + Then you must remove the default namespace declaration like so: + + + + If you do not do this then some elements such as
and tags will have a surplus '/' character appended and the html tag will have an illegal namespace attribute. + + Note also that the HTMLSerializer does not make any attempt to clean up illegal tags or attributes that may be fed to it. So for example if you feed it with then the 'align' attribute will be passed through even though its use is deprecated in HTML 4.01 strict because it is considered a presentational element. + + === Example of a HTML 4.01 strict serializer === {{{