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

RE: Javascript as an Include file in xsl

Subject: RE: Javascript as an Include file in xsl
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Thu, 11 Oct 2001 10:01:54 +0100
including files in xsl
> I been brought into an existing project that is XML/XSL
> based. Even with
> limited XSL experience, I see a huge maintenance nightmare evolving.
> According to the consultants working on the project with us,
> they have found
> no way to put needed client side JavaScript functions into an
> include file.
> So all JavaScript functions are being duplicated on every
> page.  Since the
> maintenance of this product will fall on my shoulders, I want
> to find a
> better solution.  Is there a way to include a .js file that
> the XSLT parser
> will accept?  Thank you for your time.

I guess you're using MSXML3 (using extension functions is
product-dependent). I don't know if MSXML3 allows separate .js files, but
you can always use <xsl:include> to include a stylesheet module that
contains only the <msxsl:script> elements.

Of course a better way out of the maintenance nightmare is to stop using
Javascript entirely, and write all your code in XSLT.

Mike Kay


 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.