Re: Problem in Mozilla for Displaying text from XSL variable
Jonas Sicking <[email protected]> Tue, 27 May 2008 10:41:35 -0700
| Newsgroups | gmane.comp.mozilla.devel.layout.xslt |
|---|---|
| Message-ID | <[email protected]> |
> <xsl:call-template name="break">
> <xsl:with-param name="str" select="$p"/>
> <xsl:with-param name="breaker" select="'('"/>
> </xsl:call-template>
> <xsl:template name="break">
> <xsl:param name="str"/>
> <xsl:param name="breaker"/>
> <xsl:choose>
> <xsl:when test="substring-after($str, $breaker) = ''"/>
> <xsl:value-of select="$str"/>
> </xsl:when>
> <xsl:otherwise>
> <xsl:value-of select="concat(substring-before($str, $breaker),
> $breaker)"/>
> <br/>
> <xsl:call-template name="break">
> <xsl:with-param name="str" select="substring-after($str, $breaker)"/>
> <xsl:with-param name="breaker" select="$breaker"/>
> </xsl:call-template>
> </xsl:otherwise
> </xsl:template>
>
> for more clearity go to this link
> http://bytes.com/forum/thread786674.html
>
> NOW THE PROBLEM is this, that in IE 6.0 its displaying all the points
> in different row, but when i open that file in mozilla,it displays all
> the points in a single row. can any one hlep me that how can it
> display each point in different row in mozilla?
Most likely the <br/> that you are creating is in the wrong namespace.
Are you by any chance creating an XHTML result page? If so, you need to
make sure that all created elements are in the XHTML namespace.
I would strongly recommend using HTML as output, unless you know all the
differences between XHTML and HTML.
/ Jonas