OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   How do we call Javascript function in XSL file on Netscape (Ver 6.2) b

[ Lists Home | Date Index | Thread Index ]
  • To: xml-dev@lists.xml.org
  • Subject: How do we call Javascript function in XSL file on Netscape (Ver 6.2) browser?
  • From: "Deshpande, Gururaj" <gururaj.deshpande@flsmidth.com>
  • Date: Wed, 10 Apr 2002 11:11:22 -0400
  • Return-receipt-to: "Deshpande, Gururaj" <gururaj.deshpande@flsmidth.com>

To, all XML Gurus
My question is about Netscape 6.2, XSL, XML and Javascript. I am doing
client side transformation. No server support at all. When I call javascript
function within XSL file, Netscape does not run / understand the javascript.
Same works on IE without problems. 
I am copying my XSL file below. 
Does anybody has a solution? Thanks 

xsl file 
<?xml version='1.0' encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0"
<xsl:output method="html"/>
<xsl:template match="/">
	<link rel="stylesheet" type="text/css"
	<SCRIPT language="JavaScript"><![CDATA[
			function test(avalue) {
		    <td>Equipment No..</td>
		    <td>Manufacture No..</td>
		    <td>Contract No.</td>
		<xsl:apply-templates select="plant/dept/eqpt"/> 
<xsl:template match="plant/dept/eqpt">
	<xsl:for-each select=".">
	<tr valign="middle" class="TableGrey">
	<td><a href="javascript:test('{prodxml}')"><xsl:value-of
    	<td><xsl:value-of select="description"/></td>
    	<td><xsl:value-of select="manufactureno"/></td>
    	<td><xsl:value-of select="contractno"/></td>


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS