You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by st...@innoq.com on 2002/03/05 12:50:56 UTC
Re: XHTML DOCTYPE - "HTML" vs. "html"/Possible solution
"Nicola Ken Barozzi" <ni...@apache.org> wrote on 05.03.2002 12:08:34:
>
> Is the main tag in your document "HTML" or "html" ?
>
Thanks for the answer, but it's "html", and the W3C validator explicitly
comlains about the doctype declaration. If I change "HTML" to "html" in the
doctype decl of the saved copy of the generated XML, it validates OK.
But I have played around a little bit more, and have changed my
sitemap.xmap entry to be
<map:serializer name="html" mime-type="text/html"
src="org.apache.cocoon.serialization.XMLSerializer">
<doctype-public>-//W3C//DTD XHTML 1.0 Transitional//EN</doctype-public>
<doctype-system>DTD/xhtml1-transitional.dtd</doctype-system>
<omit-xml-declaration>true</omit-xml-declaration>
<encoding>ISO-8859-1</encoding>
<indent>1</indent>
</map:serializer>
i.e., I use the XMLSerializer instead of the HTMLSerializer - and now I get
the right doctype declaration! (I also get the line "<?xml version="1.0"
encoding="ISO-8859-1"?>" as the first line of the document. I thought I
could prevent this with <omit-xml-declaration>true</omit-xml-declaration>,
but this doesn't seem to be the case. Is this a problem?)
But is this the right way to do it? If so, does it deserve an FAQ entry? I
can't imagine that I'm the only Cocoon user who wants to generate XHTML and
validate the documents (or am I?).
Stefan
> In xhtml "HTML" is not valid:
>
> <ref uri="http://www.w3.org/TR/xhtml1/#diffs">
> XHTML documents must use lower case for all HTML element and attribute
> names. This difference is necessary because XML is case-sensitive e.g.
<li>
> and <LI> are different tags.
> </ref>
>
> --
> Nicola Ken Barozzi nicolaken@apache.org
> - verba volant, scripta manent -
> (discussions get forgotten, just code remains)
> ---------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: XHTML DOCTYPE - "HTML" vs. "html"/Possible solution
Posted by Nicola Ken Barozzi <ni...@apache.org>.
From: "Johannes Koch" <ko...@pixelpark.com>
> stefan.tilkov@innoq.com schrieb:
> >
> > "Nicola Ken Barozzi" <ni...@apache.org> wrote on 05.03.2002
12:08:34:
> >
> > >
> > > Is the main tag in your document "HTML" or "html" ?
> > >
> >
> > Thanks for the answer, but it's "html", and the W3C validator explicitly
> > comlains about the doctype declaration. If I change "HTML" to "html" in
the
> > doctype decl of the saved copy of the generated XML, it validates OK.
>
> It seems that the HTMLSerializer and even the XHTMLSerializer classes in
> Xerces still have 'HTML' hardcoded :-(
I've filed a bug report for this issue. Thank you and Stefan for pointing
this out :-)
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6878
--
Nicola Ken Barozzi nicolaken@apache.org
- verba volant, scripta manent -
(discussions get forgotten, just code remains)
---------------------------------------------------------------------
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: XHTML DOCTYPE - "HTML" vs. "html"/Possible solution
Posted by Johannes Koch <ko...@pixelpark.com>.
stefan.tilkov@innoq.com schrieb:
>
> "Nicola Ken Barozzi" <ni...@apache.org> wrote on 05.03.2002 12:08:34:
>
> >
> > Is the main tag in your document "HTML" or "html" ?
> >
>
> Thanks for the answer, but it's "html", and the W3C validator explicitly
> comlains about the doctype declaration. If I change "HTML" to "html" in the
> doctype decl of the saved copy of the generated XML, it validates OK.
It seems that the HTMLSerializer and even the XHTMLSerializer classes in
Xerces still have 'HTML' hardcoded :-(
--
Johannes Koch . IT Developer
Pixelpark AG . http://www.pixelpark.com
Rotherstraße 8 . 10245 Berlin . Germany
phone: +49 30 5058 - 1288 . fax: - 1355
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>