O'Reilly logo

XML and Java™ from scratch by Nicholas Chase

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required