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

Chapter 2. Product Pages: Transforming XML in the Browser Using XSL

In this chapter

  • The Two Faces of XSL

  • Trees: The Basic Structure of XML

  • Well-Formedness

  • Building the Style Sheet

  • Getting Specific—Using XPath

  • Looping and Sorting

  • Adding Elements and Attributes

  • Conditionals

  • Next Steps

Chapter 1 talked about markup languages in general and HTML and XML in particular. Specifically, we discussed the separation of content and presentation.

One of the ways we did that was to take our HTML content, which was rich in presentation but didn't give us a lot of information about the content, and change it to XML, which told us everything we needed to know about the content but nothing about the presentation. We then used Cascading Style Sheets (CSSs) to control the ...

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