Subject: Re: AW: [xsl] Netscape XSLT ? From: "Thomas B. Passin" <tpassin@xxxxxxxxxxxx> Date: Fri, 31 May 2002 11:13:13 -0400 |
I found that after uninstalling earlier versions, I had to actually delete everything in the Mozilla directory tree (except plugins) before installing the newer version. Something was left that caused problems. In my case, it wouldn't even run, but maybe there is some part of an older version of the xslt processor that remains and causes trouble. Cheers, Tom P [Braumüller, Hans] yes, it is so simple. So i conclude that maybe my operating system windows 2000 or something incombatible installed with moz, that it is not getting run correctly. In fact, Moz 1.03. in my environment don´t parsed <xsl:apply-templates select='node'/>. If i don´t do it recursive, i am getting correct result. ___________________ <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> <a href='javascript:test()'>a link</a> <p> <xsl:value-of select="node"/></p> </body> </html> </xsl:template> </xsl:stylesheet> ------------------------ <?xml-stylesheet type="text/xsl" href="test2.xsl"?> <node>Here is a node</node> ___________________ Any idea ? Thanks, Hans > -----Ursprüngliche Nachricht----- > Von: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]Im Auftrag von Thomas B. > Passin > Gesendet: Donnerstag, 30. Mai 2002 19:58 > An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Betreff: Re: AW: [xsl] 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 > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
AW: AW: [xsl] Netscape XSLT ?, "Braumüller, Hans" | Thread | Re: [xsl] Xalan memory limit?! (sol, David N Bertoni/Camb |
RE: [xsl] Whitespace seperated valu, Rajput, Ashish S | Date | [xsl] calling a web service from XS, Francis Norton |
Month |