This is a practical book describing the entire process of planning, implementing, and maintaining a Web site as an XML-based information system. It covers all stages of an XML Web site project, including: -developing a domain-specific schema, -preparing and validating source documents (both authoring in XML and converting from other formats are covered), -setting up XSLT transformations for automatic generation of HTML, graphics, and other components of the site, -testing and maintenance of the system. Ideal for working Web developers new to XML but eager to learn and leverage its benefits. Web developers understand the power of XML but often are hesitant to deploy it for fear of a steep learning curve. Kirsanov simplifies XML and XSLT and boils it down to just those elements they need to become immediately effective. The main technologies covered in the book are: XML, XSLT 2.0 and XPath 2.0, Schematron, and Cocoon. The book uses many examples of code and markup; also, a full-scale sample site is described throughout the book, with complete listings for page sources, stylesheet, and schema.
1. XML and the Web.
Content, presentation, structure. The two faces of XML. Components of an XML web site. Setting up an XML web site. XML and dynamic sites.
The big picture. Practical schematization. The art of source definition.
Page documents: top-level structures. Headings. Paragraphs. Text markup. Links. Images and objects. Tables. Forms. Master document. Summary examples.
XSLT history. A Gentle Introduction into 2.0. Taming a functional language. XSLT extensions. Overview of an XSLT stylesheet.
Schematron validation setup. Stylesheet: first steps. High-level structures. Low-level structures. Dealing with non-XML objects. Batch processing. Summary examples.
Authoring XML. Converting other formats into XML. XML utilities. XSLT tools. Build tools.
XSLT processor as servlet. Apache Cocoon.