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.

The second step consists of formatting the text so it takes ...

Get Next Generation Application Integration: From Simple Information to Web Services now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.