Webapp

From EXPath

(Difference between revisions)
Jump to: navigation, search
Line 2: Line 2:
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.
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.
 +
 +
Some notes can also be found in Florent Georges's [http://fgeorges.org/wiki/EXPath#Servlet wiki].
==Servlet definition==
==Servlet definition==

Revision as of 17:17, 16 February 2010

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.

Some notes can also be found in Florent Georges's wiki.

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