PEAR logo

HTML_CSS : The Definitive Guide

HTML_CSS Manual

First Edition

Edited by

Laurent Laville

This work is licensed under the Creative Commons Attribution License. To view a copy of this license, visit http://creativecommons.org/licenses/by/3.0/.

Revision History
Revision 1.5.0 January 15, 2008
  • API 1.5.0 allow now to parse and handle AT-Rules
  • If you run HTML_CSS under PHP5 you have ability to check data source before to parse with help of PEAR::Services_W3C_CSSValidator package.
Revision 1.4.0 December 14, 2007
  • API 1.4.0 allow now a setter/getter PHP5 facility compatible (magic function __set, __get) for read/write CSS options. See Reference Guide part, API - Application Programming Interface chapter.
  • Error handler allow now to use PEAR_ERROR_CALLBACK (local to HTML_CSS) to customize action when an error/exception is raised. No more need to use global PEAR::setErrorHandling. See Reference Guide part, Error Handler chapter, controlling error generation section.
  • Added new section, about What's New in version ?
Revision 1.3.0 October 22, 2007
  • Split API note section with related since data, display now release number and date.
  • Added two new functions getContentDisposition() and setContentDisposition() pages on API Output reference.
Revision 1.2.0 June 12, 2007
  • License changed from PHP 3.01 to New BSD
  • Manual license Creative Commons upgrade from version 2.0 to 3.0
Revision 1.1.3 February 18, 2007
  • Fixed typo error on "oneline" attribute used with class constructor. API chapter was reorganized.
  • Added SearchFor (grep) usage examples into appendix
Revision 1.1.0 January 1, 2007
  • Added new feature (API function getStyle), for help to find if a class selector or property is already defined or not
  • Added appendix with examples
  • Fixed minor typo errors
Revision 1.0.1 December 21, 2006
  • PHP sources code are now all highlighted to improve readability
  • Fixed path on all API pages reference for function synopsis info (missing HTML/)
  • Fixed minor typo errors
Revision 1.0.0 June 21, 2006
The first edition of this Guide is now completed. It cover version 1.0.0 (stable) of HTML_CSS.

Table of Contents

Preface
Organization of This Book
Pre-requisites
I. Introduction
1. About HTML_CSS
2. What's New in version ?
3. FAQ - Frequently Asked Questions
II. Getting Started
4. Overview
5. Grouping selectors
6. Parsing data sources
7. Output
8. Searching for selectors and properties
III. Reference Guide
9. API - Application Programming Interface
10. Error Handler
IV. Appendixes
11. Examples

List of Figures

4.1. Rule structure

List of Tables

10.1. Error Handler configuration parameters
10.2. Display driver configuration parameters
10.3. Log driver configuration parameters

List of Examples

11.1. Simple selector definitions
11.2. Combine selectors properties
11.3. Simple string parsing
11.4. Multiple data sources parsing
11.5. Searching for selectors and properties
HTML_CSS : The Definitive Guide v 1.5.0 : January 15, 2008