[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: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 12 Oct 2001 08:22:26 +0100
include file via javascript
>>>>> "Michael" == Michael Kay <mhkay@xxxxxxxxxxxx> writes:

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

I was faced with exactly this problem a couple of months ago. I wanted
to use the same function in a javascript routine on a web page, and at
transformation time. I found no better solution than to have two
versions of the function - one in an msxsl:script element in a .xsl
include file, and the other in a .js file for inclusion via a <script
src="" > tag.
-- 
Colin Paul Adams
Preston Lancashire

 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.