471,601 Members | 1,201 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,601 software developers and data experts.

Problem in Mozilla for Displaying text from XSL variable

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

Expand|Select|Wrap|Line Numbers
  1. <xsl:call-template name="break">
  2. <xsl:with-param name="str" select="$p"/>
  3. <xsl:with-param name="breaker" select="'('"/>
  4. </xsl:call-template>
  5. <xsl:template name="break">
  6. <xsl:param name="str"/>
  7. <xsl:param name="breaker"/>
  8. <xsl:choose>
  9. <xsl:when test="substring-after($str, $breaker) = ''"/>
  10. <xsl:value-of select="$str"/>
  11. </xsl:when>
  12. <xsl:otherwise>
  13. <xsl:value-of select="concat(substring-before($str, $breaker), $breaker)"/>
  14. <br/>
  15. <xsl:call-template name="break">
  16. <xsl:with-param name="str" select="substring-after($str, $breaker)"/>
  17. <xsl:with-param name="breaker" select="$breaker"/>
  18. </xsl:call-template>
  19. </xsl:otherwise
  20. </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?
May 27 '08 #1
0 1397

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by El Durango | last post: by
2 posts views Thread by Nick Wedd | last post: by
26 posts views Thread by shlomi.schwartz | last post: by
2 posts views Thread by sorobor | last post: by
2 posts views Thread by Gary Hasler | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by CCCYYYY | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.