Re: func:script
Mike Brown <[email protected]>
| Newsgroups | gmane.text.xml.xslt.extensions |
|---|---|
| Message-ID | <[email protected]> |
PHDB _ wrote: > I want to call an external function in my XSL file and the func:script would > have suited me very well. > Howver I've read on the web page that There are currently no XSLT processors > that we know of that support func:script natively. There are currently no > third-party implementations of func:script. > > Have things evolved since 2001-05-20 ? As far as I know, no, but there are foo:script extension elements in several major processors (Xalan, Saxon, MSXML, possibly others). The EXSLT version was an attempt to unify them, IIRC. You can use element-available() to test for them within a choose/when, or you can put the processor-dependent code in separate stylesheets for each processor, and have those stylesheets import the processor-independent code, then you just invoke the importing stylesheet that is appopriate for the stylesheet you're using. -Mike