Working with Two Databases

In this and subsequent hours, you'll be using two different databases. For the first, you'll use the <Catalog> database that you used in the previous hour. The database is found in listing12-1.xml.

For the second database, you'll start with a root node named <Booksellers>. The records in the database are going to be <Seller> record(s) of the books. Each <Seller> record will consist of the following components:

  • Name

  • Address

  • City

  • State

  • PostalCode

  • Phone

  • ContactPerson

  • A list of Sams books the seller sells

Create the file shown in Listing 13.1 and save it as listing13-1.xml.

Listing 13.1 Your Second Database to Be Processed with XSL Templates
 1: <?xml version="1.0"?> 2: <!-- This file is the file that contains the information ...

Get Sams Teach Yourself XML in 24 Hours 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.