Chapter 3.  Elements of a web site

  
Prev don't be afraid of buying books Next

Chapter 3. Elements of a web site


River and bridge and street and square

   Lay mine, as much at my beck and call,

Through the live translucent bath of air,

   As the sights in a magic crystal ball.

ROBERT BROWNING, Old Pictures in Florence

This chapter is a practical complement for Chapter 2, "The source definition." Having discussed the ins and outs of building a comprehensive and useful source definition, we'll now look at how these rules can be applied to real-world source XML documents of a typical web site.

I cannot claim to cover everything: Your web site may well contain unique elements that won't fit common schemes. Here, only the most general and frequently used constructs are covered, and the approaches described in this chapter may not be optimal for all situations. Many examples are given, but rather than copy them over, try to use the reasoning behind these examples to analyze your own constraints and requirements.

The first part of the chapter deals with markup constructs commonly used in page documents, including headings, paragraphs and paragraph-like elements, links, images and other non-XML objects, tables, and forms. Then we will analyze the master document ( 3.9 ) to find out what data it needs to store and what is the best XML representation for this data. The last section ( 3.10 ) presents complete summary examples of a page document, a master document, and a Schematron schema to validate them.

 
  
Amazon


XSLT 2.0 Web Development
ASP.Net 2.0 Cookbook (Cookbooks (OReilly))
ISBN: 0596100647
EAN: 2147483647
Year: 2006
Pages: 90

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net