Subject: RE: [xsl] Netscape XSL and ' charcter From: "Deshpande, Gururaj" <gururaj.deshpande@xxxxxxxxxxxx> Date: Tue, 9 Apr 2002 14:54:45 -0400 |
> [Deshpande, Gururaj] > > > > I am using Netscape 6.2 on WIN 2000 PC. No web server used. All taking > place > > on client. > > > > I have a XSL and XML file (see the files below). I am calling a > javascript > > function and passing a parameter using two ' (single quotes) to wrap > the > > string. Netscape converts this to '. This is not I want. I want > > netscape to just pass the value with two ' on both sides. > > > > Well, in fact this example works fine with the latest version of Mozilla. > That is, it works once some errors have been corrected. The way you have > it > in your post, the stylesheet is not even well-formed. > > Here's the main part I fixed: > > <td><a href="javascript:test('{prodxml}')"> > <xsl:value-of select="equipmentno"/></a> > </td> > > Whatever you were trying to do with xsl:text (and it is garbled in your > post), don't do that. > > Also, you refer to a variable $plant, but you have not created that > variable > anywhere; I removed the "$" sign to make this work. > > Cheers, > > Tom P [Deshpande, Gururaj] ========================================================== Thanks for your reply. 1) Now the single quote is generating properly. But it does not run javascript function. Am I doing anything wrong? 2) How can I use <xsl:attribute name="href">, instead of your solution. $plant was a variable which I had created earlier. I forgot to delete this line. Sorry for that. Thanks Gururaj > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Netscape XSL and ' charct, David Carlisle | Thread | Re: [xsl] Netscape XSL and ' charct, Thomas B. Passin |
Re: [xsl] Netscape XSL and ' charct, Thomas B. Passin | Date | RE: [xsl] xslt, xml, and databases , Graham Seaman |
Month |