The Mechanisms

Transforming an XML document using XSLT requires two main steps. The first step consists of a structural transformation, during which the data is transformed from the input structure to the output structure (see Figure 11.8). This step may involve selecting data, grouping it, sorting it, or aggregating it, depending on the needs of the transformation. For example, within an XML document, we can change U.S. dollar values to French francs. Such a transformation would be based on the current conversion rate, either found statically within the transformation program or read from a remote database.

Figure 11.8. The first step in XSLT processing is structural transformation.

graphics/11fig08.gif

The second step consists of formatting the text so it takes on the new characteristics. In this step, information is placed in a particular type of text structure: XML, HTML, PDF, and so on.



Next Generation Application Integration(c) From Simple Information to Web Services
Next Generation Application Integration: From Simple Information to Web Services
ISBN: 0201844567
EAN: 2147483647
Year: 2005
Pages: 220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net