|
Subject: RE: Antwort: [xsl] External JavaScript? From: Jarno.Elovirta@xxxxxxxxx Date: Thu, 7 Nov 2002 11:12:44 +0200 |
Hi,
I have to disagree with this, especially with the use of an entity, instead of a character entity reference. I'd suggest something in the lines of
<script language="JavaScript" type="text/javascript" src="login.js">
<xsl:comment>no inline script</xsl:comment>
</script>
Cheers,
Jarno
> try:
>
>
> <script language="JavaScript" type="text/javascript"
> src="login.js
> "> </script>
>
> ( with: <!DOCTYPE xsl:stylesheet [
> <!ENTITY nbsp " ">]> )
>
> maybe it helps
> good luck
>
>
>
>
>
> Johannes.Becker@xxxxxx@lists.mulberrytech.com am 07.11.2002 09:41:14
>
> Bitte antworten an xsl-list@xxxxxxxxxxxxxxxxxxxxxx@inet
>
> Gesendet von: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>
>
> An: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Kopie:
> Thema: [xsl] External JavaScript?
>
>
> Hi,
>
> I finally got my other JS problems solved. Now I deceided to put the
> JavaScript from the xsl-file into an external file. This
> should work like
> this in the xsl (what I think):
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet version="1.0" xmlns:xsl="
> http://www.w3.org/1999/XSL/Transform" xmlns:fo="
> http://www.w3.org/1999/XSL/Format">
>
>
> <xsl:template match="/portalLogin">
> <html>
> <head>
> <title>
> <xsl:value-of select="@title"/>
> </title>
>
> <script language="JavaScript" type="text/javascript"
> src="login.js
> ">
> </script>
>
> </head>
> <body text="#0B2A51"
> link="#0B2A51" vlink="
> #666666" bgColor="#46627a" onload="fillDate();">
> ......
>
> The login.js is in the same folder. But it doesn't work. Do I
> have to call
> the functions in the xsl differently? I'm using Cocoon. Do I
> have to change
> the sitemap?
> I'm really stuck again.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Antwort: [xsl] External JavaScript?, flora . fencl | Thread | Antwort: RE: Antwort: [xsl] Externa, Johannes . Becker |
| Antwort: [xsl] External JavaScript?, flora . fencl | Date | RE: [xsl] MSXML / NBSP problem and , Julian Reschke |
| Month |