Rendering XML with cascading style sheets
Once rendered the resulting XML file should look something like this:
Tables are two-dimensional lists; they are a matrix of rows and columns. A very simple list of books (a catalog) lends itself to a tabled layout since each book (work) in the list has a number of qualities such as title, author, type, and date. Each work represents a row, and the title, author, type, and date represent columns.
Here is an XML file representing a simple, rudimentary catalog. Notice the XML processing instruction directing any XML processor to render the content of the file using the CSS file catalog.css:
<?xml-stylesheet href='catalog.css' type='text/css'?> <catalog> <caption>This is my personal catalog.</caption> <structure> <title>Title</title> <author>Author</author> <type>Type</type> <date>Date</date> </structure> <work> <title>The Gift Of The Magi</title> <author>O Henry</author>