LIBR 246
Minor Assignment 4:
Displaying XML with CSS
- Create a DTD and markup an XML file for a book collection.
- Create two CSS stylesheets. The first one should display all the data; the second only the book titles and the authors.
- Select a topic. Create a DTD. Markup 2 or 3 items in XML. Display the data in two different ways using CSS.
Examples
The documents could be incorporated into the Trail Center site created for Minor Assign. 2(based on the real site at http://www.trailcenter.org).
- Part 1: A DTD ("guides.dtd") based on MARC fields was created for an XML file ("guides.xml") with three local trail guides
- Part 2: With the use of two CSS files ("guides.css" and "guides1.css"), the guides.xml file may be viewed with all data or with only book titles and authors.
- Part 3: An XML file ("trails.xml") with data about trails in the Santa Cruz Mountains may be viewed all information or with only name, length, park location and link names (actual links can't be displayed using CSS)