Altova Mailing List Archives

Re: Xml+XSL: Problems with FireFox displaying

From: Martin Honnen <mahotrash@-----.-->
Date: 11/5/2004 3:03:00 PM

Jesper Stocholm wrote:
> On Fri, 05 Nov 2004 14:43:52 +0100, Martin Honnen wrote:
>>Jesper Stocholm wrote:
>>>What am I doing wrong?
>>Hard to tell, maybe you can post the URLs of a short XML sample and XSLT 
>>demonstrating the problem. I see nothing wrong in that XSLT snippet you 
>>have above but the problem could be with your XML input.
> the content is located at
> When displayed in IE the result is as expected - but not in FireFox

You are transforming to XHTML but inside that template you call the 
<br/> elements are in the null namespace so make that

	<xsl:template name="break">
		<xsl:param name="text" select="."/>
			<xsl:when test="contains($text, '&#xa;')">

				<xsl:value-of select="substring-before($text, '&#xa;')"/>
				<br xmlns="" />
				<xsl:call-template name="break">
					<xsl:with-param name="text" select="substring-after($text,'&#xa;')"/>
				<xsl:value-of select="$text"/>


and it should work.

By the way, to output a DOCTYPE node you shouldn't use disable output 
escaping but rather the <xsl:output> element.


	Martin Honnen


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.