This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: How do we call Javascript function in XSL file on Netscape(Ver 6.2) browser?
- From: "Deshpande, Gururaj" <gururaj dot deshpande at flsmidth dot com>
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 10 Apr 2002 14:17:32 -0400
- Subject: RE: [xsl] How do we call Javascript function in XSL file on Netscape(Ver 6.2) browser?
- Reply-to: xsl-list at lists dot mulberrytech dot com
<a href="javascript:test('{prodxml}')"><xsl:value-of
select="equipmentno"/></a>
if I change javascript:test(... to javascript:alert(.... , Netscape pops
up the alert box.
For javascript:test(.... , Netscape javascript error is 'test not defined'
> -----Original Message-----
> From: Joerg Heinicke [SMTP:joerg.heinicke@gmx.de]
> Sent: Wednesday, April 10, 2002 2:16 PM
> To: xsl-list@lists.mulberrytech.com
> Subject: Re: [xsl] How do we call Javascript function in XSL file on
> Netscape(Ver 6.2) browser?
>
> Maybe AVT is not known to the XSLTransformer Transformiix. Try to use
> <xsl:attribute/> then. The <xsl:for-each> is not needed. And the matcher
> of
> the template can be shortened, because you have only eqpt-elements on this
> level.
>
> <xsl:template match="eqpt">
> <tr>
> <td>
> <a>
> <xslattribute name="href">
> <xsl:text>javascript:test('</xsl:text>
> <xsl:value-of select="prodxml"/>
> <xsl:text>')</xsl:text>
> </xsl:attribute>
> <xsl:value-of select="equipmentno"/>
> </a>
> </td>
> <td><xsl:value-of select="description"/></td>
> </tr>
> </xsl:template>
>
> Joerg
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list