Webapp

From EXPath

(Difference between revisions)
Jump to: navigation, search
(Created page with 'Web Applications.')
Line 1: Line 1:
Web Applications.
Web Applications.
 +
 +
This module is defined by first looking at the existent and playing with a toy implementation, before writing down a spec.  This page gather several observations as well as drafts.
 +
 +
==Servlet definition==
 +
 +
A servlet is a component that takes a request and a context as input,
 +
and provides a response as output.  The request is represented by an
 +
element srv:request and a sequence of zero or more request bodies.
 +
The context is represented by an element srv:application and an
 +
element srv:servlet.  The response is represented by an element
 +
srv:response and a sequence of zero or more response bodies.
 +
 +
A servlet can be implemented using one of various technologies.  Each
 +
kind of servlet has its own rules for receiving requests and providing
 +
responses.  The available servlet kinds are:
 +
 +
* an XPath function (provided by an XQuery library module, a stylesheet, or any other implementation-specific means);
 +
* an XSLT named template;
 +
* an XQuery main module;
 +
* an XSLT stylesheet;
 +
* an XProc pipeline (and a step type?).

Revision as of 21:29, 21 December 2009

Web Applications.

This module is defined by first looking at the existent and playing with a toy implementation, before writing down a spec. This page gather several observations as well as drafts.

Servlet definition

A servlet is a component that takes a request and a context as input, and provides a response as output. The request is represented by an element srv:request and a sequence of zero or more request bodies. The context is represented by an element srv:application and an element srv:servlet. The response is represented by an element srv:response and a sequence of zero or more response bodies.

A servlet can be implemented using one of various technologies. Each kind of servlet has its own rules for receiving requests and providing responses. The available servlet kinds are:

  • an XPath function (provided by an XQuery library module, a stylesheet, or any other implementation-specific means);
  • an XSLT named template;
  • an XQuery main module;
  • an XSLT stylesheet;
  • an XProc pipeline (and a step type?).
Personal tools