xsl-list
[Top] [All Lists]

Re: [xsl] Javascript for extension functions

2007-09-09 23:09:36
"Abel" == Abel Braaksma <abel(_dot_)online(_at_)xs4all(_dot_)nl> 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

Ditto.

    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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--