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
Expand|Select|Wrap|Line Numbers
- <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>
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?