Tip: Application Developer 4.0.3 contains SQLToXML library, but it returns results as a stream data, which means you need to parse it for a document. Later versions may have a function to get a document directly.

4.The servlet gets an XML document from SQLToXML library.

5.The servlet instantiate XSLT Processor.

6.The XML document that is the output of SQLToXML is an input for the XSLT Processor.

7.The pre-designed XSL applied and result HTML has been generated and transferred to the browser, so when the transformation is performed, the user can view the retrieved customer information on the Web browser.

HTML

Web

Browser

1

5

XSL Servlet

2

XSLT

6

Processor

 

7

HTML

XML Data

Customer XSL

Customer Result XSL

4

SQLToXML

3

DB

Figure 11-3 Retrieving customer data scenario outline

Chapter 11. Light weight XML-based Enterprise Application 261

Page 277
Image 277
IBM Version 5 manual XSL Servlet