X hits on this document

462 views

0 shares

1 downloads

0 comments

37 / 142

Rendering XML with cascading style sheets

Once rendered the resulting XML file should look something like this:

Tables

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>

29

Document info
Document views462
Page views468
Page last viewedFri Dec 09 14:05:41 UTC 2016
Pages142
Paragraphs3126
Words34660

Comments