Hi,
"Anna Afonchenko" <[EMAIL PROTECTED]> writes: > Hi Hussayn. > Thank you for pointing my out my typo, I corrected it. > But I still don't get the output that I want. > I changed the serializer to the html, but looking at the source of the > output page, I still get: > > <html xmlns="http://www.w3.org/1999/xhtml"> > <head> > <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> > > <meta content="HTML Tidy, see www.w3.org" name="generator"> > <title>Untitled</title> > </head> > <body> > <p>some " text 's</p> > </body> > </html> > > e.g. I don't have doctype declaration, and quotes are not escaped as > entities. > > Maybe somebody already used jtidy properties inCocoon? > Please explain me my mistake!!! > > > -----Original Message----- > > From: Anna Afonchenko [mailto:[EMAIL PROTECTED]] > > Sent: Monday, December 16, 2002 4:15 AM > > To: cocoon-users > > Subject: Configuring JTidy > > > > > > Hi all. > > I have a very simple and stupid question. > > In the 2.0.4 version of cocoon the HTMLGenerator now can accept a JTidy > > configuration file. > > The example that is given in the user documentation is: > > > > <map:generator type="html" > > src="org.apache.cocoon.generation.HTMLGenerator"> > > <jtidy-config>jtidy.properties</jtidy-config> > > </map:generator> > > You should have a look, how reponsibitities are shared between generators, transformers and serializers in cocoon. Setting the doctype is responsibility of the serializer Any attempt of a generator to set the doctype is ignored. So the HTMLGenerator is only doing half of JTidys job. You can configure the HTMLSerializer to include the doctype. See http://xml.apache.org/cocoon/userdocs/concepts/sitemap.html Martin --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>