XML London, 10 June 2017
O'Neil Delpratt oneil@saxonica.com |
Debbie Lockett debbie@saxonica.com |
Native support, not so much...
However...
Warning: To disable advertisements look away now. Other XSLT processors are available.
Saxon-JS not only provides XSLT 3.0 in the browser, but also allows interactive web applications to be written directly in XSLT, using interactive XSLT.
Task: Redesign in-house License Tool webapp
making use of client side
interactive XSLT 3.0
Flow diagram for redesigned License Tool
We'll now focus on two major areas of technical development, required for the License Tool redesign.
Replaces previously used XSLTForms:
json-to-xml()
<ixsl:schedule-action>
http-request
will be available with Saxon 9.8 and Saxon-JS
1.0.1 (coming soon)Alternative: call custom global JavaScript function to make HTTP request
Instruction to make an asynchronous call to a
named template.
wait
- after waiting a specified timedocument
- after fetching a documenthttp-request
- after receiving a response from a
specified HTTP request<ixsl:schedule-action http-request="$HTTPrequest">
<xsl:call-template name="HTTPsubmit"/>
</ixsl:schedule-action>
http:request
element)