Re: [xsl] Javascript for extension functions

Subject: Re: [xsl] Javascript for extension functions
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: Mon, 10 Sep 2007 07:09:12 +0100
>>>>> "Abel" == Abel Braaksma <> writes:

    >> If using the host language, I can envisage various answers, but
    >> Javascript?

    Abel> One thing that I dearly miss from the XSLT spec is a way to do a POST
    Abel> request (i.e., retrieve a SOAP or JSON XML document through
    Abel> web services). With JavaScript one has the ability to use
    Abel> XmlHTTPRequest which can be used for issuing a POST to the
    Abel> server and returning an XML object.

I wouldn't have thought so. It's not part of the language. Is it a
required library function?

    Abel> Another thing you can do is check the existence of an
    Abel> external resource


    Abel> And I'm sure there are other things that cannot be done
    Abel> through xsl:function. I.e., try to process a ZIP file will
    Abel> be rather hard (meaning: impossible) in XSLT because of the
    Abel> &#x0; characters.

But all these must be provided as library functions by the Javascript
implementor - so they might as well as be provided as built-in
extension functions.
Colin Adams
Preston Lancashire

Current Thread