"Nicola Ken Barozzi" <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] > - 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: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>