cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Yates <>
Subject Re: namespace prefixes in html output
Date Wed, 24 Apr 2002 17:12:25 GMT


>   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:
>     <title><i18n:text>Academic</i18n:text></title>
>     <cinclude:include src="cocoon://school/vacancies/academic.xml"/>
>the included xml (actually coming via a sub-sitemap and the html
>generator) will be something like:
>     <link uri="somewhere">link title</link>
>When the combined xml has been transformed to html it looks like
><ul xmlns:cinclude="" <>>
><a href="somewhere">link title</a></li>
>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.
>Simeon Walker,                      email:
>School of Biological Sciences,      phone: +44 (0)1248 383702
>University of Wales, Bangor,        fax: +44 (0)1248 382569
>Gwynedd, LL57 2UW, UK.              www:

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message