home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


Book HomeXSLSearch this book

9.4. XML Document Design

Now that we've covered how our tutorials appear in all their various forms, we'll discuss the structure of the XML documents that become our tutorials. To start with, we used some obvious structural principles:

  • A <tutorial> should contain a single <title> and one or more <section>s.

  • A <section> should contain a single <title> and one or more <panel>s.

  • A <panel> should contain a single <title> and a <body>, which in turn contains the markup for the panel's contents.

This foundation creates an XML structure identical to the layout of our tutorials, so it was an obvious place to start.



Library Navigation Links

Copyright © 2002 O'Reilly & Associates. All rights reserved.