[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Antwort: External JavaScript?

Subject: Antwort: External JavaScript?
From: flora.fencl@xxxxxx
Date: Thu, 7 Nov 2002 09:58:49 +0100
xsl external javascript
hi.

try:


        <script language="JavaScript"  type="text/javascript" src="login.js
">&nbsp;</script>

        ( with: <!DOCTYPE xsl:stylesheet [
  <!ENTITY nbsp "&#160;">]> )

        maybe it helps
        good luck





Johannes.Becker@xxxxxx@l... 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:    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.


Thanks
Jonny


 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.