Re: Problem in Mozilla for Displaying text from XSL variable

"Anthony Jones" <[email protected]> Tue, 17 Jun 2008 21:21:48 +0100
Newsgroups gmane.comp.mozilla.devel.xml
Message-ID <[email protected]>
<[email protected]> wrote in message
news:50a125f2-2d3a-4cb7-99b7-f1adcfef5367@l17g2000pri.googlegroups.com...
> I have one problem regarding displaying text from XML file.
> I have a XSL variable named $p = (0 0 0) (0.82 0 0) (1.63 -0.01 0)
> (2.63 -0.01 0) (3.63 -0.01 0) (4.63 -0.01 0) (5.63 -0.02 0) (6.63
> -0.02 0) (7.63 -0.02 0) (8.6 -0.02 0)
> This line contains X,Y,Z coordinates of 10 points.
> for displaying each coordinate in a separate line.Like this....
> (0 0 0)
> (0.82 0 0)
> (1.63 -0.01 0)
> (2.63 -0.01 0)
> (3.63 -0.01 0)
> (4.63 -0.01 0)
> (5.63 -0.02 0)
> (6.63 -0.02 0)
> (7.63 -0.02 0)
> (8.6 -0.02 0)
>
> i made a template
>
> <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?

Try changing <br/> to <br />
Note the inserted space.

-- 
Anthony Jones - MVP ASP/ASP.NET