|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: AW: Netscape XSLT ?
[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" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" encoding="iso-8859-1"/> <xsl:template match="/"> <html> <head> <script language='javascript'> function test(){alert('xxx')} </script> <title>test</title> </head> <body> <xsl:apply-templates select='node'/> </body> </html> </xsl:template> <xsl:template match='node'> <a href='javascript:test()'>a link</a> </xsl:template> </xsl:stylesheet> ==================================== And the obvious XML to go along with it: <?xml-stylesheet type="text/xsl" href="xxx.xsl"?> <node>Here is a node</node> Cheers, Tom P XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






