Jump to content

shiwudao

Members
  • Posts

    3
  • Joined

  • Last visited

shiwudao's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. HI, could you tell be what's the meaning about {SOMETHING}
  2. Hi all, I have a question as following:Requirement: read value(string) from XML file and write it to a HTML , and add a link to the string. The link point to a CGI program with the string as the parameter.I wrote XSL file as following:<?xml version="1.0" encoding="ISO-8859-1"?><xsl:stylesheet version="1.0"xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="/">...... <script language="javascript"> <![CDATA[ var infoname = ']]><xsl:value-of select="SOMETHING"/><![CDATA['; document.write("<a href=\"display?"+ infoname +"\" target=\"_blank\">" + infoname + "</a>"); ]]> </script>[/color]......It works fine in IE, but in Mozilla it failed because in "var inoname" statement, the section "CDATA" wa changed into new line after transformed to HTML.The HTML code should be var infoname = 'XXXX';but in Mozilla, the HTML looks like var infoname = 'XXXX';Can you tell me how to fix the problem or any better solution of the requirement?Thanks a lot!
×
×
  • Create New...