Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Problem with Firefox? >Thread Next - Re: Problem with Firefox? Re: Problem with Firefox?To: NULL Date: 5/5/2008 11:54:00 PM In article <6u1v14l5mg1k3pkco97t8i4daafmohb968@4...>, Dennis <nobody@n...> wrote: >I am in the process of converting some program output from HTML to >XML/XSLT. I have an XSL stylesheet that inserts some javascript in the >output that gets called further down to pop up a window). It works fine >in IE6 but not in Firefox/Netscape. See... > >http://kowallekfamily.com/genealogy/reports/desc-3817.xml > >It is the Note link (just to the right of Henry Bales) which is supposed >to pop up a window. In Firefox this link even looks strange (note the >space between the word "Note" and its underscores. Look at the Firefox Error Console. It probably says that NewNote is not defined. I think this is because you are putting your Javascript inside a comment. This was common in the days when some browsers didn't understand <script>, but it makes no sense when you are using XSL. Probably the browser is just ignoring comments generated by XSL. (I suspect that IE effectively writes out the result of the transform as text and then reparses it as an HTML document, while Firefox uses the result tree directly.) The space between "Note" and the underline isn't surprising: the word is inside <sup>. Put the <sup> around the whole <a> if you want the link itself to be a superscript. -- Richard -- :wq | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
