Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: call javascript function in xsl [Thread Next] Re: call javascript function in xslTo: NULL Date: 2/15/2005 11:17:00 AM Yes you can do what I think you mean, ie use the javascript to perform processing of the import document. I use this technique to 'massage' some embeded, delimited text (ie "*** Contact : Mr J Smith") into elements (ie "<Contact>Mr J Smith</contact>"). The problem I have currently is manageability as a differnt object model is used in ASP.NET than the one used in MSXML! "brian_harris" <brianharris@d...> wrote in message news:500AFF96-3137-41D3-B75B-731A41FFF5F2@m...... >I believe that I mean extension functions in XSL. These functions are > executed to create specific data that creates data for HTML document being > created. So they are executed in processing of XSL, not later when HTML > document being executed > > "Neil Smith [MVP Digital Media]" wrote: > >> Do you mean extension functions for XSL ? Or more likely did you mean >> javascript embedded in HTML documents ? In case 2, I would just add at >> the top of the stylesheet, in the HTML <head></head> tags, >> >> <script src="http://path/to/your/javascript-file.js" >> language="javascript1.2" type="text/javascript"></script> >> >> And then host your javascript-file.js in an appropriate place on your >> server ;-) >> >> Cheers - Neil >> >> On Thu, 3 Feb 2005 09:29:01 -0800, brian_harris >> <brian_harris@d...> wrote: >> >> >I have an application that has several XSL style sheets. In the style >> >sheets >> >I am using the xsl:select tag to define javascript functions. At this >> >time I >> >have duplicated many of the same javascript functions in seperate style >> >sheets, as per book examples. But I now would like to have only 1 >> >definition >> >of the functions and include it into each style sheet. I would like to >> >know >> >if there is a way to do this. The main reason I want to do this is that >> >in >> >one of these functions I have found a bug which will need to be fixed in >> >each >> >XSL, so for future portability I would like to have these functions only >> >programmed once. >> >> | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
