This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Javascript as an Include file in xsl


>>>>> "Michael" == Michael Kay <mhkay@iclway.co.uk> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]