This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Scripting in an XSL Stylesheet...How?
- To: <xsl-list at mulberrytech dot com>
- Subject: RE: Scripting in an XSL Stylesheet...How?
- From: "Paulo Gaspar" <Paulo dot Gaspar at krankikom dot de>
- Date: Fri, 26 May 2000 12:56:11 +0200
- Reply-To: xsl-list at mulberrytech dot com
There is some similar functionality in MSXML. I prefer using the
current MSXML3, which is already quite stable and has closer
conformance with the standard.
http://msdn.microsoft.com/downloads/webtechnology/xml/msxml.asp
Be aware that MSXML3 is a beta version.
There are two clearly highlighted downloads:
1. The parser: "Download the May 2000 MSXML Technology Preview Release"
2. The documentation: "Download the latest MSXML Technology Preview SDK"
The SDK contains the documentation the (M$)HTML Help file "xmlsdk30.chm"
(May release). Check the <msxsl:script> element in the "XSLT Reference".
(This is different from the IE5 standard MSXML use of script.)
It is easy to use MSXML3 from script and with script.
It is also possible to use it in IE5.
("XML Developer's Guide"/"XML DOM User Guide"/"Running Msxml3 in Replace
Mode")
Have fun,
Paulo
-----Original Message-----
From: owner-xsl-list@mulberrytech.com
[mailto:owner-xsl-list@mulberrytech.com]On Behalf Of Leigh Dodds
Sent: Thursday, May 25, 2000 6:40 PM
To: xsl-list@mulberrytech.com
Subject: RE: Scripting in an XSL Stylesheet...How?
> Does the processor understand ECMA script? Can I script inside an xml
> document?
I'm not sure about the other processors, but Xalan [1] definitely
understands ECMA script. Check out the following page for
further details [2].
Essentially you can declare your ECMA/Java script as an extension
function or element and then access it appropriately. There
are some examples given at [2].
[1]. http://xml.apache.org/xalan/index.html
[2]. http://xml.apache.org/xalan/extensions.html
Cheers,
L.
--
Leigh Dodds, Systems Architect | "Pluralitas non est ponenda
http://weblogs.userland.com/eclectic | sine necessitates"
http://www.xml.com/pub/xmldeviant | -- William of Ockham
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list