Creating the Review Page

Now that we've gotten our document together, we can finally put together our order review page. To do this, we need to process our document through two different style sheets. The first is to gather the data, which we'll then massage slightly. The second is to format the results.

The trick is creating a style sheet that relates data from our two namespaces together.

Ultimately, we're looking for a page similar to Figure 6.4.

Figure 6.4. The completed review page is shown here.

Let's start by setting up a simple style sheet to make sure everything's working properly. First, we set up the servlet to display the results, as ...

Get XML and Java™ from scratch 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.