Re: AW: [xsl] Netscape XSLT ?

Subject: Re: AW: [xsl] Netscape XSLT ?
From: "Thomas B. Passin" <tpassin@xxxxxxxxxxxx>
Date: Thu, 30 May 2002 13:58:05 -0400
[Braumüller, Hans]
do you have applied successfuly
<xsl:apply-templates select="yournode"></xsl:apply-templates>


[Tom P]

Sure, but that seems so simple that I think you must mean something else.

Here's a version with apply-templates , and it also works in Mozilla 1.0 rc3
(I just upgraded to rc3 since my last post) - i.e., the javascript works:

<xsl:stylesheet version="1.0"

<xsl:output method="html" encoding="iso-8859-1"/>

<xsl:template match="/">
<script language='javascript'>
 function test(){alert('xxx')}

 <xsl:apply-templates select='node'/>


<xsl:template match='node'>
 <a href='javascript:test()'>a link</a>

And the obvious XML to go along with it:

<?xml-stylesheet type="text/xsl" href="xxx.xsl"?>
<node>Here is a node</node>


Tom P

 XSL-List info and archive:

Current Thread