|Oracle8i Application Developer's Guide - XML
Release 3 (8.1.7)
Part Number A86030-01
Using XSQL Servlet, 11 of 24
XSQL Page Processor in Action
Figure 19-8 describes in detail what goes on inside the XSQL Page Processor when processing a request. See Figure 19-6 for the broad picture.
- The XSQL Page Processor is accessed in any of the three ways shown:
- From a Servlet
- From the XSQL Command Line
- From an XSQL Request
The request page template input, "Request Page", is fetched by "get Template".
- If the page is not in the XSQL Page Cache (See Figure 19-7, "XSQL Page Processor Architecture"), or if it has been modified, the request page is parsed and cached in the XSQL Page Cache for future use.
If the page is already in the XSQL Page Cache it is simply fetched from the XQL Page Cache.
- The results of the parse are processed for any actions or tasks, if specified in the XSQL Page Template and if applicable.
- If the XSQL Page Template includes any ActionHandlers the Action Handler is invoked to further process the actions.
- Next it applies the selected stylesheet and transforms the XSQL data Page.
- The transformed result is returned to the requester, Servlet, XSQL Command Line, or XSQL Request application.
Figure 19-8 XSQL Page Processor in Action