[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: reference external javascript file with msxml pars
Mac, I believe that your question is more of an HTML question rather than an XSL or XML question. Assuming your output is HTML, you should be able to use the html convention for an externally linked javascript file. Something like this should suffice: <xsl:element name="script"> <xsl:attribute name="language">JScript</xsl:attribute> <xsl:attribute name="src">path/to/your/jscript/file</xsl:attribute> </xsl:element> If your file was located in c:/temp, pure html would look something like this: <script language="JScript" src="c:/temp/jscriptFile.js"></script> Hope that helps! bix ----- Original Message ----- From: "Mac Martine" <email@xxxxxxxxxxxxxxxx> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Sent: Friday, April 04, 2003 5:01 PM Subject: reference external javascript file with msxml parser > > Hello- > I basically need the following, except I want the javascript to be in > an external file. How can I do this? Thanks- > Mac > > <msxsl:script language="JScript" implements-prefix="my"> > function test() { > return 1; > } > </msxsl:script> > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > 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
|