cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simone Pensa <simone.pe...@icn.siemens.it>
Subject Re: Including javascript
Date Tue, 28 Nov 2000 11:37:00 GMT
You shuold remove the <script> ...  </script> tags in the java script
file and maybe yuo'll be able to correct the first error.
For the second one, try to create the variable outside the for loop and
then assing the correcr value in the loop.



Naegeli Margrit wrote:
> 
> I seem to remember that it's not possible to write the <script ... /> tag
> like this;
> You have to do <script ...></script>.
> 
> Greetings, Maggie
> 
> > -----Original Message-----
> > From: Kai.Rehlen@pass-consulting.com
> > [mailto:Kai.Rehlen@pass-consulting.com]
> > Sent: Tuesday, November 28, 2000 11:58 AM
> > To: cocoon-users@xml.apache.org
> > Subject: Including javascript
> >
> >
> > Hi all,
> > can someone please help me on including a javascript file
> > into an xml file?
> > The script is running fine if included into an html file but trying to
> > include it into the xml file a javascript error occurs.
> >
> > **************
> > <?xml version="1.0"?>
> > <xsl:stylesheet version="1.0"
> >       xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> > >
> >
> >
> > <xsl:template match="Upload">
> > <xsl:processing-instruction
> > name="cocoon-format">type="text/html"</xsl:processing-instruction>
> >
> > <html>
> > <head>
> > <script language="JavaScript" type="text/javascript"
> > src="./script.js"/>
> >
> >       <title>
> >               Dokumenten Auswahl
> >       </title>
> > </head>
> >
> > <body bgcolor="orange">
> >
> > <FORM ACTION="http://localhost:8080/fue/servlet/upload" METHOD="POST"
> > ENCTYPE="multipart/form-data" onsubmit="return verify(this);">
> >
> > <!-- and so on -->
> >
> > <xsl:apply-templates/>
> >
> > </FORM>
> > </body>
> > </html>
> >  <<script.js>>
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org

Mime
View raw message