You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Lisa van Gelder <li...@wirestation.co.uk> on 2000/09/15 11:06:32 UTC

Re: BUG ??? What's so special about

Hi guys

I know this is something that was discussed a little while back, and I have
looked at the suggested solutions in the archives.

The problem is that Cocoon does not always close tags.
I have imagemaps, with <map> and <area> tags and the map tag does not get
closed, meaning that the imagemap is not usable in Netscape.

I have tried setting the default formatter to text/xml and text/xhtml in
cocoon.properties file, but that produces code that IE and netscape do not
see as html, even when I change the MIMEtype to html.

If I try print <map></map> in the stylesheet, only <map> gets printed. Is
this a Cocoon bug? Is there a patch/workaround? Has anyone got any
suggestions?

I am using Cocoon 1.7.4

thanks in advance

Lisa

PS - my code:

	<xsl:template match="map">
		<map name="{@name}">
		<xsl:for-each select="area">
		<area shape="{@shape}" coords="{@coords}" href="{@href}"
target="{@target}" alt="{@alt}" title="{@title}"></area>
		</xsl:for-each>
			<xsl:apply-templates />
		</map>
	</xsl:template>