Hi, I'm getting namespace prefixes in the html output from Cocoon 2.02 and I can't figure out how to get rid of them. The problem is that I cannot create valid html whilst they are there.
The prefixes can occur under a few different circumstances, here's an example. One xml file does a cinclude like this: <list> <title><i18n:text>Academic</i18n:text></title> <cinclude:include src="cocoon://school/vacancies/academic.xml"/> </list> the included xml (actually coming via a sub-sitemap and the html generator) will be something like: <item> <link uri="somewhere">link title</link> </item> When the combined xml has been transformed to html it looks like this: <h4>Academic:</h4> <ul xmlns:cinclude="http://apache.org/cocoon/include/1.0"> <li> <a href="somewhere">link title</a></li> </ul> The <ul> is the result of the transformation of the <list>, and the <list> was the parent element of the cinclude. So the <ul> gets the namespace of cinclude added. Why, is this meant to happen? Am I wrong in thinking that if the output is going to be html then no namespace attributes should make their way to the output? I read a few previous posts on this subject but I can't find any where the original poster reported success with the suggestions. I have tried using the exclude-result-prefixes attribute to the xsl:stylesheet element but it had no effect. Has anyone else managed to get around this problem? Any help would be much appreciated. Regards, Simeon -- Simeon Walker, email: [EMAIL PROTECTED] School of Biological Sciences, phone: +44 (0)1248 383702 University of Wales, Bangor, fax: +44 (0)1248 382569 Gwynedd, LL57 2UW, UK. www: http://biology.bangor.ac.uk/ --------------------------------------------------------------------- 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]>