cvs: pear /HTML_CSS/docs/TDG book.css ch01.html ch01s02.html ch01s03.html ch02.html ch03.html ch03s02.html ch04.html ch04s02.html ch04s03.html
ch05.html ch05s02.html ch05s03.html ch05s04.html ch05s05.html ch06.html ch06s02.html ch06s03.html ch06s04.html ch06s05.html ch06s06.html ch07.html
ch07s02.html ch07s03.html ch08.html ch08s02.html ch08s03.html ch08s04.html ch08s05.html index.html pr01.html pr01s02.html pt01.html pt02.html
pt03.html re01.html re02.html re03.html re04.html re05.html re06.html re07.html re08.html re09.html re10.html re11.html re12.html re13.html re14.html
re15.html re16.html re17.html re18.html re19.html re20.html re21.html re22.html re23.html
| From: | Laurent Laville | Date: | Sat, 30 Dec 2006 12:53:08 +0000 |
| Subject: | cvs: pear /HTML_CSS/docs/TDG book.css ch01.html ch01s02.html ch01s03.html ch02.html ch03.html ch03s02.html ch04.html ch04s02.html ch04s03.html ch05.html ch05s02.html ch05s03.html ch05s04.html ch05s05.html ch06.html ch06s02.html ch06s03.html ch06s04.html ch06s05.html ch06s06.html ch07.html ch07s02.html ch07s03.html ch08.html ch08s02.html ch08s03.html ch08s04.html ch08s05.html index.html pr01.html pr01s02.html pt01.html pt02.html pt03.html re01.html re02.html re03.html re04.html re05.html re06.html re07.html re08.html re09.html re10.html re11.html re12.html re13.html re14.html re15.html re16.html re17.html re18.html re19.html re20.html re21.html re22.html re23.html |
||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-43894@lists.php.net to get a copy of this message | ||
farell Sat Dec 30 12:53:08 2006 UTC
Modified files:
/pear/HTML_CSS/docs/TDG book.css ch01.html ch01s02.html
ch01s03.html ch02.html ch03.html
ch03s02.html ch04.html ch04s02.html
ch04s03.html ch05.html ch05s02.html
ch05s03.html ch05s04.html ch05s05.html
ch06.html ch06s02.html ch06s03.html
ch06s04.html ch06s05.html ch06s06.html
ch07.html ch07s02.html ch07s03.html
ch08.html ch08s02.html ch08s03.html
ch08s04.html ch08s05.html index.html
pr01.html pr01s02.html pt01.html pt02.html
pt03.html re01.html re02.html re03.html
re04.html re05.html re06.html re07.html
re08.html re09.html re10.html re11.html
re12.html re13.html re14.html re15.html
re16.html re17.html re18.html re19.html
re20.html re21.html re22.html re23.html
Log:
new version 1.1.0 of User Guide improved with TIDY and GESHI
http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/book.css?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/book.css diff -u pear/HTML_CSS/docs/TDG/book.css:1.2 pear/HTML_CSS/docs/TDG/book.css:1.3 --- pear/HTML_CSS/docs/TDG/book.css:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/book.css Sat Dec 30 12:53:07 2006 @@ -5,7 +5,7 @@ =================================================================== =========================================================== - $Id: book.css,v 1.2 2006/12/21 19:47:03 farell Exp $ + $Id: book.css,v 1.3 2006/12/30 12:53:07 farell Exp $ author - Laurent Laville <pear@laurent-laville.org> aka farell */ @@ -45,6 +45,7 @@ .php .de1, .php .de2 {font-family: 'Courier New', Courier, monospace; font-weight: normal;} .php .imp {font-weight: bold; color: red;} .php .li1 {background: #eeeeee;} +.php .ln-xtra {background: #e0e0e0;} .php .kw1 {color: #b1b100;} .php .kw2 {color: #000000; font-weight: bold;} .php .kw3 {color: #000066;} @@ -97,6 +98,10 @@ .css .re1 {color: #6666ff;} .css .re2 {color: #3333ff;} +span.term { + color: navy; +} + code.methodname { background-color: #cfc; } @@ -110,6 +115,7 @@ padding: 0.9em; } pre.programlisting { + background-color: #EEE; padding: 0.9em; } div.table table { @@ -122,6 +128,7 @@ div.note, div.tip, div.warning, div.caution, div.important { background-color: lightyellow; border: 2px solid silver; + margin: 5px 0; } div.note td, div.tip td, div.warning td, div.caution td, div.important td { font-size: 0.9em; @@ -217,3 +224,12 @@ font-size: 12px; } +/* callout list */ +div.calloutlist td p, div.calloutlist div.orderedlist, div.calloutlist span.term { + font-size: 12px; +} + +div.variablelist div.itemizedlist { + font-size: 12px; +} + http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch01.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch01.html diff -u pear/HTML_CSS/docs/TDG/ch01.html:1.2 pear/HTML_CSS/docs/TDG/ch01.html:1.3 --- pear/HTML_CSS/docs/TDG/ch01.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch01.html Sat Dec 30 12:53:07 2006 @@ -116,7 +116,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch01s02.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch01s02.html diff -u pear/HTML_CSS/docs/TDG/ch01s02.html:1.2 pear/HTML_CSS/docs/TDG/ch01s02.html:1.3 --- pear/HTML_CSS/docs/TDG/ch01s02.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch01s02.html Sat Dec 30 12:53:07 2006 @@ -77,7 +77,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch01s03.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch01s03.html diff -u pear/HTML_CSS/docs/TDG/ch01s03.html:1.2 pear/HTML_CSS/docs/TDG/ch01s03.html:1.3 --- pear/HTML_CSS/docs/TDG/ch01s03.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch01s03.html Sat Dec 30 12:53:07 2006 @@ -122,7 +122,7 @@ </div> <div class="itemizedlist"> <ul type="disc"> - <li>Webserver IIS or Apache (recommanded 1.3.x). + <li>Webserver IIS or Apache </li> <li> <a class="external" href="http://www.php.net/" title= @@ -131,14 +131,14 @@ </li> <li> <a class="external" href="http://pear.php.net/" title= - "http://pear.php.net/">PEAR</a> 1.0 or newer (recommended: 1.4.3 - or better). + "http://pear.php.net/">PEAR</a> 1.4.3 or newer (since version + 1.0.1). </li> <li> <a class="external" href= "http://pear.php.net/package/HTML_Common" title= "http://pear.php.net/package/HTML_Common">PEAR::HTML_Common</a> - 1.2.1 or newer. + 1.2 or newer. </li> </ul> </div> @@ -150,7 +150,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch02.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch02.html diff -u pear/HTML_CSS/docs/TDG/ch02.html:1.2 pear/HTML_CSS/docs/TDG/ch02.html:1.3 --- pear/HTML_CSS/docs/TDG/ch02.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch02.html Sat Dec 30 12:53:07 2006 @@ -1,4 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> @@ -21,6 +23,7 @@ :link { color: #0000FF } :visited { color: #840084 } :active { color: #0000FF } + div.c2 {font-family: monospace;} col.c1 {text-align: left} /*]]>*/ </style> @@ -67,35 +70,40 @@ <div class="qandaset"> <dl> <dt> - 2.1. <a href="ch02.html#id4728147">General questions</a> + 2.1. <a href="ch02.html#id4729120">General questions</a> </dt> <dd> <dl> <dt> - 2.1.1. <a href="ch02.html#id4728152">What does it cost ?</a> + 2.1.1. <a href="ch02.html#id4729124">What does it cost ?</a> </dt> <dt> - 2.1.2. <a href="ch02.html#id4728181">Do you offer support ?</a> + 2.1.2. <a href="ch02.html#id4729153">Do you offer support ?</a> </dt> <dt> - 2.1.3. <a href="ch02.html#id4728202">I found a bug, what shall + 2.1.3. <a href="ch02.html#id4729170">I found a bug, what shall i do ?</a> </dt> <dt> - 2.1.4. <a href="ch02.html#id4728227">What is CSS ?</a> + 2.1.4. <a href="ch02.html#id4729195">What is CSS ?</a> </dt> <dt> - 2.1.5. <a href="ch02.html#id4728284">What is PEAR ?</a> + 2.1.5. <a href="ch02.html#id4729248">What is PEAR ?</a> </dt> </dl> </dd> <dt> - 2.2. <a href="ch02.html#id4730921">How to</a> + 2.2. <a href="ch02.html#id4728640">How to</a> </dt> <dd> <dl> <dt> - 2.2.1. <a href="ch02.html#id4730926">May i ... ?</a> + 2.2.1. <a href="ch02.html#id4728644">I want to use HTML_CSS + without PEAR. Is it possible ?</a> + </dt> + <dt> + 2.2.2. <a href="ch02.html#id4728717">I want to know property + value of a selector, but it can not exist</a> </dt> </dl> </dd> @@ -105,9 +113,8 @@ <tbody> <tr class="qandadiv"> <td align="left" valign="top" colspan="2"> - <a name="id4728147" id="id4728147"></a> <h3 class="title"> - <a name="id4728147" id="id4728147"></a>2.1. General questions + <a name="id4729120" id="id4729120"></a>2.1. General questions </h3> </td> </tr> @@ -115,30 +122,30 @@ <td align="left" valign="top" colspan="2"> <dl> <dt> - 2.1.1. <a href="ch02.html#id4728152">What does it cost + 2.1.1. <a href="ch02.html#id4729124">What does it cost ?</a> </dt> <dt> - 2.1.2. <a href="ch02.html#id4728181">Do you offer support + 2.1.2. <a href="ch02.html#id4729153">Do you offer support ?</a> </dt> <dt> - 2.1.3. <a href="ch02.html#id4728202">I found a bug, what + 2.1.3. <a href="ch02.html#id4729170">I found a bug, what shall i do ?</a> </dt> <dt> - 2.1.4. <a href="ch02.html#id4728227">What is CSS ?</a> + 2.1.4. <a href="ch02.html#id4729195">What is CSS ?</a> </dt> <dt> - 2.1.5. <a href="ch02.html#id4728284">What is PEAR ?</a> + 2.1.5. <a href="ch02.html#id4729248">What is PEAR ?</a> </dt> </dl> </td> </tr> <tr class="question"> <td align="left" valign="top"> - <a name="id4728152" id="id4728152"></a><a name="id4728154" id= - "id4728154"></a><b>2.1.1.</b> + <a name="id4729124" id="id4729124"></a><a name="id4729127" id= + "id4729127"></a><b>2.1.1.</b> </td> <td align="left" valign="top"> <p> @@ -162,8 +169,8 @@ </tr> <tr class="question"> <td align="left" valign="top"> - <a name="id4728181" id="id4728181"></a><a name="id4728183" id= - "id4728183"></a><b>2.1.2.</b> + <a name="id4729153" id="id4729153"></a><a name="id4729156" id= + "id4729156"></a><b>2.1.2.</b> </td> <td align="left" valign="top"> <p> @@ -184,8 +191,8 @@ </tr> <tr class="question"> <td align="left" valign="top"> - <a name="id4728202" id="id4728202"></a><a name="id4728204" id= - "id4728204"></a><b>2.1.3.</b> + <a name="id4729170" id="id4729170"></a><a name="id4729172" id= + "id4729172"></a><b>2.1.3.</b> </td> <td align="left" valign="top"> <p> @@ -205,8 +212,8 @@ </tr> <tr class="question"> <td align="left" valign="top"> - <a name="id4728227" id="id4728227"></a><a name="id4728230" id= - "id4728230"></a><b>2.1.4.</b> + <a name="id4729195" id="id4729195"></a><a name="id4729197" id= + "id4729197"></a><b>2.1.4.</b> </td> <td align="left" valign="top"> <p> @@ -238,8 +245,8 @@ </tr> <tr class="question"> <td align="left" valign="top"> - <a name="id4728284" id="id4728284"></a><a name="id4728286" id= - "id4728286"></a><b>2.1.5.</b> + <a name="id4729248" id="id4729248"></a><a name="id4728766" id= + "id4728766"></a><b>2.1.5.</b> </td> <td align="left" valign="top"> <p> @@ -269,9 +276,8 @@ </tr> <tr class="qandadiv"> <td align="left" valign="top" colspan="2"> - <a name="id4730921" id="id4730921"></a> <h3 class="title"> - <a name="id4730921" id="id4730921"></a>2.2. How to + <a name="id4728640" id="id4728640"></a>2.2. How to </h3> </td> </tr> @@ -279,19 +285,24 @@ <td align="left" valign="top" colspan="2"> <dl> <dt> - 2.2.1. <a href="ch02.html#id4730926">May i ... ?</a> + 2.2.1. <a href="ch02.html#id4728644">I want to use HTML_CSS + without PEAR. Is it possible ?</a> + </dt> + <dt> + 2.2.2. <a href="ch02.html#id4728717">I want to know + property value of a selector, but it can not exist</a> </dt> </dl> </td> </tr> <tr class="question"> <td align="left" valign="top"> - <a name="id4730926" id="id4730926"></a><a name="id4730928" id= - "id4730928"></a><b>2.2.1.</b> + <a name="id4728644" id="id4728644"></a><a name="id4728646" id= + "id4728646"></a><b>2.2.1.</b> </td> <td align="left" valign="top"> <p> - May i ... ? + I want to use HTML_CSS without PEAR. Is it possible ? </p> </td> </tr> @@ -299,10 +310,292 @@ <td align="left" valign="top"></td> <td align="left" valign="top"> <p> - Yes ... + Yes it is. First, you need to download package <a class= + "external" href="http://pear.php.net/package/HTML_Common" + title= + "http://pear.php.net/package/HTML_Common">PEAR::HTML_Common</a> + version 1.2 or greater. + </p> + <p> + Extract content (<code class="filename">common.php</code> + file) in same directory <code class="filename">HTML/</code> + as <code class="filename">CSS.php</code> file. + </p> + <p> + Last, you should create your own error handler, or disable + it. See chapter <a href="ch09.html" title= + "Chapter 9. Error Handler">Error Handler</a> for + details. </p> </td> </tr> + <tr class="question"> + <td align="left" valign="top"> + <a name="id4728717" id="id4728717"></a><a name="id4728719" id= + "id4728719"></a><b>2.2.2.</b> + </td> + <td align="left" valign="top"> + <p> + I want to know property value of a selector, but it can not + exist + </p> + </td> + </tr> + <tr class="answer"> + <td align="left" valign="top"></td> + <td align="left" valign="top"> + <p> + With previous release than 1.1.0 it was not possible because + <code class="methodname">HTML_CSS::getStyle()</code> require + at least an existing property, or it will return <code class= + "constant">HTML_CSS_ERROR_NO_ELEMENT_PROPERTY</code>. + </p> + <p> + With new function <code class= + "methodname">HTML_CSS::grepStyle()</code> of version 1.1.0, + it's now possible. + </p> + <div class="php c2"> + <ol> + <li class="li1"> + <div class="de1"> + <span class="kw2"><?php</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">require_once</span> <span class= + "st0">'HTML/CSS.php'</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + + </div> + </li> + <li class="li1 ln-xtra"> + <div class="de1"> + <span class="kw2">function</span> + myErrorHandler<span class="br0">(</span><span class= + "br0">)</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="br0">{</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">return</span> + PEAR_ERROR_PRINT; <span class="co1">// always + print all error messages</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="br0">}</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + + </div> + </li> + <li class="li1 ln-xtra"> + <div class="de1"> + <span class="re0">$styles</span> = <span class= + "st0">'</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="st0">h1, h2, h3, h4 { padding: 1em; + }</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="st0">.highlight p, .highlight ul { + margin-left: .5em; }</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="st0">#main p, #main ul { padding-top: 1em; + }</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="st0">'</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + + </div> + </li> + <li class="li1 ln-xtra"> + <div class="de1"> + <span class="re0">$prefs</span> = <span class= + "kw3">array</span><span class="br0">(</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="st0">'push_callback'</span> + => <span class="st0">'myErrorHandler'</span>, + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="br0">)</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="re0">$attribs</span> = <span class= + "kw2">null</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + + </div> + </li> + <li class="li1 ln-xtra"> + <div class="de1"> + <span class="re0">$css</span> = <span class= + "kw2">new</span> HTML_CSS<span class= + "br0">(</span><span class="re0">$attribs</span>, + <span class="re0">$prefs</span><span class= + "br0">)</span>; + </div> + </li> + <li class="li1 ln-xtra"> + <div class="de1"> + <span class="re0">$css</span>-><span class= + "me1">parseString</span><span class= + "br0">(</span><span class= + "re0">$styles</span><span class="br0">)</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + + </div> + </li> + <li class="li1 ln-xtra"> + <div class="de1"> + <span class="re0">$css</span>-><span class= + "me1">getStyle</span><span class= + "br0">(</span><span class="st0">'.highlight p'</span>, + <span class="st0">'color'</span><span class= + "br0">)</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + + </div> + </li> + <li class="li1 ln-xtra"> + <div class="de1"> + <span class="re0">$styles</span> = <span class= + "re0">$css</span>-><span class= + "me1">grepStyle</span><span class= + "br0">(</span><span class="st0">'/highlight/'</span>, + <span class="st0">'/^color$/'</span><span class= + "br0">)</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw3">echo</span> <span class= + "st0">'<pre>'</span>; <span class= + "kw3">var_dump</span><span class= + "br0">(</span><span class= + "re0">$styles</span><span class="br0">)</span>; + <span class="kw3">echo</span> <span class= + "st0">'</pre>'</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw2">?></span> + </div> + </li> + </ol> + </div> + <div class="variablelist"> + <dl> + <dt> + <span class="term">Lines 4-7, 15-17, 20 :</span> + </dt> + <dd> + <p> + Custom error handler is defined to allow script to + continue (print message), when <code class= + "methodname">HTML_CSS::getStyle()</code> will raise + error at line 23. + </p> + </dd> + <dt> + <span class="term">Lines 9-13, 21 :</span> + </dt> + <dd> + <p> + Stylesheet used is : + </p> + <div class="css c2"> + <ol> + <li class="li1"> + <div class="de1"> + h1, h2, h3, h4 <span class="br0">{</span> + <span class="kw1">padding</span>: 1em; + <span class="br0">}</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="re1">.highlight</span> p, + <span class="re1">.highlight</span> ul + <span class="br0">{</span> <span class= + "kw1">margin-left</span>: .5em; <span class= + "br0">}</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + #main p, #main ul <span class="br0">{</span> + <span class="kw1">padding-top</span>: 1em; + <span class="br0">}</span> + </div> + </li> + </ol> + </div> + </dd> + <dt> + <span class="term">Lines 23, 25 :</span> + </dt> + <dd> + <p> + While <code class= + "methodname">HTML_CSS::getStyle()</code> will raise + error (printed by custom error handler), line 25 will + return an empty array with no error raised. + </p> + <p> + Reason : <code class="literal">color</code> property + does not exist for <code class="literal">.highlight + p</code> class selector. + </p> + </dd> + </dl> + </div> + </td> + </tr> </tbody> </table> </div> @@ -313,7 +606,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -345,4 +638,4 @@ </table> </div> </body> -</html> \ No newline at end of file +</html> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch03.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch03.html diff -u pear/HTML_CSS/docs/TDG/ch03.html:1.2 pear/HTML_CSS/docs/TDG/ch03.html:1.3 --- pear/HTML_CSS/docs/TDG/ch03.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch03.html Sat Dec 30 12:53:07 2006 @@ -84,27 +84,27 @@ <dd> <dl> <dt> - <span class="sect2"><a href="ch03s02.html#id4728884">What is a + <span class="sect2"><a href="ch03s02.html#id4731327">What is a rule or "rule set" ?</a></span> </dt> <dt> - <span class="sect2"><a href="ch03s02.html#id4728680">Rule + <span class="sect2"><a href="ch03s02.html#id4731343">Rule structure</a></span> </dt> <dt> <span class="sect2"><a href= - "ch03s02.html#id4776200">Declaration block</a></span> + "ch03s02.html#id4777063">Declaration block</a></span> </dt> <dt> - <span class="sect2"><a href="ch03s02.html#id4776248">Grouping + <span class="sect2"><a href="ch03s02.html#id4777111">Grouping declarations</a></span> </dt> <dt> - <span class="sect2"><a href="ch03s02.html#id4776314">Grouping + <span class="sect2"><a href="ch03s02.html#id4777177">Grouping selectors</a></span> </dt> <dt> - <span class="sect2"><a href="ch03s02.html#id4776416">CSS + <span class="sect2"><a href="ch03s02.html#id4777279">CSS comments</a></span> </dt> </dl> @@ -143,7 +143,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch03s02.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch03s02.html diff -u pear/HTML_CSS/docs/TDG/ch03s02.html:1.2 pear/HTML_CSS/docs/TDG/ch03s02.html:1.3 --- pear/HTML_CSS/docs/TDG/ch03s02.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch03s02.html Sat Dec 30 12:53:07 2006 @@ -72,27 +72,27 @@ <div class="toc"> <dl> <dt> - <span class="sect2"><a href="ch03s02.html#id4728884">What is a rule + <span class="sect2"><a href="ch03s02.html#id4731327">What is a rule or "rule set" ?</a></span> </dt> <dt> - <span class="sect2"><a href="ch03s02.html#id4728680">Rule + <span class="sect2"><a href="ch03s02.html#id4731343">Rule structure</a></span> </dt> <dt> - <span class="sect2"><a href="ch03s02.html#id4776200">Declaration + <span class="sect2"><a href="ch03s02.html#id4777063">Declaration block</a></span> </dt> <dt> - <span class="sect2"><a href="ch03s02.html#id4776248">Grouping + <span class="sect2"><a href="ch03s02.html#id4777111">Grouping declarations</a></span> </dt> <dt> - <span class="sect2"><a href="ch03s02.html#id4776314">Grouping + <span class="sect2"><a href="ch03s02.html#id4777177">Grouping selectors</a></span> </dt> <dt> - <span class="sect2"><a href="ch03s02.html#id4776416">CSS + <span class="sect2"><a href="ch03s02.html#id4777279">CSS comments</a></span> </dt> </dl> @@ -100,7 +100,7 @@ <div class="sect2" lang="en" xml:lang="en"> <div class="titlepage"> <h3 class="title"> - <a name="id4728884" id="id4728884"></a>What is a rule or "rule set" + <a name="id4731327" id="id4731327"></a>What is a rule or "rule set" ? </h3> </div> @@ -113,11 +113,11 @@ <div class="sect2" lang="en" xml:lang="en"> <div class="titlepage"> <h3 class="title"> - <a name="id4728680" id="id4728680"></a>Rule structure + <a name="id4731343" id="id4731343"></a>Rule structure </h3> </div> <div class="figure"> - <a name="id4728688" id="id4728688"></a> + <a name="id4731351" id="id4731351"></a> <p class="title c2"> Figure 3.1. Rule structure </p> @@ -129,7 +129,7 @@ <div class="sect2" lang="en" xml:lang="en"> <div class="titlepage"> <h3 class="title"> - <a name="id4776200" id="id4776200"></a>Declaration block + <a name="id4777063" id="id4777063"></a>Declaration block </h3> </div> <p> @@ -209,7 +209,7 @@ <div class="sect2" lang="en" xml:lang="en"> <div class="titlepage"> <h3 class="title"> - <a name="id4776248" id="id4776248"></a>Grouping declarations + <a name="id4777111" id="id4777111"></a>Grouping declarations </h3> </div> <p> @@ -327,7 +327,7 @@ <div class="sect2" lang="en" xml:lang="en"> <div class="titlepage"> <h3 class="title"> - <a name="id4776314" id="id4776314"></a>Grouping selectors + <a name="id4777177" id="id4777177"></a>Grouping selectors </h3> </div> <p> @@ -499,7 +499,7 @@ <div class="sect2" lang="en" xml:lang="en"> <div class="titlepage"> <h3 class="title"> - <a name="id4776416" id="id4776416"></a>CSS comments + <a name="id4777279" id="id4777279"></a>CSS comments </h3> </div> <p> @@ -534,8 +534,8 @@ Comment here */</span> </div> </li> - <li class="li2"> - <div class="de2"> + <li class="li1"> + <div class="de1"> <span class="kw1">padding</span>: 2em; </div> </li> @@ -560,8 +560,8 @@ </div> </li> - <li class="li2"> - <div class="de2"> + <li class="li1"> + <div class="de1"> <span class="coMULTI">/*</span> </div> </li> @@ -585,7 +585,7 @@ <div class="warning c4"> <table border="0" summary="Warning"> <tr> - <td rowspan="2" align="center" valign="top" width="48px"> + <td rowspan="2" align="center" valign="top" width="48"> <img alt="[Warning]" src="img/admons/warning.png" /> </td> <th align="left"> @@ -700,8 +700,8 @@ <span class="coMULTI">*/</span> </div> </li> - <li class="li2"> - <div class="de2"> + <li class="li1"> + <div class="de1"> </div> </li> @@ -726,8 +726,8 @@ "kw1">blue</span>; </div> </li> - <li class="li2"> - <div class="de2"> + <li class="li1"> + <div class="de1"> <span class="br0">}</span> </div> </li> @@ -742,7 +742,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch04.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch04.html diff -u pear/HTML_CSS/docs/TDG/ch04.html:1.2 pear/HTML_CSS/docs/TDG/ch04.html:1.3 --- pear/HTML_CSS/docs/TDG/ch04.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch04.html Sat Dec 30 12:53:07 2006 @@ -82,11 +82,11 @@ <dd> <dl> <dt> - <span class="sect2"><a href="ch04s02.html#id4777000">Identify + <span class="sect2"><a href="ch04s02.html#id4777862">Identify the group yourself</a></span> </dt> <dt> - <span class="sect2"><a href="ch04s02.html#id4777025">Let + <span class="sect2"><a href="ch04s02.html#id4777888">Let HTML_CSS do it itself</a></span> </dt> </dl> @@ -127,7 +127,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch04s02.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch04s02.html diff -u pear/HTML_CSS/docs/TDG/ch04s02.html:1.2 pear/HTML_CSS/docs/TDG/ch04s02.html:1.3 --- pear/HTML_CSS/docs/TDG/ch04s02.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch04s02.html Sat Dec 30 12:53:07 2006 @@ -72,11 +72,11 @@ <div class="toc"> <dl> <dt> - <span class="sect2"><a href="ch04s02.html#id4777000">Identify the + <span class="sect2"><a href="ch04s02.html#id4777862">Identify the group yourself</a></span> </dt> <dt> - <span class="sect2"><a href="ch04s02.html#id4777025">Let HTML_CSS + <span class="sect2"><a href="ch04s02.html#id4777888">Let HTML_CSS do it itself</a></span> </dt> </dl> @@ -104,7 +104,7 @@ <div class="sect2" lang="en" xml:lang="en"> <div class="titlepage"> <h3 class="title"> - <a name="id4777000" id="id4777000"></a>Identify the group yourself + <a name="id4777862" id="id4777862"></a>Identify the group yourself </h3> </div> <p> @@ -190,13 +190,13 @@ <div class="sect2" lang="en" xml:lang="en"> <div class="titlepage"> <h3 class="title"> - <a name="id4777025" id="id4777025"></a>Let HTML_CSS do it itself + <a name="id4777888" id="id4777888"></a>Let HTML_CSS do it itself </h3> </div> <div class="note c3"> <table border="0" summary="Note"> <tr> - <td rowspan="2" align="center" valign="top" width="48px"> + <td rowspan="2" align="center" valign="top" width="48"> <img alt="[Note]" src="img/admons/note.png" /> </td> <th align="left"> @@ -292,7 +292,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch04s03.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch04s03.html diff -u pear/HTML_CSS/docs/TDG/ch04s03.html:1.2 pear/HTML_CSS/docs/TDG/ch04s03.html:1.3 --- pear/HTML_CSS/docs/TDG/ch04s03.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch04s03.html Sat Dec 30 12:53:07 2006 @@ -221,7 +221,7 @@ <div class="note c3"> <table border="0" summary="Note"> <tr> - <td rowspan="2" align="center" valign="top" width="48px"> + <td rowspan="2" align="center" valign="top" width="48"> <img alt="[Note]" src="img/admons/note.png" /> </td> <th align="left"> @@ -243,7 +243,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch05.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch05.html diff -u pear/HTML_CSS/docs/TDG/ch05.html:1.2 pear/HTML_CSS/docs/TDG/ch05.html:1.3 --- pear/HTML_CSS/docs/TDG/ch05.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch05.html Sat Dec 30 12:53:07 2006 @@ -117,7 +117,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch05s02.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch05s02.html diff -u pear/HTML_CSS/docs/TDG/ch05s02.html:1.2 pear/HTML_CSS/docs/TDG/ch05s02.html:1.3 --- pear/HTML_CSS/docs/TDG/ch05s02.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch05s02.html Sat Dec 30 12:53:07 2006 @@ -98,8 +98,8 @@ <span class="kw1">border</span>: 0px; </div> </li> - <li class="li2"> - <div class="de2"> + <li class="li1"> + <div class="de1"> <span class="br0">}</span> </div> </li> @@ -245,7 +245,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch05s03.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch05s03.html diff -u pear/HTML_CSS/docs/TDG/ch05s03.html:1.2 pear/HTML_CSS/docs/TDG/ch05s03.html:1.3 --- pear/HTML_CSS/docs/TDG/ch05s03.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch05s03.html Sat Dec 30 12:53:07 2006 @@ -125,7 +125,7 @@ <div class="tip c3"> <table border="0" summary="Tip"> <tr> - <td rowspan="2" align="center" valign="top" width="48px"> + <td rowspan="2" align="center" valign="top" width="48"> <img alt="[Tip]" src="img/admons/tip.png" /> </td> <th align="left"> @@ -136,9 +136,29 @@ <td align="left" valign="top"> If there are duplicate definitions into file contents, you should parse file with call : - <p> - $css->parseFile('styles.css', true); - </p>We will see next why we may find such duplicate definitions. + <div class="php c2"> + <ol> + <li class="li1"> + <div class="de1"> + <span class="kw2"><?php</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="re0">$css</span>-><span class= + "me1">parseFile</span><span class= + "br0">(</span><span class="st0">'styles.css'</span>, + <span class="kw2">true</span><span class="br0">)</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw2">?></span> + </div> + </li> + </ol> + </div>We will see next why we may find such duplicate + definitions. </td> </tr> </table> @@ -150,7 +170,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch05s04.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch05s04.html diff -u pear/HTML_CSS/docs/TDG/ch05s04.html:1.2 pear/HTML_CSS/docs/TDG/ch05s04.html:1.3 --- pear/HTML_CSS/docs/TDG/ch05s04.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch05s04.html Sat Dec 30 12:53:07 2006 @@ -198,7 +198,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch05s05.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch05s05.html diff -u pear/HTML_CSS/docs/TDG/ch05s05.html:1.2 pear/HTML_CSS/docs/TDG/ch05s05.html:1.3 --- pear/HTML_CSS/docs/TDG/ch05s05.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch05s05.html Sat Dec 30 12:53:07 2006 @@ -102,8 +102,8 @@ <span class="kw1">font-size</span>: 5mm; </div> </li> - <li class="li2"> - <div class="de2"> + <li class="li1"> + <div class="de1"> <span class="kw1">text-align</span>: <span class= "kw2">center</span>; </div> @@ -130,8 +130,8 @@ #<span class="nu0">000</span>; </div> </li> - <li class="li2"> - <div class="de2"> + <li class="li1"> + <div class="de1"> border-left<span class="re2">:1px</span> solid #<span class="nu0">000</span>; </div> @@ -159,8 +159,8 @@ <span class="kw1">height</span>: 99px; </div> </li> - <li class="li2"> - <div class="de2"> + <li class="li1"> + <div class="de1"> <span class="br0">}</span> </div> </li> @@ -486,7 +486,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch06.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch06.html diff -u pear/HTML_CSS/docs/TDG/ch06.html:1.2 pear/HTML_CSS/docs/TDG/ch06.html:1.3 --- pear/HTML_CSS/docs/TDG/ch06.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch06.html Sat Dec 30 12:53:07 2006 @@ -119,7 +119,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch06s02.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch06s02.html diff -u pear/HTML_CSS/docs/TDG/ch06s02.html:1.2 pear/HTML_CSS/docs/TDG/ch06s02.html:1.3 --- pear/HTML_CSS/docs/TDG/ch06s02.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch06s02.html Sat Dec 30 12:53:07 2006 @@ -96,8 +96,8 @@ <span class="kw1">border</span>: 0px; </div> </li> - <li class="li2"> - <div class="de2"> + <li class="li1"> + <div class="de1"> <span class="br0">}</span> </div> </li> @@ -121,8 +121,8 @@ <span class="br0">}</span> </div> </li> - <li class="li2"> - <div class="de2"> + <li class="li1"> + <div class="de1"> </div> </li> @@ -287,7 +287,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch06s03.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch06s03.html diff -u pear/HTML_CSS/docs/TDG/ch06s03.html:1.2 pear/HTML_CSS/docs/TDG/ch06s03.html:1.3 --- pear/HTML_CSS/docs/TDG/ch06s03.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch06s03.html Sat Dec 30 12:53:07 2006 @@ -74,7 +74,7 @@ <div class="warning c2"> <table border="0" summary="Warning"> <tr> - <td rowspan="2" align="center" valign="top" width="48px"> + <td rowspan="2" align="center" valign="top" width="48"> <img alt="[Warning]" src="img/admons/warning.png" /> </td> <th align="left"> @@ -178,7 +178,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch06s04.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch06s04.html diff -u pear/HTML_CSS/docs/TDG/ch06s04.html:1.2 pear/HTML_CSS/docs/TDG/ch06s04.html:1.3 --- pear/HTML_CSS/docs/TDG/ch06s04.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch06s04.html Sat Dec 30 12:53:07 2006 @@ -74,7 +74,7 @@ <div class="warning c2"> <table border="0" summary="Warning"> <tr> - <td rowspan="2" align="center" valign="top" width="48px"> + <td rowspan="2" align="center" valign="top" width="48"> <img alt="[Warning]" src="img/admons/warning.png" /> </td> <th align="left"> @@ -175,7 +175,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch06s05.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch06s05.html diff -u pear/HTML_CSS/docs/TDG/ch06s05.html:1.2 pear/HTML_CSS/docs/TDG/ch06s05.html:1.3 --- pear/HTML_CSS/docs/TDG/ch06s05.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch06s05.html Sat Dec 30 12:53:07 2006 @@ -183,7 +183,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch06s06.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch06s06.html diff -u pear/HTML_CSS/docs/TDG/ch06s06.html:1.2 pear/HTML_CSS/docs/TDG/ch06s06.html:1.3 --- pear/HTML_CSS/docs/TDG/ch06s06.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch06s06.html Sat Dec 30 12:53:07 2006 @@ -12,8 +12,8 @@ <link rel="start" href="index.html" title="HTML_CSS Manual" /> <link rel="up" href="ch06.html" title="Chapter 6. Output" /> <link rel="prev" href="ch06s05.html" title="To String" /> - <link rel="next" href="pt03.html" title= - "Part III. Reference Guide" /> + <link rel="next" href="ch07.html" title= + "Chapter 7. Searching for selectors and properties " /> <style type="text/css"> /*<![CDATA[*/ body { @@ -51,7 +51,7 @@ Chapter 6. Output </th> <td width="20%" align="right"> - <a accesskey="n" href="pt03.html">Next</a> + <a accesskey="n" href="ch07.html">Next</a> </td> </tr> </table> @@ -107,7 +107,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -122,7 +122,7 @@ <a accesskey="u" href="ch06.html">Up</a> </td> <td width="40%" align="right"> - <a accesskey="n" href="pt03.html">Next</a> + <a accesskey="n" href="ch07.html">Next</a> </td> </tr> <tr> @@ -133,7 +133,7 @@ <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> - Part III. Reference Guide + Chapter 7. Searching for selectors and properties </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch07.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch07.html diff -u pear/HTML_CSS/docs/TDG/ch07.html:1.2 pear/HTML_CSS/docs/TDG/ch07.html:1.3 --- pear/HTML_CSS/docs/TDG/ch07.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch07.html Sat Dec 30 12:53:07 2006 @@ -5,16 +5,16 @@ <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title> - Chapter 7. API - Application Programming Interface + Chapter 7. Searching for selectors and properties </title> <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="pt03.html" title= - "Part III. Reference Guide" /> - <link rel="prev" href="pt03.html" title= - "Part III. Reference Guide" /> - <link rel="next" href="re01.html" title="HTML_CSS::setXhtmlCompliance" /> + <link rel="up" href="pt02.html" title= + "Part II. Getting Started" /> + <link rel="prev" href="ch06s06.html" title="Display" /> + <link rel="next" href="ch07s02.html" title= + "Searching for a group of selectors " /> <style type="text/css"> /*<![CDATA[*/ body { @@ -41,18 +41,18 @@ <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center"> - Chapter 7. API - Application Programming Interface + Chapter 7. Searching for selectors and properties </th> </tr> <tr> <td width="20%" align="left"> - <a accesskey="p" href="pt03.html">Prev</a> + <a accesskey="p" href="ch06s06.html">Prev</a> </td> <th width="60%" align="center"> - Part III. Reference Guide + Part II. Getting Started </th> <td width="20%" align="right"> - <a accesskey="n" href="re01.html">Next</a> + <a accesskey="n" href="ch07s02.html">Next</a> </td> </tr> </table> @@ -64,9 +64,9 @@ <div class="chapter" lang="en" xml:lang="en"> <div class="titlepage"> <h2 class="title"> - <a name="reference.api" id= - "reference.api"></a>Chapter 7. API - Application - Programming Interface + <a name="developers.find" id= + "developers.find"></a>Chapter 7. Searching for selectors + and properties </h2> </div> <div class="toc"> @@ -75,82 +75,32 @@ </p> <dl> <dt> - <span class="sect1"><a href="ch07.html#reference.api.basic">Handle - selector and property values</a></span> + <span class="sect1"><a href="ch07.html#developers.find.purpose">In + brief</a></span> </dt> <dt> - <span class="sect1"><a href="ch07s02.html">Grouping + <span class="sect1"><a href="ch07s02.html">Searching for a group of selectors</a></span> </dt> <dt> - <span class="sect1"><a href="ch07s03.html">Parsing data - sources</a></span> - </dt> - <dt> - <span class="sect1"><a href="ch07s04.html">Output</a></span> + <span class="sect1"><a href="ch07s03.html">Searching for selectors + that set a property</a></span> </dt> </dl> </div> - <p> - With the class constructor, you have ability to set many options : - </p> - <div class="itemizedlist"> - <ul type="disc"> - <li> - <span class="bold"><strong>xhtml</strong></span> option defines - whether element selectors should be automatically lowercased. - </li> - <li> - <span class="bold"><strong>tab</strong></span> option defines the - string used to indent CSS text. See also: <code class= - "methodname">HTML_Common::setTab()</code>. - </li> - <li> - <span class="bold"><strong>filename</strong></span> option allow to - parse an external css file. - </li> - <li> - <span class="bold"><strong>cache</strong></span> option controls - caching of the page. - </li> - <li> - <span class="bold"><strong>online</strong></span> option defines - whether to output all properties on one line. - </li> - <li> - <span class="bold"><strong>groupsfirst</strong></span> option - determines whether to output groups before elements. - </li> - <li> - <span class="bold"><strong>allowduplicates</strong></span> option - allow to have duplicate rules in selector. - </li> - </ul> - </div> <div class="sect1" lang="en" xml:lang="en"> <div class="titlepage"> <h2 class="title c2"> - <a name="reference.api.basic" id="reference.api.basic"></a>Handle - selector and property values + <a name="developers.find.purpose" id= + "developers.find.purpose"></a>In brief </h2> </div> - <div class="toc"> - <dl> - <dt> - <span class="refentrytitle"><a href="re07.html"><code class= - "function">HTML_CSS::getStyle</code></a></span> <span class= - "refpurpose">- Retrieves the value of a CSS property</span> - </dt> - <dt> - <span class="refentrytitle"><a href="re08.html"><code class= - "function">HTML_CSS::setStyle</code></a></span> <span class= - "refpurpose">- Sets or adds a CSS definition</span> - </dt> - </dl> - </div> <p> - Read and write single selector or even descendant selector is made - easy with : + One of features of HTML_CSS that was still missing to version less or + equal than 1.0.1 is ability to detect if a selector (or group of + selectors), and/or a property (or group of properties) was already + defined. This is now possible with method : <code class= + "methodname">HTML_CSS::grepStyle()</code> </p> </div> </div> @@ -160,7 +110,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -169,24 +119,24 @@ <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"> - <a accesskey="p" href="pt03.html">Prev</a> + <a accesskey="p" href="ch06s06.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="pt03.html">Up</a> + <a accesskey="u" href="pt02.html">Up</a> </td> <td width="40%" align="right"> - <a accesskey="n" href="re01.html">Next</a> + <a accesskey="n" href="ch07s02.html">Next</a> </td> </tr> <tr> <td width="40%" align="left" valign="top"> - Part III. Reference Guide + Display </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> - <code class="function">HTML_CSS::setXhtmlCompliance</code> + Searching for a group of selectors </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch07s02.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch07s02.html diff -u pear/HTML_CSS/docs/TDG/ch07s02.html:1.2 pear/HTML_CSS/docs/TDG/ch07s02.html:1.3 --- pear/HTML_CSS/docs/TDG/ch07s02.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch07s02.html Sat Dec 30 12:53:07 2006 @@ -5,15 +5,17 @@ <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title> - Grouping selectors + Searching for a group of selectors </title> <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> <link rel="up" href="ch07.html" title= - "Chapter 7. API - Application Programming Interface" /> - <link rel="prev" href="re08.html" title="HTML_CSS::setStyle" /> - <link rel="next" href="re09.html" title="HTML_CSS::createGroup" /> + "Chapter 7. Searching for selectors and properties " /> + <link rel="prev" href="ch07.html" title= + "Chapter 7. Searching for selectors and properties " /> + <link rel="next" href="ch07s03.html" title= + "Searching for selectors that set a property " /> <style type="text/css"> /*<![CDATA[*/ body { @@ -23,6 +25,7 @@ :link { color: #0000FF } :visited { color: #840084 } :active { color: #0000FF } + div.c2 {font-family: monospace;} h2.c1 {clear: both} /*]]>*/ </style> @@ -39,18 +42,18 @@ <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center"> - Grouping selectors + Searching for a group of selectors </th> </tr> <tr> <td width="20%" align="left"> - <a accesskey="p" href="re08.html">Prev</a> + <a accesskey="p" href="ch07.html">Prev</a> </td> <th width="60%" align="center"> - Chapter 7. API - Application Programming Interface + Chapter 7. Searching for selectors and properties </th> <td width="20%" align="right"> - <a accesskey="n" href="re09.html">Next</a> + <a accesskey="n" href="ch07s03.html">Next</a> </td> </tr> </table> @@ -62,59 +65,353 @@ <div class="sect1" lang="en" xml:lang="en"> <div class="titlepage"> <h2 class="title c1"> - <a name="reference.api.group" id="reference.api.group"></a>Grouping - selectors + <a name="developers.find.selectors" id= + "developers.find.selectors"></a>Searching for a group of selectors </h2> </div> - <div class="toc"> - <dl> - <dt> - <span class="refentrytitle"><a href="re09.html"><code class= - "function">HTML_CSS::createGroup</code></a></span> <span class= - "refpurpose">- Creates a new CSS definition group. Returns an - integer identifying the group.</span> - </dt> - <dt> - <span class="refentrytitle"><a href="re10.html"><code class= - "function">HTML_CSS::unsetGroup</code></a></span> <span class= - "refpurpose">- Sets or adds a CSS definition for a CSS definition - group</span> - </dt> - <dt> - <span class="refentrytitle"><a href="re11.html"><code class= - "function">HTML_CSS::getGroupStyle</code></a></span> <span class= - "refpurpose">- Returns a CSS definition for a CSS definition - group</span> - </dt> - <dt> - <span class="refentrytitle"><a href="re12.html"><code class= - "function">HTML_CSS::setGroupStyle</code></a></span> <span class= - "refpurpose">- Sets or adds a CSS definition for a CSS definition - group</span> - </dt> - <dt> - <span class="refentrytitle"><a href="re13.html"><code class= - "function">HTML_CSS::addGroupSelector</code></a></span> - <span class="refpurpose">- Adds a selector to a CSS definition - group.</span> - </dt> - <dt> - <span class="refentrytitle"><a href="re14.html"><code class= - "function">HTML_CSS::removeGroupSelector</code></a></span> - <span class="refpurpose">- Removes a selector from a group.</span> - </dt> - <dt> - <span class="refentrytitle"><a href="re15.html"><code class= - "function">HTML_CSS::setSameStyle</code></a></span> <span class= - "refpurpose">- Sets or changes the properties of new selectors to - the values of an existing selector</span> - </dt> - </dl> + <p> + Let creates these definitions into <code class= + "filename">progress2.css</code> file : + </p> + <div class="css c2"> + <ol> + <li class="li1"> + <div class="de1"> + #PB1.cellPB1I, #PB1<span class="re1">.cellPB1A</span> + <span class="br0">{</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">width</span>: 15px; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">height</span>: 20px; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">font-family</span>: Courier, Verdana; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">font-size</span>: 8px; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">float</span>: <span class= + "kw1">left</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="br0">}</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + + </div> + </li> + <li class="li1"> + <div class="de1"> + #PB1<span class="re1">.progressBorderPB1</span> <span class= + "br0">{</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">width</span>: 172px; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">height</span>: 24px; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">border-width</span>: 1px; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">border-style</span>: <span class= + "kw2">solid</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">border-color</span>: #<span class= + "nu0">404040</span> #dfdfdf #dfdfdf #<span class= + "nu0">404040</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">background-color</span>: #CCCCCC; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="br0">}</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="re1">.progressPercentLabelpct1PB1</span> + <span class="br0">{</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">width</span>: 50px; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">text-align</span>: <span class= + "kw1">right</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">background-color</span>: <span class= + "kw2">transparent</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">font-size</span>: 11px; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">font-family</span>: Verdana, Tahoma, + Arial; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">font-weight</span>: <span class= + "kw2">normal</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">color</span>: #<span class= + "nu0">000000</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="br0">}</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="re1">.progressTextLabeltxt1PB1</span> <span class= + "br0">{</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">text-align</span>: <span class= + "kw1">left</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">background-color</span>: <span class= + "kw2">transparent</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">font-size</span>: 11px; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">font-family</span>: Verdana, Tahoma, + Arial; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">font-weight</span>: <span class= + "kw2">normal</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">color</span>: #<span class= + "nu0">000000</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="br0">}</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="re1">.cellPB1I</span> <span class="br0">{</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">background-color</span>: #CCCCCC; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="br0">}</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="re1">.cellPB1A</span> <span class="br0">{</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">background-color</span>: #0033FF; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="br0">}</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + + </div> + </li> + <li class="li1"> + <div class="de1"> + body <span class="br0">{</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">background-color</span>: #E0E0E0; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">color</span>: #<span class= + "nu0">000000</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">font-family</span>: Verdana, + Arial; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="br0">}</span> + </div> + </li> + </ol> </div> <p> - The most advanced/complex functions are those which handle group of - selectors + Very easy with such script to find where is declared <code class= + "literal">#PB1</code> class selectors (names like). </p> + <div class="php c2"> + <ol> + <li class="li1"> + <div class="de1"> + <span class="kw2"><?php</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">require_once</span> <span class= + "st0">'HTML/CSS.php'</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="re0">$css</span> = <span class="kw2">new</span> + HTML_CSS<span class="br0">(</span><span class="br0">)</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="re0">$css</span>-><span class= + "me1">parseFile</span><span class="br0">(</span><span class= + "st0">'progress2.css'</span><span class="br0">)</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="co1">// find all selectors beginning with + #PB1</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="re0">$styles</span> = <span class= + "re0">$css</span>-><span class= + "me1">grepStyle</span><span class="br0">(</span><span class= + "st0">'/^#PB1/'</span><span class="br0">)</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw3">echo</span> <span class= + "st0">'<pre>'</span>; <span class= + "kw3">var_dump</span><span class="br0">(</span><span class= + "re0">$styles</span><span class="br0">)</span>; <span class= + "kw3">echo</span> <span class="st0">'</pre>'</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw2">?></span> + </div> + </li> + </ol> + </div> </div> <table class="htmlcssFooter"> <tr> @@ -122,7 +419,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -131,24 +428,24 @@ <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"> - <a accesskey="p" href="re08.html">Prev</a> + <a accesskey="p" href="ch07.html">Prev</a> </td> <td width="20%" align="center"> <a accesskey="u" href="ch07.html">Up</a> </td> <td width="40%" align="right"> - <a accesskey="n" href="re09.html">Next</a> + <a accesskey="n" href="ch07s03.html">Next</a> </td> </tr> <tr> <td width="40%" align="left" valign="top"> - <code class="function">HTML_CSS::setStyle</code> + Chapter 7. Searching for selectors and properties </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> - <code class="function">HTML_CSS::createGroup</code> + Searching for selectors that set a property </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch07s03.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch07s03.html diff -u pear/HTML_CSS/docs/TDG/ch07s03.html:1.2 pear/HTML_CSS/docs/TDG/ch07s03.html:1.3 --- pear/HTML_CSS/docs/TDG/ch07s03.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/ch07s03.html Sat Dec 30 12:53:07 2006 @@ -5,15 +5,17 @@ <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title> - Parsing data sources + Searching for selectors that set a property </title> <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> <link rel="up" href="ch07.html" title= - "Chapter 7. API - Application Programming Interface" /> - <link rel="prev" href="re15.html" title="HTML_CSS::setSameStyle" /> - <link rel="next" href="re16.html" title="HTML_CSS::parseString" /> + "Chapter 7. Searching for selectors and properties " /> + <link rel="prev" href="ch07s02.html" title= + "Searching for a group of selectors " /> + <link rel="next" href="pt03.html" title= + "Part III. Reference Guide" /> <style type="text/css"> /*<![CDATA[*/ body { @@ -23,6 +25,7 @@ :link { color: #0000FF } :visited { color: #840084 } :active { color: #0000FF } + div.c2 {font-family: monospace;} h2.c1 {clear: both} /*]]>*/ </style> @@ -39,18 +42,18 @@ <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center"> - Parsing data sources + Searching for selectors that set a property </th> </tr> <tr> <td width="20%" align="left"> - <a accesskey="p" href="re15.html">Prev</a> + <a accesskey="p" href="ch07s02.html">Prev</a> </td> <th width="60%" align="center"> - Chapter 7. API - Application Programming Interface + Chapter 7. Searching for selectors and properties </th> <td width="20%" align="right"> - <a accesskey="n" href="re16.html">Next</a> + <a accesskey="n" href="pt03.html">Next</a> </td> </tr> </table> @@ -62,35 +65,86 @@ <div class="sect1" lang="en" xml:lang="en"> <div class="titlepage"> <h2 class="title c1"> - <a name="reference.api.parse" id="reference.api.parse"></a>Parsing - data sources + <a name="developers.find.properties" id= + "developers.find.properties"></a>Searching for selectors that set a + property </h2> </div> - <div class="toc"> - <dl> - <dt> - <span class="refentrytitle"><a href="re16.html"><code class= - "function">HTML_CSS::parseString</code></a></span> <span class= - "refpurpose">- Parse a textstring that contains css - information</span> - </dt> - <dt> - <span class="refentrytitle"><a href="re17.html"><code class= - "function">HTML_CSS::parseFile</code></a></span> <span class= - "refpurpose">- Parse a file that contains CSS information</span> - </dt> - <dt> - <span class="refentrytitle"><a href="re18.html"><code class= - "function">HTML_CSS::parseData</code></a></span> <span class= - "refpurpose">- Parse data sources, file(s) or string(s), that - contains CSS information</span> - </dt> - </dl> - </div> <p> - Handle data sources are so easy than just one call of these three - methods : + We still used the CSS definitions of previous example, identified by + <code class="filename">progress2.css</code> file : + </p> + <p> + Very easy with such script to find where is declared <code class= + "literal">color</code> property. </p> + <div class="php c2"> + <ol> + <li class="li1"> + <div class="de1"> + <span class="kw2"><?php</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">require_once</span> <span class= + "st0">'HTML/CSS.php'</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="re0">$css</span> = <span class="kw2">new</span> + HTML_CSS<span class="br0">(</span><span class="br0">)</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="re0">$css</span>-><span class= + "me1">parseFile</span><span class="br0">(</span><span class= + "st0">'progress2.css'</span><span class="br0">)</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="co1">// find all selectors that set the color + property</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="re0">$styles</span> = <span class= + "re0">$css</span>-><span class= + "me1">grepStyle</span><span class="br0">(</span><span class= + "st0">'/./'</span>, <span class= + "st0">'/^color$/'</span><span class="br0">)</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw3">echo</span> <span class= + "st0">'<pre>'</span>; <span class= + "kw3">var_dump</span><span class="br0">(</span><span class= + "re0">$styles</span><span class="br0">)</span>; <span class= + "kw3">echo</span> <span class="st0">'</pre>'</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw2">?></span> + </div> + </li> + </ol> + </div> </div> <table class="htmlcssFooter"> <tr> @@ -98,7 +152,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -107,24 +161,24 @@ <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"> - <a accesskey="p" href="re15.html">Prev</a> + <a accesskey="p" href="ch07s02.html">Prev</a> </td> <td width="20%" align="center"> <a accesskey="u" href="ch07.html">Up</a> </td> <td width="40%" align="right"> - <a accesskey="n" href="re16.html">Next</a> + <a accesskey="n" href="pt03.html">Next</a> </td> </tr> <tr> <td width="40%" align="left" valign="top"> - <code class="function">HTML_CSS::setSameStyle</code> + Searching for a group of selectors </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> - <code class="function">HTML_CSS::parseString</code> + Part III. Reference Guide </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch08.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch08.html diff -u pear/HTML_CSS/docs/TDG/ch08.html:1.2 pear/HTML_CSS/docs/TDG/ch08.html:1.3 --- pear/HTML_CSS/docs/TDG/ch08.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/ch08.html Sat Dec 30 12:53:07 2006 @@ -5,15 +5,16 @@ <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title> - Chapter 8. Error Handler + Chapter 8. API - Application Programming Interface </title> <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> <link rel="up" href="pt03.html" title= "Part III. Reference Guide" /> - <link rel="prev" href="ch07s04.html" title="Output " /> - <link rel="next" href="ch08s02.html" title="Configuring a Handler " /> + <link rel="prev" href="pt03.html" title= + "Part III. Reference Guide" /> + <link rel="next" href="re01.html" title="HTML_CSS::setXhtmlCompliance" /> <style type="text/css"> /*<![CDATA[*/ body { @@ -23,8 +24,6 @@ :link { color: #0000FF } :visited { color: #840084 } :active { color: #0000FF } - div.c4 {font-family: monospace;} - div.c3 {margin-left: 0.5in; margin-right: 0.5in;} h2.c2 {clear: both} p.c1 {font-weight: bold} /*]]>*/ @@ -42,18 +41,18 @@ <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center"> - Chapter 8. Error Handler + Chapter 8. API - Application Programming Interface </th> </tr> <tr> <td width="20%" align="left"> - <a accesskey="p" href="ch07s04.html">Prev</a> + <a accesskey="p" href="pt03.html">Prev</a> </td> <th width="60%" align="center"> Part III. Reference Guide </th> <td width="20%" align="right"> - <a accesskey="n" href="ch08s02.html">Next</a> + <a accesskey="n" href="re01.html">Next</a> </td> </tr> </table> @@ -65,8 +64,9 @@ <div class="chapter" lang="en" xml:lang="en"> <div class="titlepage"> <h2 class="title"> - <a name="reference.errorhandler" id= - "reference.errorhandler"></a>Chapter 8. Error Handler + <a name="reference.api" id= + "reference.api"></a>Chapter 8. API - Application + Programming Interface </h2> </div> <div class="toc"> @@ -75,237 +75,87 @@ </p> <dl> <dt> - <span class="sect1"><a href= - "ch08.html#id4792686">Introduction</a></span> + <span class="sect1"><a href="ch08.html#reference.api.basic">Handle + selector and property values</a></span> </dt> <dt> - <span class="sect1"><a href="ch08s02.html">Configuring a - Handler</a></span> + <span class="sect1"><a href="ch08s02.html">Grouping + selectors</a></span> </dt> <dt> - <span class="sect1"><a href="ch08s03.html">Controlling error - generation</a></span> + <span class="sect1"><a href="ch08s03.html">Parsing data + sources</a></span> </dt> <dt> - <span class="sect1"><a href="ch08s04.html">Error Context - Display</a></span> + <span class="sect1"><a href="ch08s04.html">Output</a></span> </dt> <dt> - <span class="sect1"><a href="ch08s05.html">Custom Error Message - Generation</a></span> + <span class="sect1"><a href="ch08s05.html">Searching for selectors + and/or properties</a></span> </dt> - <dd> - <dl> - <dt> - <span class="sect2"><a href="ch08s05.html#id4794725">Option: - message_callback</a></span> - </dt> - <dt> - <span class="sect2"><a href="ch08s05.html#id4794759">Option: - context_callback</a></span> - </dt> - </dl> - </dd> </dl> </div> + <p> + With the class constructor, you have ability to set many options : + </p> + <div class="itemizedlist"> + <ul type="disc"> + <li> + <span class="bold"><strong>xhtml</strong></span> option defines + whether element selectors should be automatically lowercased. + </li> + <li> + <span class="bold"><strong>tab</strong></span> option defines the + string used to indent CSS text. See also: <code class= + "methodname">HTML_Common::setTab()</code>. + </li> + <li> + <span class="bold"><strong>filename</strong></span> option allow to + parse an external css file. + </li> + <li> + <span class="bold"><strong>cache</strong></span> option controls + caching of the page. + </li> + <li> + <span class="bold"><strong>online</strong></span> option defines + whether to output all properties on one line. + </li> + <li> + <span class="bold"><strong>groupsfirst</strong></span> option + determines whether to output groups before elements. + </li> + <li> + <span class="bold"><strong>allowduplicates</strong></span> option + allow to have duplicate rules in selector. + </li> + </ul> + </div> <div class="sect1" lang="en" xml:lang="en"> <div class="titlepage"> <h2 class="title c2"> - <a name="id4792686" id="id4792686"></a>Introduction + <a name="reference.api.basic" id="reference.api.basic"></a>Handle + selector and property values </h2> </div> - <p> - The HTML_CSS package is implemented with a flexible error handler - plug-in system. You may use any error handler that you want. Using - <code class="classname">PEAR_Error</code> object (default), but also - the <code class="classname">PEAR_ErrorStack</code> package, or any - other error handler you might want to plug in. - </p> - <p> - Without any configuration, each HTML_CSS API error (basic or - exception) will raise a <code class="classname">HTML_CSS_Error</code> - object that will be return to call script (user script). - </p> - <div class="tip c3"> - <table border="0" summary="Tip"> - <tr> - <td rowspan="2" align="center" valign="top" width="48px"> - <img alt="[Tip]" src="img/admons/tip.png" /> - </td> - <th align="left"> - Tip - </th> - </tr> - <tr> - <td align="left" valign="top"> - Easy to distinct basic PEAR_Error from other PEAR packages to - HTML_CSS errors, even if there is a better and more robust - solution: <code class="methodname">HTML_CSS::isError()</code>. - But also provide a unique way to retrieve the level of error - (warning, error, exception) with the <code class= - "methodname">HTML_CSS_Error::getLevel()</code> method. - </td> - </tr> - </table> - </div> - <p> - As usual you can use the PEAR error API as well. - </p> - <div class="php c4"> - <ol> - <li class="li1"> - <div class="de1"> - <span class="kw2"><?php</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="kw1">require_once</span> <span class= - "st0">'HTML/CSS.php'</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="re0">$css</span> = <span class="kw2">new</span> - HTML_CSS<span class="br0">(</span><span class="br0">)</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="re0">$result</span> = <span class= - "re0">$css</span>-><span class= - "me1">setStyle</span><span class="br0">(</span><span class= - "st0">'div'</span>, <span class="st0">'color'</span>, - <span class="nu0">5</span><span class="br0">)</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="kw1">if</span> <span class= - "br0">(</span>PEAR::<span class= - "me2">isError</span><span class="br0">(</span><span class= - "re0">$result</span><span class="br0">)</span><span class= - "br0">)</span> <span class="br0">{</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="co1">// do something when an error - is raised</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="br0">}</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="kw2">?></span> - </div> - </li> - </ol> + <div class="toc"> + <dl> + <dt> + <span class="refentrytitle"><a href="re07.html"><code class= + "function">HTML_CSS::getStyle</code></a></span> <span class= + "refpurpose">- Retrieves the value of a CSS property</span> + </dt> + <dt> + <span class="refentrytitle"><a href="re08.html"><code class= + "function">HTML_CSS::setStyle</code></a></span> <span class= + "refpurpose">- Sets or adds a CSS definition</span> + </dt> + </dl> </div> <p> - and output to screen will give something like : + Read and write single selector or even descendant selector is made + easy with : </p> - <div class="informalexample screenco"> - <pre class="screen"> -Exception<a name="error.1.level" id="error.1.level"></a><img src= -"img/callouts/1.gif" alt="1" border= -"0" />: invalid input, parameter #3 "$value" was expecting "string", -instead got "integer"<a name="error.1.message" id= -"error.1.message"></a><img src="img/callouts/2.gif" alt="2" border= -"0" /> in html_css->setstyle (file [path_to]\[filename] on line 6)<a name= -"error.1.context" id="error.1.context"></a><img src="img/callouts/3.gif" alt= -"3" border="0" /> - -</pre> - <div class="calloutlist"> - <table border="0" summary="Callout list"> - <tr> - <td width="5%" valign="top" align="left"> - <a href="#error.1.level"><img src="img/callouts/1.gif" alt= - "1" border="0" /></a> - </td> - <td valign="top" align="left"> - <p> - error level - </p> - </td> - </tr> - <tr> - <td width="5%" valign="top" align="left"> - <a href="#error.1.message"><img src="img/callouts/2.gif" alt= - "2" border="0" /></a> - </td> - <td valign="top" align="left"> - <p> - message body with context informations - </p> - </td> - </tr> - <tr> - <td width="5%" valign="top" align="left"> - <a href="#error.1.context"><img src="img/callouts/3.gif" alt= - "3" border="0" /></a> - </td> - <td valign="top" align="left"> - <p> - call context - </p> - </td> - </tr> - </table> - </div> - </div> - <p> - Perhaps this standard behavior is not what you want. Don't worry, you - can change everything : - </p> - <div class="itemizedlist"> - <ul type="disc"> - <li>display or ignore the error - </li> - <li>display or hide part of message (error level, body, context) - </li> - </ul> - </div> - <div class="important c3"> - <table border="0" summary="Important"> - <tr> - <td rowspan="2" align="center" valign="top" width="48px"> - <img alt="[Important]" src="img/admons/important.png" /> - </td> - <th align="left"> - Important - </th> - </tr> - <tr> - <td align="left" valign="top"> - HTML_CSS obey at <a class="external" href= - "http://www.php.net/manual/en/ref.errorfunc.php#ini.display-errors" - title= - "http://www.php.net/manual/en/ref.errorfunc.php#ini.display-errors"> - display_errors</a> and <a class="external" href= - "http://www.php.net/manual/en/ref.errorfunc.php#ini.log-errors" - title= - "http://www.php.net/manual/en/ref.errorfunc.php#ini.log-errors"> - log_errors</a> protocol - </td> - </tr> - </table> - </div> </div> </div> <table class="htmlcssFooter"> @@ -314,7 +164,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -323,24 +173,24 @@ <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"> - <a accesskey="p" href="ch07s04.html">Prev</a> + <a accesskey="p" href="pt03.html">Prev</a> </td> <td width="20%" align="center"> <a accesskey="u" href="pt03.html">Up</a> </td> <td width="40%" align="right"> - <a accesskey="n" href="ch08s02.html">Next</a> + <a accesskey="n" href="re01.html">Next</a> </td> </tr> <tr> <td width="40%" align="left" valign="top"> - Output + Part III. Reference Guide </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> - Configuring a Handler + <code class="function">HTML_CSS::setXhtmlCompliance</code> </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch08s02.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch08s02.html diff -u pear/HTML_CSS/docs/TDG/ch08s02.html:1.2 pear/HTML_CSS/docs/TDG/ch08s02.html:1.3 --- pear/HTML_CSS/docs/TDG/ch08s02.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/ch08s02.html Sat Dec 30 12:53:07 2006 @@ -5,17 +5,15 @@ <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title> - Configuring a Handler + Grouping selectors </title> <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> <link rel="up" href="ch08.html" title= - "Chapter 8. Error Handler" /> - <link rel="prev" href="ch08.html" title= - "Chapter 8. Error Handler" /> - <link rel="next" href="ch08s03.html" title= - "Controlling error generation " /> + "Chapter 8. API - Application Programming Interface" /> + <link rel="prev" href="re08.html" title="HTML_CSS::setStyle" /> + <link rel="next" href="re09.html" title="HTML_CSS::createGroup" /> <style type="text/css"> /*<![CDATA[*/ body { @@ -25,8 +23,6 @@ :link { color: #0000FF } :visited { color: #840084 } :active { color: #0000FF } - p.c3 {font-weight: bold} - div.c2 {font-family: monospace;} h2.c1 {clear: both} /*]]>*/ </style> @@ -43,18 +39,18 @@ <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center"> - Configuring a Handler + Grouping selectors </th> </tr> <tr> <td width="20%" align="left"> - <a accesskey="p" href="ch08.html">Prev</a> + <a accesskey="p" href="re08.html">Prev</a> </td> <th width="60%" align="center"> - Chapter 8. Error Handler + Chapter 8. API - Application Programming Interface </th> <td width="20%" align="right"> - <a accesskey="n" href="ch08s03.html">Next</a> + <a accesskey="n" href="re09.html">Next</a> </td> </tr> </table> @@ -66,164 +62,59 @@ <div class="sect1" lang="en" xml:lang="en"> <div class="titlepage"> <h2 class="title c1"> - <a name="id4793502" id="id4793502"></a>Configuring a Handler + <a name="reference.api.group" id="reference.api.group"></a>Grouping + selectors </h2> </div> + <div class="toc"> + <dl> + <dt> + <span class="refentrytitle"><a href="re09.html"><code class= + "function">HTML_CSS::createGroup</code></a></span> <span class= + "refpurpose">- Creates a new CSS definition group. Returns an + integer identifying the group.</span> + </dt> + <dt> + <span class="refentrytitle"><a href="re10.html"><code class= + "function">HTML_CSS::unsetGroup</code></a></span> <span class= + "refpurpose">- Sets or adds a CSS definition for a CSS definition + group</span> + </dt> + <dt> + <span class="refentrytitle"><a href="re11.html"><code class= + "function">HTML_CSS::getGroupStyle</code></a></span> <span class= + "refpurpose">- Returns a CSS definition for a CSS definition + group</span> + </dt> + <dt> + <span class="refentrytitle"><a href="re12.html"><code class= + "function">HTML_CSS::setGroupStyle</code></a></span> <span class= + "refpurpose">- Sets or adds a CSS definition for a CSS definition + group</span> + </dt> + <dt> + <span class="refentrytitle"><a href="re13.html"><code class= + "function">HTML_CSS::addGroupSelector</code></a></span> + <span class="refpurpose">- Adds a selector to a CSS definition + group.</span> + </dt> + <dt> + <span class="refentrytitle"><a href="re14.html"><code class= + "function">HTML_CSS::removeGroupSelector</code></a></span> + <span class="refpurpose">- Removes a selector from a group.</span> + </dt> + <dt> + <span class="refentrytitle"><a href="re15.html"><code class= + "function">HTML_CSS::setSameStyle</code></a></span> <span class= + "refpurpose">- Sets or changes the properties of new selectors to + the values of an existing selector</span> + </dt> + </dl> + </div> <p> - A error handler's configuration is determined by the arguments used in - its construction. Here's an overview of these parameters. + The most advanced/complex functions are those which handle group of + selectors </p> - <div class="php c2"> - <ol> - <li class="li1"> - <div class="de1"> - <span class="kw2"><?php</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="kw1">require_once</span> <span class= - "st0">'HTML/CSS.php'</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="re0">$errorConf</span> = <span class= - "kw3">array</span><span class="br0">(</span><span class= - "st0">'error_handler'</span> => <span class= - "st0">'myErrorHandler'</span>, - </div> - </li> - <li class="li1"> - <div class="de1"> - - <span class="st0">'push_callback'</span> => <span class= - "st0">'myError'</span>, - </div> - </li> - <li class="li1"> - <div class="de1"> - - <span class="co1">// ... more options</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - - <span class="br0">)</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="re0">$css</span> = <span class="kw2">new</span> - HTML_CSS<span class="br0">(</span><span class="kw2">null</span>, - <span class="re0">$errorConf</span><span class="br0">)</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="kw2">?></span> - </div> - </li> - </ol> - </div> - <div class="table"> - <a name="id4793525" id="id4793525"></a> - <p class="title c3"> - Table 8.1. Error Handler configuration parameters - </p> - <table summary="Error Handler configuration parameters" border="1"> - <colgroup> - <col /> - <col /> - <col /> - </colgroup> - <thead> - <tr> - <th> - Option - </th> - <th> - Type - </th> - <th> - Description - </th> - </tr> - </thead> - <tbody> - <tr> - <td> - error_handler - </td> - <td> - callback - </td> - <td> - A valid callback (function) to manage errors raised by the - <code class="methodname">HTML_CSS::raiseError()</code> method. - Default is: <code class= - "methodname">HTML_CSS::_errorHandler</code> - </td> - </tr> - <tr> - <td> - push_callback - </td> - <td> - callback - </td> - <td> - A valid callback (function) that decides to following action. - Default return: <code class="constant">PEAR_ERROR_DIE</code> if - exception, <code class="constant">NULL</code> otherwise. - </td> - </tr> - <tr> - <td> - message_callback - </td> - <td> - callback - </td> - <td> - A valid callback (function) to control message generation. - Default is: <code class= - "methodname">HTML_CSS_Error::_msgCallback</code> - </td> - </tr> - <tr> - <td> - context_callback - </td> - <td> - callback - </td> - <td> - A valid callback (function) to control error context - generation. Default is: <code class= - "methodname">HTML_CSS_Error::getBacktrace</code> - </td> - </tr> - <tr> - <td> - handler - </td> - <td> - mixed - </td> - <td> - any handler-specific settings - </td> - </tr> - </tbody> - </table> - </div> </div> <table class="htmlcssFooter"> <tr> @@ -231,7 +122,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -240,24 +131,24 @@ <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"> - <a accesskey="p" href="ch08.html">Prev</a> + <a accesskey="p" href="re08.html">Prev</a> </td> <td width="20%" align="center"> <a accesskey="u" href="ch08.html">Up</a> </td> <td width="40%" align="right"> - <a accesskey="n" href="ch08s03.html">Next</a> + <a accesskey="n" href="re09.html">Next</a> </td> </tr> <tr> <td width="40%" align="left" valign="top"> - Chapter 8. Error Handler + <code class="function">HTML_CSS::setStyle</code> </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> - Controlling error generation + <code class="function">HTML_CSS::createGroup</code> </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch08s03.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch08s03.html diff -u pear/HTML_CSS/docs/TDG/ch08s03.html:1.2 pear/HTML_CSS/docs/TDG/ch08s03.html:1.3 --- pear/HTML_CSS/docs/TDG/ch08s03.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/ch08s03.html Sat Dec 30 12:53:07 2006 @@ -5,15 +5,15 @@ <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title> - Controlling error generation + Parsing data sources </title> <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> <link rel="up" href="ch08.html" title= - "Chapter 8. Error Handler" /> - <link rel="prev" href="ch08s02.html" title="Configuring a Handler " /> - <link rel="next" href="ch08s04.html" title="Error Context Display " /> + "Chapter 8. API - Application Programming Interface" /> + <link rel="prev" href="re15.html" title="HTML_CSS::setSameStyle" /> + <link rel="next" href="re16.html" title="HTML_CSS::parseString" /> <style type="text/css"> /*<![CDATA[*/ body { @@ -23,8 +23,6 @@ :link { color: #0000FF } :visited { color: #840084 } :active { color: #0000FF } - div.c3 {margin-left: 0.5in; margin-right: 0.5in;} - div.c2 {font-family: monospace;} h2.c1 {clear: both} /*]]>*/ </style> @@ -41,18 +39,18 @@ <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center"> - Controlling error generation + Parsing data sources </th> </tr> <tr> <td width="20%" align="left"> - <a accesskey="p" href="ch08s02.html">Prev</a> + <a accesskey="p" href="re15.html">Prev</a> </td> <th width="60%" align="center"> - Chapter 8. Error Handler + Chapter 8. API - Application Programming Interface </th> <td width="20%" align="right"> - <a accesskey="n" href="ch08s04.html">Next</a> + <a accesskey="n" href="re16.html">Next</a> </td> </tr> </table> @@ -64,225 +62,35 @@ <div class="sect1" lang="en" xml:lang="en"> <div class="titlepage"> <h2 class="title c1"> - <a name="id4793674" id="id4793674"></a>Controlling error generation + <a name="reference.api.parse" id="reference.api.parse"></a>Parsing + data sources </h2> </div> - <p> - There are many scenarios in which fine-grained control over error - raising is absolutely necessary. - </p> - <p> - The first level to control error generation is the <code class= - "filename">php.ini</code> directives <span class= - "emphasis"><em>display_errors</em></span> and <span class= - "emphasis"><em>log_errors</em></span>. When these directives are set to - <code class="constant">TRUE</code>, then browser and file outputs are - effective. - </p> - <div class="tip c3"> - <table border="0" summary="Tip"> - <tr> - <td rowspan="2" align="center" valign="top" width="48px"> - <img alt="[Tip]" src="img/admons/tip.png" /> - </td> - <th align="left"> - Tip - </th> - </tr> - <tr> - <td align="left" valign="top"> - If you want to ignore all errors raised (no display, no logs) and - avoid to include PEAR core class, then you should have something - like : - <div class="php c2"> - <ol> - <li class="li1"> - <div class="de1"> - <span class="kw2"><?php</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="kw1">require_once</span> <span class= - "st0">'HTML/CSS.php'</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="kw2">function</span> - myErrorHandler<span class="br0">(</span><span class= - "br0">)</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="br0">{</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="kw1">return</span> - <span class="kw2">null</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="br0">}</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="re0">$errorConf</span> = <span class= - "kw3">array</span><span class="br0">(</span><span class= - "st0">'error_handler'</span> => <span class= - "st0">'myErrorHandler'</span><span class="br0">)</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="re0">$css</span> = <span class= - "kw2">new</span> HTML_CSS<span class= - "br0">(</span><span class="kw2">null</span>, <span class= - "re0">$errorConf</span><span class="br0">)</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="co1">// ...</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="kw2">?></span> - </div> - </li> - </ol> - </div> - </td> - </tr> - </table> + <div class="toc"> + <dl> + <dt> + <span class="refentrytitle"><a href="re16.html"><code class= + "function">HTML_CSS::parseString</code></a></span> <span class= + "refpurpose">- Parse a textstring that contains css + information</span> + </dt> + <dt> + <span class="refentrytitle"><a href="re17.html"><code class= + "function">HTML_CSS::parseFile</code></a></span> <span class= + "refpurpose">- Parse a file that contains CSS information</span> + </dt> + <dt> + <span class="refentrytitle"><a href="re18.html"><code class= + "function">HTML_CSS::parseData</code></a></span> <span class= + "refpurpose">- Parse data sources, file(s) or string(s), that + contains CSS information</span> + </dt> + </dl> </div> <p> - With <span class="bold"><strong>push_callback</strong></span> option, - you can decides to stop script execution (as done with exceptions by - default: returns <code class="constant">PEAR_ERROR_DIE</code> - constant), or continue without filtering (returns <code class= - "constant">NULL</code>). + Handle data sources are so easy than just one call of these three + methods : </p> - <p> - If you want to write your own callback function for the <span class= - "emphasis"><em>push_callback</em></span> option, this one should have - two arguments: first one will get the error code, and second will get - error level. These are all the necessary informations to do a - filtering. Example that follow show how to be aware that a script use - wrong argument data type. - </p> - <div class="php c2"> - <ol> - <li class="li1"> - <div class="de1"> - <span class="kw2"><?php</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="kw1">require_once</span> <span class= - "st0">'HTML/CSS.php'</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="kw2">function</span> myErrorFilter<span class= - "br0">(</span><span class="re0">$code</span>, <span class= - "re0">$level</span><span class="br0">)</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="br0">{</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="kw1">if</span> <span class= - "br0">(</span><span class="re0">$code</span> === - HTML_CSS_ERROR_INVALID_INPUT<span class="br0">)</span> - <span class="br0">{</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class= - "kw3">error_log</span><span class="br0">(</span><span class= - "st0">'script: '</span>.<span class= - "kw2">__FILE__</span>.<span class="st0">' used wrong argument - data type'</span>, <span class="nu0">1</span>, <span class= - "st0">'admin@yoursite.com'</span><span class="br0">)</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="br0">}</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="kw1">return</span> <span class= - "kw2">null</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="br0">}</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="re0">$errorConf</span> = <span class= - "kw3">array</span><span class="br0">(</span><span class= - "st0">'push_callback'</span> => <span class= - "st0">'myErrorFilter'</span><span class="br0">)</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="re0">$css</span> = <span class="kw2">new</span> - HTML_CSS<span class="br0">(</span><span class="kw2">null</span>, - <span class="re0">$errorConf</span><span class="br0">)</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="co1">// ...</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="kw2">?></span> - </div> - </li> - </ol> - </div> </div> <table class="htmlcssFooter"> <tr> @@ -290,7 +98,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -299,24 +107,24 @@ <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"> - <a accesskey="p" href="ch08s02.html">Prev</a> + <a accesskey="p" href="re15.html">Prev</a> </td> <td width="20%" align="center"> <a accesskey="u" href="ch08.html">Up</a> </td> <td width="40%" align="right"> - <a accesskey="n" href="ch08s04.html">Next</a> + <a accesskey="n" href="re16.html">Next</a> </td> </tr> <tr> <td width="40%" align="left" valign="top"> - Configuring a Handler + <code class="function">HTML_CSS::setSameStyle</code> </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> - Error Context Display + <code class="function">HTML_CSS::parseString</code> </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch08s04.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch08s04.html diff -u pear/HTML_CSS/docs/TDG/ch08s04.html:1.2 pear/HTML_CSS/docs/TDG/ch08s04.html:1.3 --- pear/HTML_CSS/docs/TDG/ch08s04.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/ch08s04.html Sat Dec 30 12:53:07 2006 @@ -5,17 +5,15 @@ <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title> - Error Context Display + Output </title> <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> <link rel="up" href="ch08.html" title= - "Chapter 8. Error Handler" /> - <link rel="prev" href="ch08s03.html" title= - "Controlling error generation " /> - <link rel="next" href="ch08s05.html" title= - "Custom Error Message Generation " /> + "Chapter 8. API - Application Programming Interface" /> + <link rel="prev" href="re18.html" title="HTML_CSS::parseData" /> + <link rel="next" href="re19.html" title="HTML_CSS::toArray" /> <style type="text/css"> /*<![CDATA[*/ body { @@ -25,9 +23,6 @@ :link { color: #0000FF } :visited { color: #840084 } :active { color: #0000FF } - p.c4 {font-weight: bold} - div.c3 {margin-left: 0.5in; margin-right: 0.5in;} - div.c2 {font-family: monospace;} h2.c1 {clear: both} /*]]>*/ </style> @@ -44,18 +39,18 @@ <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center"> - Error Context Display + Output </th> </tr> <tr> <td width="20%" align="left"> - <a accesskey="p" href="ch08s03.html">Prev</a> + <a accesskey="p" href="re18.html">Prev</a> </td> <th width="60%" align="center"> - Chapter 8. Error Handler + Chapter 8. API - Application Programming Interface </th> <td width="20%" align="right"> - <a accesskey="n" href="ch08s05.html">Next</a> + <a accesskey="n" href="re19.html">Next</a> </td> </tr> </table> @@ -67,632 +62,44 @@ <div class="sect1" lang="en" xml:lang="en"> <div class="titlepage"> <h2 class="title c1"> - <a name="id4793786" id="id4793786"></a>Error Context Display + <a name="reference.api.output" id="reference.api.output"></a>Output </h2> </div> - <p> - In some cases, you may want to customize error generation. For - instance, for each error (basic/exception), it is useful to include - file, line number, and class/function context information in order to - trace it. The default option will be sufficient for most cases but you - want perhaps customize the output format (render) of context - information. - </p> - <p> - With this example we will change display and log renders. - </p> - <div class="php c2"> - <ol> - <li class="li1"> - <div class="de1"> - <span class="kw2"><?php</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="kw1">require_once</span> <span class= - "st0">'HTML/CSS.php'</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="re0">$displayConfig</span> = <span class= - "kw3">array</span><span class="br0">(</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="st0">'lineFormat'</span> => - <span class="st0">'<b>%1$s</b>: %2$s<br - />%3$s'</span>, - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="st0">'contextFormat'</span> - => <span class="st0">'<b>File:</b> - %1$s <br />'</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - - . <span class="st0">'<b>Line:</b> - %2$s <br />'</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - - . <span class= - "st0">'<b>Function:</b> %3$s '</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="br0">)</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="re0">$logConfig</span> = <span class= - "kw3">array</span><span class="br0">(</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="st0">'lineFormat'</span> => - <span class="st0">'%1$s %2$s [%3$s] %4$s'</span>, - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="st0">'timeFormat'</span> => - <span class="st0">'%b'</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="br0">)</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="re0">$prefs</span> = <span class= - "kw3">array</span><span class="br0">(</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="st0">'handler'</span> => - <span class="kw3">array</span><span class= - "br0">(</span><span class="st0">'display'</span> => - <span class="re0">$displayConfig</span>, - </div> - </li> - <li class="li1"> - <div class="de1"> - - <span class="st0">'log'</span> - => <span class="re0">$logConfig</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="br0">)</span><span class="br0">)</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="re0">$css</span> = <span class="kw2">new</span> - HTML_CSS<span class="br0">(</span><span class="kw2">null</span>, - <span class="re0">$prefs</span><span class="br0">)</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="co1">// ...</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="re0">$result</span> = <span class= - "re0">$css</span>-><span class= - "me1">setStyle</span><span class="br0">(</span><span class= - "st0">'div'</span>, <span class="st0">'color'</span>, - <span class="nu0">5</span><span class="br0">)</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="kw2">?></span> - </div> - </li> - </ol> - </div> - <p> - Display render will give something like: - </p> - <div class="informalexample screenco"> - <pre class="screen"> -Exception<a name="error.2.level" id="error.2.level"></a><img src= -"img/callouts/1.gif" alt="1" border= -"0" />: invalid input, parameter #3 "$value" was expecting "string", instead got "integer"<a name="error.2.message" -id="error.2.message"></a><img src="img/callouts/2.gif" alt="2" border="0" /> -File: [path_to]\[filename] <a name="error.2.context" id= -"error.2.context"></a><img src="img/callouts/3.gif" alt="3" border="0" /> -Line: 22 <a name="error.2.context" id="error.2.context"></a><img src= -"img/callouts/3.gif" alt="3" border="0" /> -Function: html_css->setstyle <a name="error.2.context" id= -"error.2.context"></a><img src="img/callouts/3.gif" alt="3" border="0" /> - -</pre> - <div class="calloutlist"> - <table border="0" summary="Callout list"> - <tr> - <td width="5%" valign="top" align="left"> - <a href="#error.2.level"><img src="img/callouts/1.gif" alt="1" - border="0" /></a> - </td> - <td valign="top" align="left"> - <p> - error level - </p> - </td> - </tr> - <tr> - <td width="5%" valign="top" align="left"> - <a href="#error.2.message"><img src="img/callouts/2.gif" alt= - "2" border="0" /></a> - </td> - <td valign="top" align="left"> - <p> - message body with context informations - </p> - </td> - </tr> - <tr> - <td width="5%" valign="top" align="left"> - <a href="#error.2.context"><img src="img/callouts/3.gif" alt= - "3" border="0" /></a> - </td> - <td valign="top" align="left"> - <p> - call context (file, line, function) - </p> - </td> - </tr> - </table> - </div> - </div> - <p> - Log render will give something like: - </p> - <div class="informalexample screenco"> - <pre class="screen"> -Jun 127.0.0.1<a name="error.3.context" id="error.3.context"></a><img src= -"img/callouts/1.gif" alt="1" border="0" /> [exception<a name="error.3.level" -id="error.3.level"></a><img src="img/callouts/2.gif" alt="2" border= -"0" />] invalid input, parameter #3 "$value" was expecting "string", instead got "integer"<a name="error.3.message" -id="error.3.message"></a><img src="img/callouts/3.gif" alt="3" border="0" /> - -</pre> - <div class="calloutlist"> - <table border="0" summary="Callout list"> - <tr> - <td width="5%" valign="top" align="left"> - <a href="#error.3.context"><img src="img/callouts/1.gif" alt= - "1" border="0" /></a> - </td> - <td valign="top" align="left"> - <p> - client ip address and execution date - </p> - </td> - </tr> - <tr> - <td width="5%" valign="top" align="left"> - <a href="#error.3.level"><img src="img/callouts/2.gif" alt="2" - border="0" /></a> - </td> - <td valign="top" align="left"> - <p> - error level - </p> - </td> - </tr> - <tr> - <td width="5%" valign="top" align="left"> - <a href="#error.3.message"><img src="img/callouts/3.gif" alt= - "3" border="0" /></a> - </td> - <td valign="top" align="left"> - <p> - message body with context informations - </p> - </td> - </tr> - </table> - </div> - </div> - <div class="note c3"> - <table border="0" summary="Note"> - <tr> - <td rowspan="2" align="center" valign="top" width="48px"> - <img alt="[Note]" src="img/admons/note.png" /> - </td> - <th align="left"> - Note - </th> - </tr> - <tr> - <td align="left" valign="top"> - To have both display and log output, check the <code class= - "filename">php.ini</code><span class= - "emphasis"><em>display_errors</em></span> and <span class= - "emphasis"><em>log_errors</em></span> values : must be set to - <code class="constant">TRUE</code>. - </td> - </tr> - </table> + <div class="toc"> + <dl> + <dt> + <span class="refentrytitle"><a href="re19.html"><code class= + "function">HTML_CSS::toArray</code></a></span> <span class= + "refpurpose">- Returns the array of CSS properties</span> + </dt> + <dt> + <span class="refentrytitle"><a href="re20.html"><code class= + "function">HTML_CSS::toInline</code></a></span> <span class= + "refpurpose">- Generates and returns the CSS properties of an + element or class as a string for inline use.</span> + </dt> + <dt> + <span class="refentrytitle"><a href="re21.html"><code class= + "function">HTML_CSS::toFile</code></a></span> <span class= + "refpurpose">- Generates CSS and stores it in a file.</span> + </dt> + <dt> + <span class="refentrytitle"><a href="re22.html"><code class= + "function">HTML_CSS::toString</code></a></span> <span class= + "refpurpose">- Generates and returns the complete CSS as a + string.</span> + </dt> + <dt> + <span class="refentrytitle"><a href="re23.html"><code class= + "function">HTML_CSS::display</code></a></span> <span class= + "refpurpose">- Outputs the stylesheet to the browser.</span> + </dt> + </dl> </div> <p> - Let review, step by step, how to get such results. + Send result directly to browser, send it to file or capture to a PHP + variable, you will certainly use one of them. </p> - <p> - Remember that with default classes, there are two drivers : - <span class="emphasis"><em>display</em></span> and <span class= - "emphasis"><em>log</em></span> that have both their own configuration - parameters. You can override these parameters values with the - <span class="bold"><strong>handler</strong></span> entry in the hash of - second argument of the HTML_CSS class constructor. - </p> - <p> - We did it here with the <em class="parameter"><code>$prefs</code></em> - variable; its a two keys associative array. First key <span class= - "emphasis"><em>display</em></span> defines the display driver values, - and the second key <span class="emphasis"><em>log</em></span> defines - the log driver values. - </p> - <p> - Review the <span class="emphasis"><em>display</em></span> driver custom - values. Only two keys: <span class="simplelist">lineFormat, - contextFormat</span> are redefined, thats means remains key - <span class="simplelist">eol</span> keep its default value. See table - below. - </p> - <div class="table"> - <a name="id4794265" id="id4794265"></a> - <p class="title c4"> - Table 8.2. Display driver configuration parameters - </p> - <table summary="Display driver configuration parameters" border="1"> - <colgroup> - <col /> - <col /> - <col /> - <col /> - </colgroup> - <thead> - <tr> - <th> - Parameter - </th> - <th> - Type - </th> - <th> - Default - </th> - <th> - Description - </th> - </tr> - </thead> - <tbody> - <tr> - <td> - eol - </td> - <td> - string - </td> - <td> - <br />\n - </td> - <td> - The end-on-line character sequence - </td> - </tr> - <tr> - <td> - lineFormat - </td> - <td> - string - </td> - <td> - <b>%1$s</b>: %2$s %3$s - </td> - <td> - Log line format specification: - <div class="itemizedlist"> - <ul type="disc"> - <li>1$ = error level - </li> - <li>2$ = error message (body) - </li> - <li>3$ = error context - </li> - </ul> - </div> - </td> - </tr> - <tr> - <td> - contextFormat - </td> - <td> - string - </td> - <td> - in <b>%3$s</b> (file <b>%1$s</b> on - line <b>%2$s</b>) - </td> - <td> - Context format (class, file, line) specification: - <div class="itemizedlist"> - <ul type="disc"> - <li>1$ = script file name - </li> - <li>2$ = line in script file - </li> - <li>3$ = class/method names - </li> - </ul> - </div> - </td> - </tr> - </tbody> - </table> - </div> - <div class="tip c3"> - <table border="0" summary="Tip"> - <tr> - <td rowspan="2" align="center" valign="top" width="48px"> - <img alt="[Tip]" src="img/admons/tip.png" /> - </td> - <th align="left"> - Tip - </th> - </tr> - <tr> - <td align="left" valign="top"> - If you don't wish to see context information in the error - message, then remove the parameter %3$ in the <span class= - "emphasis"><em>lineFormat</em></span> option even if <span class= - "emphasis"><em>contextFormat</em></span> is set. - </td> - </tr> - </table> - </div> - <p> - Review now the <span class="emphasis"><em>log</em></span> driver custom - values. Only two keys <span class="simplelist">lineFormat, - timeFormat</span> are redefined, thats means six remains keys - <span class="simplelist">eol, contextFormat, ident, message_type, - destination, extra_headers</span> keep their default values. See table - below. - </p> - <div class="table"> - <a name="id4794456" id="id4794456"></a> - <p class="title c4"> - Table 8.3. Log driver configuration parameters - </p> - <table summary="Log driver configuration parameters" border="1"> - <colgroup> - <col /> - <col /> - <col /> - <col /> - </colgroup> - <thead> - <tr> - <th> - Parameter - </th> - <th> - Type - </th> - <th> - Default - </th> - <th> - Description - </th> - </tr> - </thead> - <tbody> - <tr> - <td> - eol - </td> - <td> - string - </td> - <td> - \n - </td> - <td> - The end-on-line character sequence - </td> - </tr> - <tr> - <td> - lineFormat - </td> - <td> - string - </td> - <td> - %1$s %2$s [%3$s] %4$s %5$s - </td> - <td> - Log line format specification: - <div class="itemizedlist"> - <ul type="disc"> - <li>$1 = time error - </li> - <li>2$ = ident (client ip) - </li> - <li>3$ = error level - </li> - <li>4$ = error message (body) - </li> - <li>5$ = error context - </li> - </ul> - </div> - </td> - </tr> - <tr> - <td> - contextFormat - </td> - <td> - string - </td> - <td> - in %3$s (file %1$s on line %2$s) - </td> - <td> - Context format (class, file, line) specification: - <div class="itemizedlist"> - <ul type="disc"> - <li>1$ = script file name - </li> - <li>2$ = line in script file - </li> - <li>3$ = class/method names - </li> - </ul> - </div> - </td> - </tr> - <tr> - <td> - timeFormat - </td> - <td> - string - </td> - <td> - %b %d %H:%M:%S - </td> - <td> - Time stamp format used by <a class="external" href= - "http://www.php.net/manual-lookup.php?pattern=strftime" title= - "http://www.php.net/manual-lookup.php?pattern=strftime">strftime</a> - </td> - </tr> - <tr> - <td> - ident - </td> - <td> - string - </td> - <td> - REMOTE_ADDR - </td> - <td> - Client IP - </td> - </tr> - <tr> - <td> - message_type - </td> - <td> - string - </td> - <td> - 3 - </td> - <td> - Destination type used by <a class="external" href= - "http://www.php.net/manual-lookup.php?pattern=error_log" title= - "http://www.php.net/manual-lookup.php?pattern=error_log">error_log</a> - </td> - </tr> - <tr> - <td> - destination - </td> - <td> - string - </td> - <td> - html_css_error.log - </td> - <td> - Destination name used by <a class="external" href= - "http://www.php.net/manual-lookup.php?pattern=error_log" title= - "http://www.php.net/manual-lookup.php?pattern=error_log">error_log</a> - </td> - </tr> - <tr> - <td> - extra_headers - </td> - <td> - string - </td> - <td> - <code class="constant">NULL</code> - </td> - <td> - Extra headers depending of destination type - </td> - </tr> - </tbody> - </table> - </div> - <div class="tip c3"> - <table border="0" summary="Tip"> - <tr> - <td rowspan="2" align="center" valign="top" width="48px"> - <img alt="[Tip]" src="img/admons/tip.png" /> - </td> - <th align="left"> - Tip - </th> - </tr> - <tr> - <td align="left" valign="top"> - If you don't wish to see context information in the error - message, then remove the parameter %5$ in the <span class= - "emphasis"><em>lineFormat</em></span> option even if <span class= - "emphasis"><em>contextFormat</em></span> is set. - </td> - </tr> - </table> - </div> </div> <table class="htmlcssFooter"> <tr> @@ -700,7 +107,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -709,24 +116,24 @@ <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"> - <a accesskey="p" href="ch08s03.html">Prev</a> + <a accesskey="p" href="re18.html">Prev</a> </td> <td width="20%" align="center"> <a accesskey="u" href="ch08.html">Up</a> </td> <td width="40%" align="right"> - <a accesskey="n" href="ch08s05.html">Next</a> + <a accesskey="n" href="re19.html">Next</a> </td> </tr> <tr> <td width="40%" align="left" valign="top"> - Controlling error generation + <code class="function">HTML_CSS::parseData</code> </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> - Custom Error Message Generation + <code class="function">HTML_CSS::toArray</code> </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch08s05.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch08s05.html diff -u pear/HTML_CSS/docs/TDG/ch08s05.html:1.2 pear/HTML_CSS/docs/TDG/ch08s05.html:1.3 --- pear/HTML_CSS/docs/TDG/ch08s05.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/ch08s05.html Sat Dec 30 12:53:07 2006 @@ -5,14 +5,15 @@ <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title> - Custom Error Message Generation + Searching for selectors and/or properties </title> <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> <link rel="up" href="ch08.html" title= - "Chapter 8. Error Handler" /> - <link rel="prev" href="ch08s04.html" title="Error Context Display " /> + "Chapter 8. API - Application Programming Interface" /> + <link rel="prev" href="re23.html" title="HTML_CSS::display" /> + <link rel="next" href="re24.html" title="HTML_CSS::grepStyle" /> <style type="text/css"> /*<![CDATA[*/ body { @@ -22,7 +23,7 @@ :link { color: #0000FF } :visited { color: #840084 } :active { color: #0000FF } - div.c2 {font-family: monospace;} + div.c2 {margin-left: 0.5in; margin-right: 0.5in;} h2.c1 {clear: both} /*]]>*/ </style> @@ -39,18 +40,18 @@ <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center"> - Custom Error Message Generation + Searching for selectors and/or properties </th> </tr> <tr> <td width="20%" align="left"> - <a accesskey="p" href="ch08s04.html">Prev</a> + <a accesskey="p" href="re23.html">Prev</a> </td> <th width="60%" align="center"> - Chapter 8. Error Handler + Chapter 8. API - Application Programming Interface </th> <td width="20%" align="right"> - + <a accesskey="n" href="re24.html">Next</a> </td> </tr> </table> @@ -62,114 +63,40 @@ <div class="sect1" lang="en" xml:lang="en"> <div class="titlepage"> <h2 class="title c1"> - <a name="id4794713" id="id4794713"></a>Custom Error Message - Generation + <a name="reference.api.grep" id="reference.api.grep"></a>Searching + for selectors and/or properties </h2> </div> <div class="toc"> <dl> <dt> - <span class="sect2"><a href="ch08s05.html#id4794725">Option: - message_callback</a></span> - </dt> - <dt> - <span class="sect2"><a href="ch08s05.html#id4794759">Option: - context_callback</a></span> + <span class="refentrytitle"><a href="re24.html"><code class= + "function">HTML_CSS::grepStyle</code></a></span> <span class= + "refpurpose">- Return array entries of styles that match patterns + (Perl compatible)</span> </dt> </dl> </div> <p> - There are two methods of <code class="classname">HTML_CSS_Error</code> - designed for use with generating error messages efficiently. To use - them, you must set the options below in the HTML_CSS class constructor - (argument #2): + Ability to find if a selector or a property (with perl-compatible + pattern) is already defined. </p> - <div class="sect2" lang="en" xml:lang="en"> - <div class="titlepage"> - <h3 class="title"> - <a name="id4794725" id="id4794725"></a>Option: message_callback - </h3> - </div> - <p> - The default message handling callback (<code class= - "methodname">HTML_CSS_Error::_getErrorMessage</code>) get an array - mapping error codes to error message templates, like so: - </p> - <div class="php c2"> - <ol> - <li class="li1"> - <div class="de1"> - <span class="kw2"><?php</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="re0">$messages</span> = <span class= - "kw3">array</span><span class="br0">(</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - HTML_CSS_ERROR_UNKNOWN => - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="st0">'unknown - error'</span>, - </div> - </li> - <li class="li1"> - <div class="de1"> - HTML_CSS_ERROR_INVALID_INPUT => - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="st0">'invalid input, - parameter #%paramnum% '</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - . <span class="st0">'"%var%" was expecting - '</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - . <span class="st0">'"%expected%", instead - got "%was%"'</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="br0">)</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="kw2">?></span> - </div> - </li> - </ol> - </div> - <p> - Basically, if a variable name is enclosed in percent signs (%), it - will be replaced with the value passed in the associative array. - </p> - </div> - <div class="sect2" lang="en" xml:lang="en"> - <div class="titlepage"> - <h3 class="title"> - <a name="id4794759" id="id4794759"></a>Option: context_callback - </h3> - </div> - <p> - The default context handling callback (<code class= - "methodname">HTML_CSS_Error::getBackTrace</code>) gets an array of - execution functions and discovers where the error was generated. - </p> + <div class="important c2"> + <table border="0" summary="Important"> + <tr> + <td rowspan="2" align="center" valign="top" width="48"> + <img alt="[Important]" src="img/admons/important.png" /> + </td> + <th align="left"> + Important + </th> + </tr> + <tr> + <td align="left" valign="top"> + This function is available since version 1.1.0 + </td> + </tr> + </table> </div> </div> <table class="htmlcssFooter"> @@ -178,7 +105,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -187,24 +114,24 @@ <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"> - <a accesskey="p" href="ch08s04.html">Prev</a> + <a accesskey="p" href="re23.html">Prev</a> </td> <td width="20%" align="center"> <a accesskey="u" href="ch08.html">Up</a> </td> <td width="40%" align="right"> - + <a accesskey="n" href="re24.html">Next</a> </td> </tr> <tr> <td width="40%" align="left" valign="top"> - Error Context Display + <code class="function">HTML_CSS::display</code> </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> - + <code class="function">HTML_CSS::grepStyle</code> </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/index.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/index.html diff -u pear/HTML_CSS/docs/TDG/index.html:1.2 pear/HTML_CSS/docs/TDG/index.html:1.3 --- pear/HTML_CSS/docs/TDG/index.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/index.html Sat Dec 30 12:53:07 2006 @@ -80,7 +80,7 @@ </div> <div> <p class="copyright"> - Copyright © 2006 Laurent Laville + Copyright © 2006, 2007 Laurent Laville </p> </div> <div class="legalnotice"> @@ -102,6 +102,30 @@ </tr> <tr> <td align="left"> + Revision 1.1.0 + </td> + <td align="left"> + January 1, 2007 + </td> + </tr> + <tr> + <td align="left" colspan="2"> + <div class="itemizedlist"> + <ul type="disc"> + <li>Added new feature (API function getStyle), for help + to find if a class selector or property is already + defined or not + </li> + <li>Added appendix with examples + </li> + <li>Fixed minor typo errors + </li> + </ul> + </div> + </td> + </tr> + <tr> + <td align="left"> Revision 1.0.1 </td> <td align="left"> @@ -200,6 +224,10 @@ <dt> <span class="chapter"><a href="ch06.html">6. Output</a></span> </dt> + <dt> + <span class="chapter"><a href="ch07.html">7. Searching for + selectors and properties</a></span> + </dt> </dl> </dd> <dt> @@ -209,15 +237,26 @@ <dd> <dl> <dt> - <span class="chapter"><a href="ch07.html">7. API - Application + <span class="chapter"><a href="ch08.html">8. API - Application Programming Interface</a></span> </dt> <dt> - <span class="chapter"><a href="ch08.html">8. Error + <span class="chapter"><a href="ch09.html">9. Error Handler</a></span> </dt> </dl> </dd> + <dt> + <span class="part"><a href="pt04.html">IV. Appendixes</a></span> + </dt> + <dd> + <dl> + <dt> + <span class="chapter"><a href="ch10.html">10. + Examples</a></span> + </dt> + </dl> + </dd> </dl> </div> <div class="list-of-figures"> @@ -226,7 +265,7 @@ </p> <dl> <dt> - 3.1. <a href="ch03s02.html#id4728688">Rule structure</a> + 3.1. <a href="ch03s02.html#id4731351">Rule structure</a> </dt> </dl> </div> @@ -236,19 +275,40 @@ </p> <dl> <dt> - 8.1. <a href="ch08s02.html#id4793525">Error Handler configuration + 9.1. <a href="ch09s02.html#id4795464">Error Handler configuration parameters</a> </dt> <dt> - 8.2. <a href="ch08s04.html#id4794265">Display driver configuration + 9.2. <a href="ch09s04.html#id4796205">Display driver configuration parameters</a> </dt> <dt> - 8.3. <a href="ch08s04.html#id4794456">Log driver configuration + 9.3. <a href="ch09s04.html#id4796396">Log driver configuration parameters</a> </dt> </dl> </div> + <div class="list-of-examples"> + <p class="c1"> + List of Examples + </p> + <dl> + <dt> + 10.1. <a href="ch10.html#id4797953">Simple selector definitions</a> + </dt> + <dt> + 10.2. <a href="ch10.html#id4798032">Combine selectors + properties</a> + </dt> + <dt> + 10.3. <a href="ch10s02.html#id4798718">Simple string parsing</a> + </dt> + <dt> + 10.4. <a href="ch10s02.html#id4799072">Multiple data sources + parsing</a> + </dt> + </dl> + </div> </div> <table class="htmlcssFooter"> <tr> @@ -256,7 +316,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/pr01.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/pr01.html diff -u pear/HTML_CSS/docs/TDG/pr01.html:1.2 pear/HTML_CSS/docs/TDG/pr01.html:1.3 --- pear/HTML_CSS/docs/TDG/pr01.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/pr01.html Sat Dec 30 12:53:07 2006 @@ -88,7 +88,7 @@ </h2> </div> <p> - This book is divided into three main parts, they are: + This book is divided into four main parts, they are: </p> <div class="itemizedlist"> <ul type="disc"> @@ -201,6 +201,16 @@ </ul> </div> </li> + <li> + <p> + <a href="pt04.html" title= + "Part IV. Appendixes">Appendixes</a> + </p> + <p> + This section is intended to provide full examples included into + the distribution. + </p> + </li> </ul> </div> </div> @@ -211,7 +221,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/pr01s02.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/pr01s02.html diff -u pear/HTML_CSS/docs/TDG/pr01s02.html:1.2 pear/HTML_CSS/docs/TDG/pr01s02.html:1.3 --- pear/HTML_CSS/docs/TDG/pr01s02.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/pr01s02.html Sat Dec 30 12:53:07 2006 @@ -83,7 +83,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/pt01.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/pt01.html diff -u pear/HTML_CSS/docs/TDG/pt01.html:1.2 pear/HTML_CSS/docs/TDG/pt01.html:1.3 --- pear/HTML_CSS/docs/TDG/pt01.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/pt01.html Sat Dec 30 12:53:07 2006 @@ -103,7 +103,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/pt02.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/pt02.html diff -u pear/HTML_CSS/docs/TDG/pt02.html:1.2 pear/HTML_CSS/docs/TDG/pt02.html:1.3 --- pear/HTML_CSS/docs/TDG/pt02.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/pt02.html Sat Dec 30 12:53:07 2006 @@ -160,6 +160,26 @@ </dt> </dl> </dd> + <dt> + <span class="chapter"><a href="ch07.html">7. Searching for + selectors and properties</a></span> + </dt> + <dd> + <dl> + <dt> + <span class="sect1"><a href= + "ch07.html#developers.find.purpose">In brief</a></span> + </dt> + <dt> + <span class="sect1"><a href="ch07s02.html">Searching for a + group of selectors</a></span> + </dt> + <dt> + <span class="sect1"><a href="ch07s03.html">Searching for + selectors that set a property</a></span> + </dt> + </dl> + </dd> </dl> </div> </div> @@ -169,7 +189,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/pt03.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/pt03.html diff -u pear/HTML_CSS/docs/TDG/pt03.html:1.2 pear/HTML_CSS/docs/TDG/pt03.html:1.3 --- pear/HTML_CSS/docs/TDG/pt03.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/pt03.html Sat Dec 30 12:53:07 2006 @@ -11,9 +11,10 @@ <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> <link rel="up" href="index.html" title="HTML_CSS Manual" /> - <link rel="prev" href="ch06s06.html" title="Display" /> - <link rel="next" href="ch07.html" title= - "Chapter 7. API - Application Programming Interface" /> + <link rel="prev" href="ch07s03.html" title= + "Searching for selectors that set a property " /> + <link rel="next" href="ch08.html" title= + "Chapter 8. API - Application Programming Interface" /> <style type="text/css"> /*<![CDATA[*/ body { @@ -44,13 +45,13 @@ </tr> <tr> <td width="20%" align="left"> - <a accesskey="p" href="ch06s06.html">Prev</a> + <a accesskey="p" href="ch07s03.html">Prev</a> </td> <th width="60%" align="center"> </th> <td width="20%" align="right"> - <a accesskey="n" href="ch07.html">Next</a> + <a accesskey="n" href="ch08.html">Next</a> </td> </tr> </table> @@ -72,53 +73,57 @@ </p> <dl> <dt> - <span class="chapter"><a href="ch07.html">7. API - Application + <span class="chapter"><a href="ch08.html">8. API - Application Programming Interface</a></span> </dt> <dd> <dl> <dt> <span class="sect1"><a href= - "ch07.html#reference.api.basic">Handle selector and property + "ch08.html#reference.api.basic">Handle selector and property values</a></span> </dt> <dt> - <span class="sect1"><a href="ch07s02.html">Grouping + <span class="sect1"><a href="ch08s02.html">Grouping selectors</a></span> </dt> <dt> - <span class="sect1"><a href="ch07s03.html">Parsing data + <span class="sect1"><a href="ch08s03.html">Parsing data sources</a></span> </dt> <dt> - <span class="sect1"><a href="ch07s04.html">Output</a></span> + <span class="sect1"><a href="ch08s04.html">Output</a></span> + </dt> + <dt> + <span class="sect1"><a href="ch08s05.html">Searching for + selectors and/or properties</a></span> </dt> </dl> </dd> <dt> - <span class="chapter"><a href="ch08.html">8. Error + <span class="chapter"><a href="ch09.html">9. Error Handler</a></span> </dt> <dd> <dl> <dt> <span class="sect1"><a href= - "ch08.html#id4792686">Introduction</a></span> + "ch09.html#id4794625">Introduction</a></span> </dt> <dt> - <span class="sect1"><a href="ch08s02.html">Configuring a + <span class="sect1"><a href="ch09s02.html">Configuring a Handler</a></span> </dt> <dt> - <span class="sect1"><a href="ch08s03.html">Controlling error + <span class="sect1"><a href="ch09s03.html">Controlling error generation</a></span> </dt> <dt> - <span class="sect1"><a href="ch08s04.html">Error Context + <span class="sect1"><a href="ch09s04.html">Error Context Display</a></span> </dt> <dt> - <span class="sect1"><a href="ch08s05.html">Custom Error Message + <span class="sect1"><a href="ch09s05.html">Custom Error Message Generation</a></span> </dt> </dl> @@ -132,7 +137,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -141,24 +146,24 @@ <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"> - <a accesskey="p" href="ch06s06.html">Prev</a> + <a accesskey="p" href="ch07s03.html">Prev</a> </td> <td width="20%" align="center"> </td> <td width="40%" align="right"> - <a accesskey="n" href="ch07.html">Next</a> + <a accesskey="n" href="ch08.html">Next</a> </td> </tr> <tr> <td width="40%" align="left" valign="top"> - Display + Searching for selectors that set a property </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> - Chapter 7. API - Application Programming Interface + Chapter 8. API - Application Programming Interface </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re01.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re01.html diff -u pear/HTML_CSS/docs/TDG/re01.html:1.2 pear/HTML_CSS/docs/TDG/re01.html:1.3 --- pear/HTML_CSS/docs/TDG/re01.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re01.html Sat Dec 30 12:53:07 2006 @@ -10,9 +10,9 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07.html#id4778101" title="" /> - <link rel="prev" href="ch07.html" title= - "Chapter 7. API - Application Programming Interface" /> + <link rel="up" href="ch08.html#id4778932" title="" /> + <link rel="prev" href="ch08.html" title= + "Chapter 8. API - Application Programming Interface" /> <link rel="next" href="re02.html" title="HTML_CSS::parseFile" /> <style type="text/css"> /*<![CDATA[*/ @@ -44,7 +44,7 @@ </tr> <tr> <td width="20%" align="left"> - <a accesskey="p" href="ch07.html">Prev</a> + <a accesskey="p" href="ch08.html">Prev</a> </td> <th width="60%" align="center"></th> <td width="20%" align="right"> @@ -168,7 +168,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -177,10 +177,10 @@ <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"> - <a accesskey="p" href="ch07.html">Prev</a> + <a accesskey="p" href="ch08.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07.html#id4778101">Up</a> + <a accesskey="u" href="ch08.html#id4778932">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re02.html">Next</a> @@ -188,7 +188,7 @@ </tr> <tr> <td width="40%" align="left" valign="top"> - Chapter 7. API - Application Programming Interface + Chapter 8. API - Application Programming Interface </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re02.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re02.html diff -u pear/HTML_CSS/docs/TDG/re02.html:1.2 pear/HTML_CSS/docs/TDG/re02.html:1.3 --- pear/HTML_CSS/docs/TDG/re02.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re02.html Sat Dec 30 12:53:07 2006 @@ -10,7 +10,7 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07.html#id4778867" title="" /> + <link rel="up" href="ch08.html#id4780074" title="" /> <link rel="prev" href="re01.html" title="HTML_CSS::setXhtmlCompliance" /> <link rel="next" href="re03.html" title="HTML_CSS::setCache" /> <style type="text/css"> @@ -211,7 +211,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -223,7 +223,7 @@ <a accesskey="p" href="re01.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07.html#id4778867">Up</a> + <a accesskey="u" href="ch08.html#id4780074">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re03.html">Next</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re03.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re03.html diff -u pear/HTML_CSS/docs/TDG/re03.html:1.2 pear/HTML_CSS/docs/TDG/re03.html:1.3 --- pear/HTML_CSS/docs/TDG/re03.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re03.html Sat Dec 30 12:53:07 2006 @@ -10,7 +10,7 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07.html#id4779677" title="" /> + <link rel="up" href="ch08.html#id4780878" title="" /> <link rel="prev" href="re02.html" title="HTML_CSS::parseFile" /> <link rel="next" href="re04.html" title="HTML_CSS::setSingleLineOutput" /> <style type="text/css"> @@ -167,7 +167,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -179,7 +179,7 @@ <a accesskey="p" href="re02.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07.html#id4779677">Up</a> + <a accesskey="u" href="ch08.html#id4780878">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re04.html">Next</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re04.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re04.html diff -u pear/HTML_CSS/docs/TDG/re04.html:1.2 pear/HTML_CSS/docs/TDG/re04.html:1.3 --- pear/HTML_CSS/docs/TDG/re04.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re04.html Sat Dec 30 12:53:07 2006 @@ -10,7 +10,7 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07.html#id4779057" title="" /> + <link rel="up" href="ch08.html#id4780264" title="" /> <link rel="prev" href="re03.html" title="HTML_CSS::setCache" /> <link rel="next" href="re05.html" title="HTML_CSS::setOutputGroupsFirst" /> <style type="text/css"> @@ -162,7 +162,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -174,7 +174,7 @@ <a accesskey="p" href="re03.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07.html#id4779057">Up</a> + <a accesskey="u" href="ch08.html#id4780264">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re05.html">Next</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re05.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re05.html diff -u pear/HTML_CSS/docs/TDG/re05.html:1.2 pear/HTML_CSS/docs/TDG/re05.html:1.3 --- pear/HTML_CSS/docs/TDG/re05.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re05.html Sat Dec 30 12:53:07 2006 @@ -10,7 +10,7 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07.html#id4780024" title="" /> + <link rel="up" href="ch08.html#id4781225" title="" /> <link rel="prev" href="re04.html" title="HTML_CSS::setSingleLineOutput" /> <link rel="next" href="re06.html" title="constructor HTML_CSS::HTML_CSS" /> <style type="text/css"> @@ -170,7 +170,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -182,7 +182,7 @@ <a accesskey="p" href="re04.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07.html#id4780024">Up</a> + <a accesskey="u" href="ch08.html#id4781225">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re06.html">Next</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re06.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re06.html diff -u pear/HTML_CSS/docs/TDG/re06.html:1.2 pear/HTML_CSS/docs/TDG/re06.html:1.3 --- pear/HTML_CSS/docs/TDG/re06.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re06.html Sat Dec 30 12:53:07 2006 @@ -10,7 +10,7 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07.html#id4778093" title="" /> + <link rel="up" href="ch08.html#id4778924" title="" /> <link rel="prev" href="re05.html" title="HTML_CSS::setOutputGroupsFirst" /> <link rel="next" href="re07.html" title="HTML_CSS::getStyle" /> <style type="text/css"> @@ -239,7 +239,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -251,7 +251,7 @@ <a accesskey="p" href="re05.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07.html#id4778093">Up</a> + <a accesskey="u" href="ch08.html#id4778924">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re07.html">Next</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re07.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re07.html diff -u pear/HTML_CSS/docs/TDG/re07.html:1.2 pear/HTML_CSS/docs/TDG/re07.html:1.3 --- pear/HTML_CSS/docs/TDG/re07.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re07.html Sat Dec 30 12:53:07 2006 @@ -10,7 +10,7 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07.html#reference.api.basic" title= + <link rel="up" href="ch08.html#reference.api.basic" title= "Handle selector and property values" /> <link rel="prev" href="re06.html" title="constructor HTML_CSS::HTML_CSS" /> <link rel="next" href="re08.html" title="HTML_CSS::setStyle" /> @@ -215,7 +215,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -227,7 +227,7 @@ <a accesskey="p" href="re06.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07.html#reference.api.basic">Up</a> + <a accesskey="u" href="ch08.html#reference.api.basic">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re08.html">Next</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re08.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re08.html diff -u pear/HTML_CSS/docs/TDG/re08.html:1.2 pear/HTML_CSS/docs/TDG/re08.html:1.3 --- pear/HTML_CSS/docs/TDG/re08.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re08.html Sat Dec 30 12:53:07 2006 @@ -10,10 +10,10 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07.html#reference.api.basic" title= + <link rel="up" href="ch08.html#reference.api.basic" title= "Handle selector and property values" /> <link rel="prev" href="re07.html" title="HTML_CSS::getStyle" /> - <link rel="next" href="ch07s02.html" title="Grouping selectors" /> + <link rel="next" href="ch08s02.html" title="Grouping selectors" /> <style type="text/css"> /*<![CDATA[*/ body { @@ -50,7 +50,7 @@ Handle selector and property values </th> <td width="20%" align="right"> - <a accesskey="n" href="ch07s02.html">Next</a> + <a accesskey="n" href="ch08s02.html">Next</a> </td> </tr> </table> @@ -278,7 +278,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -290,10 +290,10 @@ <a accesskey="p" href="re07.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07.html#reference.api.basic">Up</a> + <a accesskey="u" href="ch08.html#reference.api.basic">Up</a> </td> <td width="40%" align="right"> - <a accesskey="n" href="ch07s02.html">Next</a> + <a accesskey="n" href="ch08s02.html">Next</a> </td> </tr> <tr> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re09.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re09.html diff -u pear/HTML_CSS/docs/TDG/re09.html:1.2 pear/HTML_CSS/docs/TDG/re09.html:1.3 --- pear/HTML_CSS/docs/TDG/re09.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re09.html Sat Dec 30 12:53:07 2006 @@ -10,8 +10,8 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07s02.html" title="Grouping selectors" /> - <link rel="prev" href="ch07s02.html" title="Grouping selectors" /> + <link rel="up" href="ch08s02.html" title="Grouping selectors" /> + <link rel="prev" href="ch08s02.html" title="Grouping selectors" /> <link rel="next" href="re10.html" title="HTML_CSS::unsetGroup" /> <style type="text/css"> /*<![CDATA[*/ @@ -43,7 +43,7 @@ </tr> <tr> <td width="20%" align="left"> - <a accesskey="p" href="ch07s02.html">Prev</a> + <a accesskey="p" href="ch08s02.html">Prev</a> </td> <th width="60%" align="center"> Grouping selectors @@ -214,7 +214,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -223,10 +223,10 @@ <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"> - <a accesskey="p" href="ch07s02.html">Prev</a> + <a accesskey="p" href="ch08s02.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07s02.html">Up</a> + <a accesskey="u" href="ch08s02.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re10.html">Next</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re10.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re10.html diff -u pear/HTML_CSS/docs/TDG/re10.html:1.2 pear/HTML_CSS/docs/TDG/re10.html:1.3 --- pear/HTML_CSS/docs/TDG/re10.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re10.html Sat Dec 30 12:53:07 2006 @@ -10,7 +10,7 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07s02.html" title="Grouping selectors" /> + <link rel="up" href="ch08s02.html" title="Grouping selectors" /> <link rel="prev" href="re09.html" title="HTML_CSS::createGroup" /> <link rel="next" href="re11.html" title="HTML_CSS::getGroupStyle" /> <style type="text/css"> @@ -181,7 +181,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -193,7 +193,7 @@ <a accesskey="p" href="re09.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07s02.html">Up</a> + <a accesskey="u" href="ch08s02.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re11.html">Next</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re11.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re11.html diff -u pear/HTML_CSS/docs/TDG/re11.html:1.2 pear/HTML_CSS/docs/TDG/re11.html:1.3 --- pear/HTML_CSS/docs/TDG/re11.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re11.html Sat Dec 30 12:53:07 2006 @@ -10,7 +10,7 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07s02.html" title="Grouping selectors" /> + <link rel="up" href="ch08s02.html" title="Grouping selectors" /> <link rel="prev" href="re10.html" title="HTML_CSS::unsetGroup" /> <link rel="next" href="re12.html" title="HTML_CSS::setGroupStyle" /> <style type="text/css"> @@ -214,7 +214,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -226,7 +226,7 @@ <a accesskey="p" href="re10.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07s02.html">Up</a> + <a accesskey="u" href="ch08s02.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re12.html">Next</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re12.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re12.html diff -u pear/HTML_CSS/docs/TDG/re12.html:1.2 pear/HTML_CSS/docs/TDG/re12.html:1.3 --- pear/HTML_CSS/docs/TDG/re12.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re12.html Sat Dec 30 12:53:07 2006 @@ -10,7 +10,7 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07s02.html" title="Grouping selectors" /> + <link rel="up" href="ch08s02.html" title="Grouping selectors" /> <link rel="prev" href="re11.html" title="HTML_CSS::getGroupStyle" /> <link rel="next" href="re13.html" title="HTML_CSS::addGroupSelector" /> <style type="text/css"> @@ -288,7 +288,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -300,7 +300,7 @@ <a accesskey="p" href="re11.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07s02.html">Up</a> + <a accesskey="u" href="ch08s02.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re13.html">Next</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re13.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re13.html diff -u pear/HTML_CSS/docs/TDG/re13.html:1.2 pear/HTML_CSS/docs/TDG/re13.html:1.3 --- pear/HTML_CSS/docs/TDG/re13.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re13.html Sat Dec 30 12:53:07 2006 @@ -10,7 +10,7 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07s02.html" title="Grouping selectors" /> + <link rel="up" href="ch08s02.html" title="Grouping selectors" /> <link rel="prev" href="re12.html" title="HTML_CSS::setGroupStyle" /> <link rel="next" href="re14.html" title="HTML_CSS::removeGroupSelector" /> <style type="text/css"> @@ -201,7 +201,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -213,7 +213,7 @@ <a accesskey="p" href="re12.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07s02.html">Up</a> + <a accesskey="u" href="ch08s02.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re14.html">Next</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re14.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re14.html diff -u pear/HTML_CSS/docs/TDG/re14.html:1.2 pear/HTML_CSS/docs/TDG/re14.html:1.3 --- pear/HTML_CSS/docs/TDG/re14.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re14.html Sat Dec 30 12:53:07 2006 @@ -10,7 +10,7 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07s02.html" title="Grouping selectors" /> + <link rel="up" href="ch08s02.html" title="Grouping selectors" /> <link rel="prev" href="re13.html" title="HTML_CSS::addGroupSelector" /> <link rel="next" href="re15.html" title="HTML_CSS::setSameStyle" /> <style type="text/css"> @@ -201,7 +201,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -213,7 +213,7 @@ <a accesskey="p" href="re13.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07s02.html">Up</a> + <a accesskey="u" href="ch08s02.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re15.html">Next</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re15.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re15.html diff -u pear/HTML_CSS/docs/TDG/re15.html:1.2 pear/HTML_CSS/docs/TDG/re15.html:1.3 --- pear/HTML_CSS/docs/TDG/re15.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re15.html Sat Dec 30 12:53:07 2006 @@ -10,9 +10,9 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07s02.html" title="Grouping selectors" /> + <link rel="up" href="ch08s02.html" title="Grouping selectors" /> <link rel="prev" href="re14.html" title="HTML_CSS::removeGroupSelector" /> - <link rel="next" href="ch07s03.html" title="Parsing data sources" /> + <link rel="next" href="ch08s03.html" title="Parsing data sources" /> <style type="text/css"> /*<![CDATA[*/ body { @@ -49,7 +49,7 @@ Grouping selectors </th> <td width="20%" align="right"> - <a accesskey="n" href="ch07s03.html">Next</a> + <a accesskey="n" href="ch08s03.html">Next</a> </td> </tr> </table> @@ -203,7 +203,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -215,10 +215,10 @@ <a accesskey="p" href="re14.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07s02.html">Up</a> + <a accesskey="u" href="ch08s02.html">Up</a> </td> <td width="40%" align="right"> - <a accesskey="n" href="ch07s03.html">Next</a> + <a accesskey="n" href="ch08s03.html">Next</a> </td> </tr> <tr> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re16.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re16.html diff -u pear/HTML_CSS/docs/TDG/re16.html:1.2 pear/HTML_CSS/docs/TDG/re16.html:1.3 --- pear/HTML_CSS/docs/TDG/re16.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re16.html Sat Dec 30 12:53:07 2006 @@ -10,8 +10,8 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07s03.html" title="Parsing data sources" /> - <link rel="prev" href="ch07s03.html" title="Parsing data sources" /> + <link rel="up" href="ch08s03.html" title="Parsing data sources" /> + <link rel="prev" href="ch08s03.html" title="Parsing data sources" /> <link rel="next" href="re17.html" title="HTML_CSS::parseFile" /> <style type="text/css"> /*<![CDATA[*/ @@ -43,7 +43,7 @@ </tr> <tr> <td width="20%" align="left"> - <a accesskey="p" href="ch07s03.html">Prev</a> + <a accesskey="p" href="ch08s03.html">Prev</a> </td> <th width="60%" align="center"> Parsing data sources @@ -217,7 +217,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -226,10 +226,10 @@ <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"> - <a accesskey="p" href="ch07s03.html">Prev</a> + <a accesskey="p" href="ch08s03.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07s03.html">Up</a> + <a accesskey="u" href="ch08s03.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re17.html">Next</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re17.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re17.html diff -u pear/HTML_CSS/docs/TDG/re17.html:1.2 pear/HTML_CSS/docs/TDG/re17.html:1.3 --- pear/HTML_CSS/docs/TDG/re17.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re17.html Sat Dec 30 12:53:07 2006 @@ -10,7 +10,7 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07s03.html" title="Parsing data sources" /> + <link rel="up" href="ch08s03.html" title="Parsing data sources" /> <link rel="prev" href="re16.html" title="HTML_CSS::parseString" /> <link rel="next" href="re18.html" title="HTML_CSS::parseData" /> <style type="text/css"> @@ -213,7 +213,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -225,7 +225,7 @@ <a accesskey="p" href="re16.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07s03.html">Up</a> + <a accesskey="u" href="ch08s03.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re18.html">Next</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re18.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re18.html diff -u pear/HTML_CSS/docs/TDG/re18.html:1.2 pear/HTML_CSS/docs/TDG/re18.html:1.3 --- pear/HTML_CSS/docs/TDG/re18.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re18.html Sat Dec 30 12:53:07 2006 @@ -10,9 +10,9 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07s03.html" title="Parsing data sources" /> + <link rel="up" href="ch08s03.html" title="Parsing data sources" /> <link rel="prev" href="re17.html" title="HTML_CSS::parseFile" /> - <link rel="next" href="ch07s04.html" title="Output " /> + <link rel="next" href="ch08s04.html" title="Output " /> <style type="text/css"> /*<![CDATA[*/ body { @@ -49,7 +49,7 @@ Parsing data sources </th> <td width="20%" align="right"> - <a accesskey="n" href="ch07s04.html">Next</a> + <a accesskey="n" href="ch08s04.html">Next</a> </td> </tr> </table> @@ -215,7 +215,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -227,10 +227,10 @@ <a accesskey="p" href="re17.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07s03.html">Up</a> + <a accesskey="u" href="ch08s03.html">Up</a> </td> <td width="40%" align="right"> - <a accesskey="n" href="ch07s04.html">Next</a> + <a accesskey="n" href="ch08s04.html">Next</a> </td> </tr> <tr> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re19.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re19.html diff -u pear/HTML_CSS/docs/TDG/re19.html:1.2 pear/HTML_CSS/docs/TDG/re19.html:1.3 --- pear/HTML_CSS/docs/TDG/re19.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re19.html Sat Dec 30 12:53:07 2006 @@ -10,8 +10,8 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07s04.html" title="Output " /> - <link rel="prev" href="ch07s04.html" title="Output " /> + <link rel="up" href="ch08s04.html" title="Output " /> + <link rel="prev" href="ch08s04.html" title="Output " /> <link rel="next" href="re20.html" title="HTML_CSS::toInline" /> <style type="text/css"> /*<![CDATA[*/ @@ -42,7 +42,7 @@ </tr> <tr> <td width="20%" align="left"> - <a accesskey="p" href="ch07s04.html">Prev</a> + <a accesskey="p" href="ch08s04.html">Prev</a> </td> <th width="60%" align="center"> Output @@ -126,7 +126,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -135,10 +135,10 @@ <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"> - <a accesskey="p" href="ch07s04.html">Prev</a> + <a accesskey="p" href="ch08s04.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07s04.html">Up</a> + <a accesskey="u" href="ch08s04.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re20.html">Next</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re20.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re20.html diff -u pear/HTML_CSS/docs/TDG/re20.html:1.2 pear/HTML_CSS/docs/TDG/re20.html:1.3 --- pear/HTML_CSS/docs/TDG/re20.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re20.html Sat Dec 30 12:53:07 2006 @@ -10,7 +10,7 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07s04.html" title="Output " /> + <link rel="up" href="ch08s04.html" title="Output " /> <link rel="prev" href="re19.html" title="HTML_CSS::toArray" /> <link rel="next" href="re21.html" title="HTML_CSS::toFile" /> <style type="text/css"> @@ -170,7 +170,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -182,7 +182,7 @@ <a accesskey="p" href="re19.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07s04.html">Up</a> + <a accesskey="u" href="ch08s04.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re21.html">Next</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re21.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re21.html diff -u pear/HTML_CSS/docs/TDG/re21.html:1.2 pear/HTML_CSS/docs/TDG/re21.html:1.3 --- pear/HTML_CSS/docs/TDG/re21.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re21.html Sat Dec 30 12:53:07 2006 @@ -10,7 +10,7 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07s04.html" title="Output " /> + <link rel="up" href="ch08s04.html" title="Output " /> <link rel="prev" href="re20.html" title="HTML_CSS::toInline" /> <link rel="next" href="re22.html" title="HTML_CSS::toString" /> <style type="text/css"> @@ -181,7 +181,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -193,7 +193,7 @@ <a accesskey="p" href="re20.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07s04.html">Up</a> + <a accesskey="u" href="ch08s04.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re22.html">Next</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re22.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re22.html diff -u pear/HTML_CSS/docs/TDG/re22.html:1.2 pear/HTML_CSS/docs/TDG/re22.html:1.3 --- pear/HTML_CSS/docs/TDG/re22.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re22.html Sat Dec 30 12:53:07 2006 @@ -10,7 +10,7 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07s04.html" title="Output " /> + <link rel="up" href="ch08s04.html" title="Output " /> <link rel="prev" href="re21.html" title="HTML_CSS::toFile" /> <link rel="next" href="re23.html" title="HTML_CSS::display" /> <style type="text/css"> @@ -126,7 +126,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -138,7 +138,7 @@ <a accesskey="p" href="re21.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07s04.html">Up</a> + <a accesskey="u" href="ch08s04.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re23.html">Next</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re23.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re23.html diff -u pear/HTML_CSS/docs/TDG/re23.html:1.2 pear/HTML_CSS/docs/TDG/re23.html:1.3 --- pear/HTML_CSS/docs/TDG/re23.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re23.html Sat Dec 30 12:53:07 2006 @@ -10,10 +10,10 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07s04.html" title="Output " /> + <link rel="up" href="ch08s04.html" title="Output " /> <link rel="prev" href="re22.html" title="HTML_CSS::toString" /> - <link rel="next" href="ch08.html" title= - "Chapter 8. Error Handler" /> + <link rel="next" href="ch08s05.html" title= + "Searching for selectors and/or properties" /> <style type="text/css"> /*<![CDATA[*/ body { @@ -49,7 +49,7 @@ Output </th> <td width="20%" align="right"> - <a accesskey="n" href="ch08.html">Next</a> + <a accesskey="n" href="ch08s05.html">Next</a> </td> </tr> </table> @@ -139,7 +139,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -151,10 +151,10 @@ <a accesskey="p" href="re22.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07s04.html">Up</a> + <a accesskey="u" href="ch08s04.html">Up</a> </td> <td width="40%" align="right"> - <a accesskey="n" href="ch08.html">Next</a> + <a accesskey="n" href="ch08s05.html">Next</a> </td> </tr> <tr> @@ -165,7 +165,7 @@ <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> - Chapter 8. Error Handler + Searching for selectors and/or properties </td> </tr> </table>
http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/book.css?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/book.css diff -u pear/HTML_CSS/docs/TDG/book.css:1.2 pear/HTML_CSS/docs/TDG/book.css:1.3 --- pear/HTML_CSS/docs/TDG/book.css:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/book.css Sat Dec 30 12:53:07 2006 @@ -5,7 +5,7 @@ =================================================================== =========================================================== - $Id: book.css,v 1.2 2006/12/21 19:47:03 farell Exp $ + $Id: book.css,v 1.3 2006/12/30 12:53:07 farell Exp $ author - Laurent Laville <pear@laurent-laville.org> aka farell */ @@ -45,6 +45,7 @@ .php .de1, .php .de2 {font-family: 'Courier New', Courier, monospace; font-weight: normal;} .php .imp {font-weight: bold; color: red;} .php .li1 {background: #eeeeee;} +.php .ln-xtra {background: #e0e0e0;} .php .kw1 {color: #b1b100;} .php .kw2 {color: #000000; font-weight: bold;} .php .kw3 {color: #000066;} @@ -97,6 +98,10 @@ .css .re1 {color: #6666ff;} .css .re2 {color: #3333ff;} +span.term { + color: navy; +} + code.methodname { background-color: #cfc; } @@ -110,6 +115,7 @@ padding: 0.9em; } pre.programlisting { + background-color: #EEE; padding: 0.9em; } div.table table { @@ -122,6 +128,7 @@ div.note, div.tip, div.warning, div.caution, div.important { background-color: lightyellow; border: 2px solid silver; + margin: 5px 0; } div.note td, div.tip td, div.warning td, div.caution td, div.important td { font-size: 0.9em; @@ -217,3 +224,12 @@ font-size: 12px; } +/* callout list */ +div.calloutlist td p, div.calloutlist div.orderedlist, div.calloutlist span.term { + font-size: 12px; +} + +div.variablelist div.itemizedlist { + font-size: 12px; +} + http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch01.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch01.html diff -u pear/HTML_CSS/docs/TDG/ch01.html:1.2 pear/HTML_CSS/docs/TDG/ch01.html:1.3 --- pear/HTML_CSS/docs/TDG/ch01.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch01.html Sat Dec 30 12:53:07 2006 @@ -116,7 +116,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch01s02.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch01s02.html diff -u pear/HTML_CSS/docs/TDG/ch01s02.html:1.2 pear/HTML_CSS/docs/TDG/ch01s02.html:1.3 --- pear/HTML_CSS/docs/TDG/ch01s02.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch01s02.html Sat Dec 30 12:53:07 2006 @@ -77,7 +77,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch01s03.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch01s03.html diff -u pear/HTML_CSS/docs/TDG/ch01s03.html:1.2 pear/HTML_CSS/docs/TDG/ch01s03.html:1.3 --- pear/HTML_CSS/docs/TDG/ch01s03.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch01s03.html Sat Dec 30 12:53:07 2006 @@ -122,7 +122,7 @@ </div> <div class="itemizedlist"> <ul type="disc"> - <li>Webserver IIS or Apache (recommanded 1.3.x). + <li>Webserver IIS or Apache </li> <li> <a class="external" href="http://www.php.net/" title= @@ -131,14 +131,14 @@ </li> <li> <a class="external" href="http://pear.php.net/" title= - "http://pear.php.net/">PEAR</a> 1.0 or newer (recommended: 1.4.3 - or better). + "http://pear.php.net/">PEAR</a> 1.4.3 or newer (since version + 1.0.1). </li> <li> <a class="external" href= "http://pear.php.net/package/HTML_Common" title= "http://pear.php.net/package/HTML_Common">PEAR::HTML_Common</a> - 1.2.1 or newer. + 1.2 or newer. </li> </ul> </div> @@ -150,7 +150,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch02.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch02.html diff -u pear/HTML_CSS/docs/TDG/ch02.html:1.2 pear/HTML_CSS/docs/TDG/ch02.html:1.3 --- pear/HTML_CSS/docs/TDG/ch02.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch02.html Sat Dec 30 12:53:07 2006 @@ -1,4 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> @@ -21,6 +23,7 @@ :link { color: #0000FF } :visited { color: #840084 } :active { color: #0000FF } + div.c2 {font-family: monospace;} col.c1 {text-align: left} /*]]>*/ </style> @@ -67,35 +70,40 @@ <div class="qandaset"> <dl> <dt> - 2.1. <a href="ch02.html#id4728147">General questions</a> + 2.1. <a href="ch02.html#id4729120">General questions</a> </dt> <dd> <dl> <dt> - 2.1.1. <a href="ch02.html#id4728152">What does it cost ?</a> + 2.1.1. <a href="ch02.html#id4729124">What does it cost ?</a> </dt> <dt> - 2.1.2. <a href="ch02.html#id4728181">Do you offer support ?</a> + 2.1.2. <a href="ch02.html#id4729153">Do you offer support ?</a> </dt> <dt> - 2.1.3. <a href="ch02.html#id4728202">I found a bug, what shall + 2.1.3. <a href="ch02.html#id4729170">I found a bug, what shall i do ?</a> </dt> <dt> - 2.1.4. <a href="ch02.html#id4728227">What is CSS ?</a> + 2.1.4. <a href="ch02.html#id4729195">What is CSS ?</a> </dt> <dt> - 2.1.5. <a href="ch02.html#id4728284">What is PEAR ?</a> + 2.1.5. <a href="ch02.html#id4729248">What is PEAR ?</a> </dt> </dl> </dd> <dt> - 2.2. <a href="ch02.html#id4730921">How to</a> + 2.2. <a href="ch02.html#id4728640">How to</a> </dt> <dd> <dl> <dt> - 2.2.1. <a href="ch02.html#id4730926">May i ... ?</a> + 2.2.1. <a href="ch02.html#id4728644">I want to use HTML_CSS + without PEAR. Is it possible ?</a> + </dt> + <dt> + 2.2.2. <a href="ch02.html#id4728717">I want to know property + value of a selector, but it can not exist</a> </dt> </dl> </dd> @@ -105,9 +113,8 @@ <tbody> <tr class="qandadiv"> <td align="left" valign="top" colspan="2"> - <a name="id4728147" id="id4728147"></a> <h3 class="title"> - <a name="id4728147" id="id4728147"></a>2.1. General questions + <a name="id4729120" id="id4729120"></a>2.1. General questions </h3> </td> </tr> @@ -115,30 +122,30 @@ <td align="left" valign="top" colspan="2"> <dl> <dt> - 2.1.1. <a href="ch02.html#id4728152">What does it cost + 2.1.1. <a href="ch02.html#id4729124">What does it cost ?</a> </dt> <dt> - 2.1.2. <a href="ch02.html#id4728181">Do you offer support + 2.1.2. <a href="ch02.html#id4729153">Do you offer support ?</a> </dt> <dt> - 2.1.3. <a href="ch02.html#id4728202">I found a bug, what + 2.1.3. <a href="ch02.html#id4729170">I found a bug, what shall i do ?</a> </dt> <dt> - 2.1.4. <a href="ch02.html#id4728227">What is CSS ?</a> + 2.1.4. <a href="ch02.html#id4729195">What is CSS ?</a> </dt> <dt> - 2.1.5. <a href="ch02.html#id4728284">What is PEAR ?</a> + 2.1.5. <a href="ch02.html#id4729248">What is PEAR ?</a> </dt> </dl> </td> </tr> <tr class="question"> <td align="left" valign="top"> - <a name="id4728152" id="id4728152"></a><a name="id4728154" id= - "id4728154"></a><b>2.1.1.</b> + <a name="id4729124" id="id4729124"></a><a name="id4729127" id= + "id4729127"></a><b>2.1.1.</b> </td> <td align="left" valign="top"> <p> @@ -162,8 +169,8 @@ </tr> <tr class="question"> <td align="left" valign="top"> - <a name="id4728181" id="id4728181"></a><a name="id4728183" id= - "id4728183"></a><b>2.1.2.</b> + <a name="id4729153" id="id4729153"></a><a name="id4729156" id= + "id4729156"></a><b>2.1.2.</b> </td> <td align="left" valign="top"> <p> @@ -184,8 +191,8 @@ </tr> <tr class="question"> <td align="left" valign="top"> - <a name="id4728202" id="id4728202"></a><a name="id4728204" id= - "id4728204"></a><b>2.1.3.</b> + <a name="id4729170" id="id4729170"></a><a name="id4729172" id= + "id4729172"></a><b>2.1.3.</b> </td> <td align="left" valign="top"> <p> @@ -205,8 +212,8 @@ </tr> <tr class="question"> <td align="left" valign="top"> - <a name="id4728227" id="id4728227"></a><a name="id4728230" id= - "id4728230"></a><b>2.1.4.</b> + <a name="id4729195" id="id4729195"></a><a name="id4729197" id= + "id4729197"></a><b>2.1.4.</b> </td> <td align="left" valign="top"> <p> @@ -238,8 +245,8 @@ </tr> <tr class="question"> <td align="left" valign="top"> - <a name="id4728284" id="id4728284"></a><a name="id4728286" id= - "id4728286"></a><b>2.1.5.</b> + <a name="id4729248" id="id4729248"></a><a name="id4728766" id= + "id4728766"></a><b>2.1.5.</b> </td> <td align="left" valign="top"> <p> @@ -269,9 +276,8 @@ </tr> <tr class="qandadiv"> <td align="left" valign="top" colspan="2"> - <a name="id4730921" id="id4730921"></a> <h3 class="title"> - <a name="id4730921" id="id4730921"></a>2.2. How to + <a name="id4728640" id="id4728640"></a>2.2. How to </h3> </td> </tr> @@ -279,19 +285,24 @@ <td align="left" valign="top" colspan="2"> <dl> <dt> - 2.2.1. <a href="ch02.html#id4730926">May i ... ?</a> + 2.2.1. <a href="ch02.html#id4728644">I want to use HTML_CSS + without PEAR. Is it possible ?</a> + </dt> + <dt> + 2.2.2. <a href="ch02.html#id4728717">I want to know + property value of a selector, but it can not exist</a> </dt> </dl> </td> </tr> <tr class="question"> <td align="left" valign="top"> - <a name="id4730926" id="id4730926"></a><a name="id4730928" id= - "id4730928"></a><b>2.2.1.</b> + <a name="id4728644" id="id4728644"></a><a name="id4728646" id= + "id4728646"></a><b>2.2.1.</b> </td> <td align="left" valign="top"> <p> - May i ... ? + I want to use HTML_CSS without PEAR. Is it possible ? </p> </td> </tr> @@ -299,10 +310,292 @@ <td align="left" valign="top"></td> <td align="left" valign="top"> <p> - Yes ... + Yes it is. First, you need to download package <a class= + "external" href="http://pear.php.net/package/HTML_Common" + title= + "http://pear.php.net/package/HTML_Common">PEAR::HTML_Common</a> + version 1.2 or greater. + </p> + <p> + Extract content (<code class="filename">common.php</code> + file) in same directory <code class="filename">HTML/</code> + as <code class="filename">CSS.php</code> file. + </p> + <p> + Last, you should create your own error handler, or disable + it. See chapter <a href="ch09.html" title= + "Chapter 9. Error Handler">Error Handler</a> for + details. </p> </td> </tr> + <tr class="question"> + <td align="left" valign="top"> + <a name="id4728717" id="id4728717"></a><a name="id4728719" id= + "id4728719"></a><b>2.2.2.</b> + </td> + <td align="left" valign="top"> + <p> + I want to know property value of a selector, but it can not + exist + </p> + </td> + </tr> + <tr class="answer"> + <td align="left" valign="top"></td> + <td align="left" valign="top"> + <p> + With previous release than 1.1.0 it was not possible because + <code class="methodname">HTML_CSS::getStyle()</code> require + at least an existing property, or it will return <code class= + "constant">HTML_CSS_ERROR_NO_ELEMENT_PROPERTY</code>. + </p> + <p> + With new function <code class= + "methodname">HTML_CSS::grepStyle()</code> of version 1.1.0, + it's now possible. + </p> + <div class="php c2"> + <ol> + <li class="li1"> + <div class="de1"> + <span class="kw2"><?php</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">require_once</span> <span class= + "st0">'HTML/CSS.php'</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + + </div> + </li> + <li class="li1 ln-xtra"> + <div class="de1"> + <span class="kw2">function</span> + myErrorHandler<span class="br0">(</span><span class= + "br0">)</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="br0">{</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">return</span> + PEAR_ERROR_PRINT; <span class="co1">// always + print all error messages</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="br0">}</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + + </div> + </li> + <li class="li1 ln-xtra"> + <div class="de1"> + <span class="re0">$styles</span> = <span class= + "st0">'</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="st0">h1, h2, h3, h4 { padding: 1em; + }</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="st0">.highlight p, .highlight ul { + margin-left: .5em; }</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="st0">#main p, #main ul { padding-top: 1em; + }</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="st0">'</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + + </div> + </li> + <li class="li1 ln-xtra"> + <div class="de1"> + <span class="re0">$prefs</span> = <span class= + "kw3">array</span><span class="br0">(</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="st0">'push_callback'</span> + => <span class="st0">'myErrorHandler'</span>, + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="br0">)</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="re0">$attribs</span> = <span class= + "kw2">null</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + + </div> + </li> + <li class="li1 ln-xtra"> + <div class="de1"> + <span class="re0">$css</span> = <span class= + "kw2">new</span> HTML_CSS<span class= + "br0">(</span><span class="re0">$attribs</span>, + <span class="re0">$prefs</span><span class= + "br0">)</span>; + </div> + </li> + <li class="li1 ln-xtra"> + <div class="de1"> + <span class="re0">$css</span>-><span class= + "me1">parseString</span><span class= + "br0">(</span><span class= + "re0">$styles</span><span class="br0">)</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + + </div> + </li> + <li class="li1 ln-xtra"> + <div class="de1"> + <span class="re0">$css</span>-><span class= + "me1">getStyle</span><span class= + "br0">(</span><span class="st0">'.highlight p'</span>, + <span class="st0">'color'</span><span class= + "br0">)</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + + </div> + </li> + <li class="li1 ln-xtra"> + <div class="de1"> + <span class="re0">$styles</span> = <span class= + "re0">$css</span>-><span class= + "me1">grepStyle</span><span class= + "br0">(</span><span class="st0">'/highlight/'</span>, + <span class="st0">'/^color$/'</span><span class= + "br0">)</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw3">echo</span> <span class= + "st0">'<pre>'</span>; <span class= + "kw3">var_dump</span><span class= + "br0">(</span><span class= + "re0">$styles</span><span class="br0">)</span>; + <span class="kw3">echo</span> <span class= + "st0">'</pre>'</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw2">?></span> + </div> + </li> + </ol> + </div> + <div class="variablelist"> + <dl> + <dt> + <span class="term">Lines 4-7, 15-17, 20 :</span> + </dt> + <dd> + <p> + Custom error handler is defined to allow script to + continue (print message), when <code class= + "methodname">HTML_CSS::getStyle()</code> will raise + error at line 23. + </p> + </dd> + <dt> + <span class="term">Lines 9-13, 21 :</span> + </dt> + <dd> + <p> + Stylesheet used is : + </p> + <div class="css c2"> + <ol> + <li class="li1"> + <div class="de1"> + h1, h2, h3, h4 <span class="br0">{</span> + <span class="kw1">padding</span>: 1em; + <span class="br0">}</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="re1">.highlight</span> p, + <span class="re1">.highlight</span> ul + <span class="br0">{</span> <span class= + "kw1">margin-left</span>: .5em; <span class= + "br0">}</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + #main p, #main ul <span class="br0">{</span> + <span class="kw1">padding-top</span>: 1em; + <span class="br0">}</span> + </div> + </li> + </ol> + </div> + </dd> + <dt> + <span class="term">Lines 23, 25 :</span> + </dt> + <dd> + <p> + While <code class= + "methodname">HTML_CSS::getStyle()</code> will raise + error (printed by custom error handler), line 25 will + return an empty array with no error raised. + </p> + <p> + Reason : <code class="literal">color</code> property + does not exist for <code class="literal">.highlight + p</code> class selector. + </p> + </dd> + </dl> + </div> + </td> + </tr> </tbody> </table> </div> @@ -313,7 +606,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -345,4 +638,4 @@ </table> </div> </body> -</html> \ No newline at end of file +</html> \ No newline at end of file http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch03.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch03.html diff -u pear/HTML_CSS/docs/TDG/ch03.html:1.2 pear/HTML_CSS/docs/TDG/ch03.html:1.3 --- pear/HTML_CSS/docs/TDG/ch03.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch03.html Sat Dec 30 12:53:07 2006 @@ -84,27 +84,27 @@ <dd> <dl> <dt> - <span class="sect2"><a href="ch03s02.html#id4728884">What is a + <span class="sect2"><a href="ch03s02.html#id4731327">What is a rule or "rule set" ?</a></span> </dt> <dt> - <span class="sect2"><a href="ch03s02.html#id4728680">Rule + <span class="sect2"><a href="ch03s02.html#id4731343">Rule structure</a></span> </dt> <dt> <span class="sect2"><a href= - "ch03s02.html#id4776200">Declaration block</a></span> + "ch03s02.html#id4777063">Declaration block</a></span> </dt> <dt> - <span class="sect2"><a href="ch03s02.html#id4776248">Grouping + <span class="sect2"><a href="ch03s02.html#id4777111">Grouping declarations</a></span> </dt> <dt> - <span class="sect2"><a href="ch03s02.html#id4776314">Grouping + <span class="sect2"><a href="ch03s02.html#id4777177">Grouping selectors</a></span> </dt> <dt> - <span class="sect2"><a href="ch03s02.html#id4776416">CSS + <span class="sect2"><a href="ch03s02.html#id4777279">CSS comments</a></span> </dt> </dl> @@ -143,7 +143,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch03s02.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch03s02.html diff -u pear/HTML_CSS/docs/TDG/ch03s02.html:1.2 pear/HTML_CSS/docs/TDG/ch03s02.html:1.3 --- pear/HTML_CSS/docs/TDG/ch03s02.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch03s02.html Sat Dec 30 12:53:07 2006 @@ -72,27 +72,27 @@ <div class="toc"> <dl> <dt> - <span class="sect2"><a href="ch03s02.html#id4728884">What is a rule + <span class="sect2"><a href="ch03s02.html#id4731327">What is a rule or "rule set" ?</a></span> </dt> <dt> - <span class="sect2"><a href="ch03s02.html#id4728680">Rule + <span class="sect2"><a href="ch03s02.html#id4731343">Rule structure</a></span> </dt> <dt> - <span class="sect2"><a href="ch03s02.html#id4776200">Declaration + <span class="sect2"><a href="ch03s02.html#id4777063">Declaration block</a></span> </dt> <dt> - <span class="sect2"><a href="ch03s02.html#id4776248">Grouping + <span class="sect2"><a href="ch03s02.html#id4777111">Grouping declarations</a></span> </dt> <dt> - <span class="sect2"><a href="ch03s02.html#id4776314">Grouping + <span class="sect2"><a href="ch03s02.html#id4777177">Grouping selectors</a></span> </dt> <dt> - <span class="sect2"><a href="ch03s02.html#id4776416">CSS + <span class="sect2"><a href="ch03s02.html#id4777279">CSS comments</a></span> </dt> </dl> @@ -100,7 +100,7 @@ <div class="sect2" lang="en" xml:lang="en"> <div class="titlepage"> <h3 class="title"> - <a name="id4728884" id="id4728884"></a>What is a rule or "rule set" + <a name="id4731327" id="id4731327"></a>What is a rule or "rule set" ? </h3> </div> @@ -113,11 +113,11 @@ <div class="sect2" lang="en" xml:lang="en"> <div class="titlepage"> <h3 class="title"> - <a name="id4728680" id="id4728680"></a>Rule structure + <a name="id4731343" id="id4731343"></a>Rule structure </h3> </div> <div class="figure"> - <a name="id4728688" id="id4728688"></a> + <a name="id4731351" id="id4731351"></a> <p class="title c2"> Figure 3.1. Rule structure </p> @@ -129,7 +129,7 @@ <div class="sect2" lang="en" xml:lang="en"> <div class="titlepage"> <h3 class="title"> - <a name="id4776200" id="id4776200"></a>Declaration block + <a name="id4777063" id="id4777063"></a>Declaration block </h3> </div> <p> @@ -209,7 +209,7 @@ <div class="sect2" lang="en" xml:lang="en"> <div class="titlepage"> <h3 class="title"> - <a name="id4776248" id="id4776248"></a>Grouping declarations + <a name="id4777111" id="id4777111"></a>Grouping declarations </h3> </div> <p> @@ -327,7 +327,7 @@ <div class="sect2" lang="en" xml:lang="en"> <div class="titlepage"> <h3 class="title"> - <a name="id4776314" id="id4776314"></a>Grouping selectors + <a name="id4777177" id="id4777177"></a>Grouping selectors </h3> </div> <p> @@ -499,7 +499,7 @@ <div class="sect2" lang="en" xml:lang="en"> <div class="titlepage"> <h3 class="title"> - <a name="id4776416" id="id4776416"></a>CSS comments + <a name="id4777279" id="id4777279"></a>CSS comments </h3> </div> <p> @@ -534,8 +534,8 @@ Comment here */</span> </div> </li> - <li class="li2"> - <div class="de2"> + <li class="li1"> + <div class="de1"> <span class="kw1">padding</span>: 2em; </div> </li> @@ -560,8 +560,8 @@ </div> </li> - <li class="li2"> - <div class="de2"> + <li class="li1"> + <div class="de1"> <span class="coMULTI">/*</span> </div> </li> @@ -585,7 +585,7 @@ <div class="warning c4"> <table border="0" summary="Warning"> <tr> - <td rowspan="2" align="center" valign="top" width="48px"> + <td rowspan="2" align="center" valign="top" width="48"> <img alt="[Warning]" src="img/admons/warning.png" /> </td> <th align="left"> @@ -700,8 +700,8 @@ <span class="coMULTI">*/</span> </div> </li> - <li class="li2"> - <div class="de2"> + <li class="li1"> + <div class="de1"> </div> </li> @@ -726,8 +726,8 @@ "kw1">blue</span>; </div> </li> - <li class="li2"> - <div class="de2"> + <li class="li1"> + <div class="de1"> <span class="br0">}</span> </div> </li> @@ -742,7 +742,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch04.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch04.html diff -u pear/HTML_CSS/docs/TDG/ch04.html:1.2 pear/HTML_CSS/docs/TDG/ch04.html:1.3 --- pear/HTML_CSS/docs/TDG/ch04.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch04.html Sat Dec 30 12:53:07 2006 @@ -82,11 +82,11 @@ <dd> <dl> <dt> - <span class="sect2"><a href="ch04s02.html#id4777000">Identify + <span class="sect2"><a href="ch04s02.html#id4777862">Identify the group yourself</a></span> </dt> <dt> - <span class="sect2"><a href="ch04s02.html#id4777025">Let + <span class="sect2"><a href="ch04s02.html#id4777888">Let HTML_CSS do it itself</a></span> </dt> </dl> @@ -127,7 +127,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch04s02.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch04s02.html diff -u pear/HTML_CSS/docs/TDG/ch04s02.html:1.2 pear/HTML_CSS/docs/TDG/ch04s02.html:1.3 --- pear/HTML_CSS/docs/TDG/ch04s02.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch04s02.html Sat Dec 30 12:53:07 2006 @@ -72,11 +72,11 @@ <div class="toc"> <dl> <dt> - <span class="sect2"><a href="ch04s02.html#id4777000">Identify the + <span class="sect2"><a href="ch04s02.html#id4777862">Identify the group yourself</a></span> </dt> <dt> - <span class="sect2"><a href="ch04s02.html#id4777025">Let HTML_CSS + <span class="sect2"><a href="ch04s02.html#id4777888">Let HTML_CSS do it itself</a></span> </dt> </dl> @@ -104,7 +104,7 @@ <div class="sect2" lang="en" xml:lang="en"> <div class="titlepage"> <h3 class="title"> - <a name="id4777000" id="id4777000"></a>Identify the group yourself + <a name="id4777862" id="id4777862"></a>Identify the group yourself </h3> </div> <p> @@ -190,13 +190,13 @@ <div class="sect2" lang="en" xml:lang="en"> <div class="titlepage"> <h3 class="title"> - <a name="id4777025" id="id4777025"></a>Let HTML_CSS do it itself + <a name="id4777888" id="id4777888"></a>Let HTML_CSS do it itself </h3> </div> <div class="note c3"> <table border="0" summary="Note"> <tr> - <td rowspan="2" align="center" valign="top" width="48px"> + <td rowspan="2" align="center" valign="top" width="48"> <img alt="[Note]" src="img/admons/note.png" /> </td> <th align="left"> @@ -292,7 +292,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch04s03.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch04s03.html diff -u pear/HTML_CSS/docs/TDG/ch04s03.html:1.2 pear/HTML_CSS/docs/TDG/ch04s03.html:1.3 --- pear/HTML_CSS/docs/TDG/ch04s03.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch04s03.html Sat Dec 30 12:53:07 2006 @@ -221,7 +221,7 @@ <div class="note c3"> <table border="0" summary="Note"> <tr> - <td rowspan="2" align="center" valign="top" width="48px"> + <td rowspan="2" align="center" valign="top" width="48"> <img alt="[Note]" src="img/admons/note.png" /> </td> <th align="left"> @@ -243,7 +243,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch05.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch05.html diff -u pear/HTML_CSS/docs/TDG/ch05.html:1.2 pear/HTML_CSS/docs/TDG/ch05.html:1.3 --- pear/HTML_CSS/docs/TDG/ch05.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch05.html Sat Dec 30 12:53:07 2006 @@ -117,7 +117,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch05s02.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch05s02.html diff -u pear/HTML_CSS/docs/TDG/ch05s02.html:1.2 pear/HTML_CSS/docs/TDG/ch05s02.html:1.3 --- pear/HTML_CSS/docs/TDG/ch05s02.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch05s02.html Sat Dec 30 12:53:07 2006 @@ -98,8 +98,8 @@ <span class="kw1">border</span>: 0px; </div> </li> - <li class="li2"> - <div class="de2"> + <li class="li1"> + <div class="de1"> <span class="br0">}</span> </div> </li> @@ -245,7 +245,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch05s03.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch05s03.html diff -u pear/HTML_CSS/docs/TDG/ch05s03.html:1.2 pear/HTML_CSS/docs/TDG/ch05s03.html:1.3 --- pear/HTML_CSS/docs/TDG/ch05s03.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch05s03.html Sat Dec 30 12:53:07 2006 @@ -125,7 +125,7 @@ <div class="tip c3"> <table border="0" summary="Tip"> <tr> - <td rowspan="2" align="center" valign="top" width="48px"> + <td rowspan="2" align="center" valign="top" width="48"> <img alt="[Tip]" src="img/admons/tip.png" /> </td> <th align="left"> @@ -136,9 +136,29 @@ <td align="left" valign="top"> If there are duplicate definitions into file contents, you should parse file with call : - <p> - $css->parseFile('styles.css', true); - </p>We will see next why we may find such duplicate definitions. + <div class="php c2"> + <ol> + <li class="li1"> + <div class="de1"> + <span class="kw2"><?php</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="re0">$css</span>-><span class= + "me1">parseFile</span><span class= + "br0">(</span><span class="st0">'styles.css'</span>, + <span class="kw2">true</span><span class="br0">)</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw2">?></span> + </div> + </li> + </ol> + </div>We will see next why we may find such duplicate + definitions. </td> </tr> </table> @@ -150,7 +170,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch05s04.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch05s04.html diff -u pear/HTML_CSS/docs/TDG/ch05s04.html:1.2 pear/HTML_CSS/docs/TDG/ch05s04.html:1.3 --- pear/HTML_CSS/docs/TDG/ch05s04.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch05s04.html Sat Dec 30 12:53:07 2006 @@ -198,7 +198,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch05s05.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch05s05.html diff -u pear/HTML_CSS/docs/TDG/ch05s05.html:1.2 pear/HTML_CSS/docs/TDG/ch05s05.html:1.3 --- pear/HTML_CSS/docs/TDG/ch05s05.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch05s05.html Sat Dec 30 12:53:07 2006 @@ -102,8 +102,8 @@ <span class="kw1">font-size</span>: 5mm; </div> </li> - <li class="li2"> - <div class="de2"> + <li class="li1"> + <div class="de1"> <span class="kw1">text-align</span>: <span class= "kw2">center</span>; </div> @@ -130,8 +130,8 @@ #<span class="nu0">000</span>; </div> </li> - <li class="li2"> - <div class="de2"> + <li class="li1"> + <div class="de1"> border-left<span class="re2">:1px</span> solid #<span class="nu0">000</span>; </div> @@ -159,8 +159,8 @@ <span class="kw1">height</span>: 99px; </div> </li> - <li class="li2"> - <div class="de2"> + <li class="li1"> + <div class="de1"> <span class="br0">}</span> </div> </li> @@ -486,7 +486,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch06.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch06.html diff -u pear/HTML_CSS/docs/TDG/ch06.html:1.2 pear/HTML_CSS/docs/TDG/ch06.html:1.3 --- pear/HTML_CSS/docs/TDG/ch06.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch06.html Sat Dec 30 12:53:07 2006 @@ -119,7 +119,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch06s02.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch06s02.html diff -u pear/HTML_CSS/docs/TDG/ch06s02.html:1.2 pear/HTML_CSS/docs/TDG/ch06s02.html:1.3 --- pear/HTML_CSS/docs/TDG/ch06s02.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch06s02.html Sat Dec 30 12:53:07 2006 @@ -96,8 +96,8 @@ <span class="kw1">border</span>: 0px; </div> </li> - <li class="li2"> - <div class="de2"> + <li class="li1"> + <div class="de1"> <span class="br0">}</span> </div> </li> @@ -121,8 +121,8 @@ <span class="br0">}</span> </div> </li> - <li class="li2"> - <div class="de2"> + <li class="li1"> + <div class="de1"> </div> </li> @@ -287,7 +287,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch06s03.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch06s03.html diff -u pear/HTML_CSS/docs/TDG/ch06s03.html:1.2 pear/HTML_CSS/docs/TDG/ch06s03.html:1.3 --- pear/HTML_CSS/docs/TDG/ch06s03.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch06s03.html Sat Dec 30 12:53:07 2006 @@ -74,7 +74,7 @@ <div class="warning c2"> <table border="0" summary="Warning"> <tr> - <td rowspan="2" align="center" valign="top" width="48px"> + <td rowspan="2" align="center" valign="top" width="48"> <img alt="[Warning]" src="img/admons/warning.png" /> </td> <th align="left"> @@ -178,7 +178,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch06s04.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch06s04.html diff -u pear/HTML_CSS/docs/TDG/ch06s04.html:1.2 pear/HTML_CSS/docs/TDG/ch06s04.html:1.3 --- pear/HTML_CSS/docs/TDG/ch06s04.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch06s04.html Sat Dec 30 12:53:07 2006 @@ -74,7 +74,7 @@ <div class="warning c2"> <table border="0" summary="Warning"> <tr> - <td rowspan="2" align="center" valign="top" width="48px"> + <td rowspan="2" align="center" valign="top" width="48"> <img alt="[Warning]" src="img/admons/warning.png" /> </td> <th align="left"> @@ -175,7 +175,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch06s05.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch06s05.html diff -u pear/HTML_CSS/docs/TDG/ch06s05.html:1.2 pear/HTML_CSS/docs/TDG/ch06s05.html:1.3 --- pear/HTML_CSS/docs/TDG/ch06s05.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch06s05.html Sat Dec 30 12:53:07 2006 @@ -183,7 +183,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch06s06.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch06s06.html diff -u pear/HTML_CSS/docs/TDG/ch06s06.html:1.2 pear/HTML_CSS/docs/TDG/ch06s06.html:1.3 --- pear/HTML_CSS/docs/TDG/ch06s06.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch06s06.html Sat Dec 30 12:53:07 2006 @@ -12,8 +12,8 @@ <link rel="start" href="index.html" title="HTML_CSS Manual" /> <link rel="up" href="ch06.html" title="Chapter 6. Output" /> <link rel="prev" href="ch06s05.html" title="To String" /> - <link rel="next" href="pt03.html" title= - "Part III. Reference Guide" /> + <link rel="next" href="ch07.html" title= + "Chapter 7. Searching for selectors and properties " /> <style type="text/css"> /*<![CDATA[*/ body { @@ -51,7 +51,7 @@ Chapter 6. Output </th> <td width="20%" align="right"> - <a accesskey="n" href="pt03.html">Next</a> + <a accesskey="n" href="ch07.html">Next</a> </td> </tr> </table> @@ -107,7 +107,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -122,7 +122,7 @@ <a accesskey="u" href="ch06.html">Up</a> </td> <td width="40%" align="right"> - <a accesskey="n" href="pt03.html">Next</a> + <a accesskey="n" href="ch07.html">Next</a> </td> </tr> <tr> @@ -133,7 +133,7 @@ <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> - Part III. Reference Guide + Chapter 7. Searching for selectors and properties </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch07.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch07.html diff -u pear/HTML_CSS/docs/TDG/ch07.html:1.2 pear/HTML_CSS/docs/TDG/ch07.html:1.3 --- pear/HTML_CSS/docs/TDG/ch07.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch07.html Sat Dec 30 12:53:07 2006 @@ -5,16 +5,16 @@ <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title> - Chapter 7. API - Application Programming Interface + Chapter 7. Searching for selectors and properties </title> <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="pt03.html" title= - "Part III. Reference Guide" /> - <link rel="prev" href="pt03.html" title= - "Part III. Reference Guide" /> - <link rel="next" href="re01.html" title="HTML_CSS::setXhtmlCompliance" /> + <link rel="up" href="pt02.html" title= + "Part II. Getting Started" /> + <link rel="prev" href="ch06s06.html" title="Display" /> + <link rel="next" href="ch07s02.html" title= + "Searching for a group of selectors " /> <style type="text/css"> /*<![CDATA[*/ body { @@ -41,18 +41,18 @@ <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center"> - Chapter 7. API - Application Programming Interface + Chapter 7. Searching for selectors and properties </th> </tr> <tr> <td width="20%" align="left"> - <a accesskey="p" href="pt03.html">Prev</a> + <a accesskey="p" href="ch06s06.html">Prev</a> </td> <th width="60%" align="center"> - Part III. Reference Guide + Part II. Getting Started </th> <td width="20%" align="right"> - <a accesskey="n" href="re01.html">Next</a> + <a accesskey="n" href="ch07s02.html">Next</a> </td> </tr> </table> @@ -64,9 +64,9 @@ <div class="chapter" lang="en" xml:lang="en"> <div class="titlepage"> <h2 class="title"> - <a name="reference.api" id= - "reference.api"></a>Chapter 7. API - Application - Programming Interface + <a name="developers.find" id= + "developers.find"></a>Chapter 7. Searching for selectors + and properties </h2> </div> <div class="toc"> @@ -75,82 +75,32 @@ </p> <dl> <dt> - <span class="sect1"><a href="ch07.html#reference.api.basic">Handle - selector and property values</a></span> + <span class="sect1"><a href="ch07.html#developers.find.purpose">In + brief</a></span> </dt> <dt> - <span class="sect1"><a href="ch07s02.html">Grouping + <span class="sect1"><a href="ch07s02.html">Searching for a group of selectors</a></span> </dt> <dt> - <span class="sect1"><a href="ch07s03.html">Parsing data - sources</a></span> - </dt> - <dt> - <span class="sect1"><a href="ch07s04.html">Output</a></span> + <span class="sect1"><a href="ch07s03.html">Searching for selectors + that set a property</a></span> </dt> </dl> </div> - <p> - With the class constructor, you have ability to set many options : - </p> - <div class="itemizedlist"> - <ul type="disc"> - <li> - <span class="bold"><strong>xhtml</strong></span> option defines - whether element selectors should be automatically lowercased. - </li> - <li> - <span class="bold"><strong>tab</strong></span> option defines the - string used to indent CSS text. See also: <code class= - "methodname">HTML_Common::setTab()</code>. - </li> - <li> - <span class="bold"><strong>filename</strong></span> option allow to - parse an external css file. - </li> - <li> - <span class="bold"><strong>cache</strong></span> option controls - caching of the page. - </li> - <li> - <span class="bold"><strong>online</strong></span> option defines - whether to output all properties on one line. - </li> - <li> - <span class="bold"><strong>groupsfirst</strong></span> option - determines whether to output groups before elements. - </li> - <li> - <span class="bold"><strong>allowduplicates</strong></span> option - allow to have duplicate rules in selector. - </li> - </ul> - </div> <div class="sect1" lang="en" xml:lang="en"> <div class="titlepage"> <h2 class="title c2"> - <a name="reference.api.basic" id="reference.api.basic"></a>Handle - selector and property values + <a name="developers.find.purpose" id= + "developers.find.purpose"></a>In brief </h2> </div> - <div class="toc"> - <dl> - <dt> - <span class="refentrytitle"><a href="re07.html"><code class= - "function">HTML_CSS::getStyle</code></a></span> <span class= - "refpurpose">- Retrieves the value of a CSS property</span> - </dt> - <dt> - <span class="refentrytitle"><a href="re08.html"><code class= - "function">HTML_CSS::setStyle</code></a></span> <span class= - "refpurpose">- Sets or adds a CSS definition</span> - </dt> - </dl> - </div> <p> - Read and write single selector or even descendant selector is made - easy with : + One of features of HTML_CSS that was still missing to version less or + equal than 1.0.1 is ability to detect if a selector (or group of + selectors), and/or a property (or group of properties) was already + defined. This is now possible with method : <code class= + "methodname">HTML_CSS::grepStyle()</code> </p> </div> </div> @@ -160,7 +110,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -169,24 +119,24 @@ <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"> - <a accesskey="p" href="pt03.html">Prev</a> + <a accesskey="p" href="ch06s06.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="pt03.html">Up</a> + <a accesskey="u" href="pt02.html">Up</a> </td> <td width="40%" align="right"> - <a accesskey="n" href="re01.html">Next</a> + <a accesskey="n" href="ch07s02.html">Next</a> </td> </tr> <tr> <td width="40%" align="left" valign="top"> - Part III. Reference Guide + Display </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> - <code class="function">HTML_CSS::setXhtmlCompliance</code> + Searching for a group of selectors </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch07s02.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch07s02.html diff -u pear/HTML_CSS/docs/TDG/ch07s02.html:1.2 pear/HTML_CSS/docs/TDG/ch07s02.html:1.3 --- pear/HTML_CSS/docs/TDG/ch07s02.html:1.2 Thu Dec 21 19:47:03 2006 +++ pear/HTML_CSS/docs/TDG/ch07s02.html Sat Dec 30 12:53:07 2006 @@ -5,15 +5,17 @@ <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title> - Grouping selectors + Searching for a group of selectors </title> <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> <link rel="up" href="ch07.html" title= - "Chapter 7. API - Application Programming Interface" /> - <link rel="prev" href="re08.html" title="HTML_CSS::setStyle" /> - <link rel="next" href="re09.html" title="HTML_CSS::createGroup" /> + "Chapter 7. Searching for selectors and properties " /> + <link rel="prev" href="ch07.html" title= + "Chapter 7. Searching for selectors and properties " /> + <link rel="next" href="ch07s03.html" title= + "Searching for selectors that set a property " /> <style type="text/css"> /*<![CDATA[*/ body { @@ -23,6 +25,7 @@ :link { color: #0000FF } :visited { color: #840084 } :active { color: #0000FF } + div.c2 {font-family: monospace;} h2.c1 {clear: both} /*]]>*/ </style> @@ -39,18 +42,18 @@ <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center"> - Grouping selectors + Searching for a group of selectors </th> </tr> <tr> <td width="20%" align="left"> - <a accesskey="p" href="re08.html">Prev</a> + <a accesskey="p" href="ch07.html">Prev</a> </td> <th width="60%" align="center"> - Chapter 7. API - Application Programming Interface + Chapter 7. Searching for selectors and properties </th> <td width="20%" align="right"> - <a accesskey="n" href="re09.html">Next</a> + <a accesskey="n" href="ch07s03.html">Next</a> </td> </tr> </table> @@ -62,59 +65,353 @@ <div class="sect1" lang="en" xml:lang="en"> <div class="titlepage"> <h2 class="title c1"> - <a name="reference.api.group" id="reference.api.group"></a>Grouping - selectors + <a name="developers.find.selectors" id= + "developers.find.selectors"></a>Searching for a group of selectors </h2> </div> - <div class="toc"> - <dl> - <dt> - <span class="refentrytitle"><a href="re09.html"><code class= - "function">HTML_CSS::createGroup</code></a></span> <span class= - "refpurpose">- Creates a new CSS definition group. Returns an - integer identifying the group.</span> - </dt> - <dt> - <span class="refentrytitle"><a href="re10.html"><code class= - "function">HTML_CSS::unsetGroup</code></a></span> <span class= - "refpurpose">- Sets or adds a CSS definition for a CSS definition - group</span> - </dt> - <dt> - <span class="refentrytitle"><a href="re11.html"><code class= - "function">HTML_CSS::getGroupStyle</code></a></span> <span class= - "refpurpose">- Returns a CSS definition for a CSS definition - group</span> - </dt> - <dt> - <span class="refentrytitle"><a href="re12.html"><code class= - "function">HTML_CSS::setGroupStyle</code></a></span> <span class= - "refpurpose">- Sets or adds a CSS definition for a CSS definition - group</span> - </dt> - <dt> - <span class="refentrytitle"><a href="re13.html"><code class= - "function">HTML_CSS::addGroupSelector</code></a></span> - <span class="refpurpose">- Adds a selector to a CSS definition - group.</span> - </dt> - <dt> - <span class="refentrytitle"><a href="re14.html"><code class= - "function">HTML_CSS::removeGroupSelector</code></a></span> - <span class="refpurpose">- Removes a selector from a group.</span> - </dt> - <dt> - <span class="refentrytitle"><a href="re15.html"><code class= - "function">HTML_CSS::setSameStyle</code></a></span> <span class= - "refpurpose">- Sets or changes the properties of new selectors to - the values of an existing selector</span> - </dt> - </dl> + <p> + Let creates these definitions into <code class= + "filename">progress2.css</code> file : + </p> + <div class="css c2"> + <ol> + <li class="li1"> + <div class="de1"> + #PB1.cellPB1I, #PB1<span class="re1">.cellPB1A</span> + <span class="br0">{</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">width</span>: 15px; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">height</span>: 20px; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">font-family</span>: Courier, Verdana; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">font-size</span>: 8px; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">float</span>: <span class= + "kw1">left</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="br0">}</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + + </div> + </li> + <li class="li1"> + <div class="de1"> + #PB1<span class="re1">.progressBorderPB1</span> <span class= + "br0">{</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">width</span>: 172px; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">height</span>: 24px; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">border-width</span>: 1px; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">border-style</span>: <span class= + "kw2">solid</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">border-color</span>: #<span class= + "nu0">404040</span> #dfdfdf #dfdfdf #<span class= + "nu0">404040</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">background-color</span>: #CCCCCC; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="br0">}</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="re1">.progressPercentLabelpct1PB1</span> + <span class="br0">{</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">width</span>: 50px; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">text-align</span>: <span class= + "kw1">right</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">background-color</span>: <span class= + "kw2">transparent</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">font-size</span>: 11px; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">font-family</span>: Verdana, Tahoma, + Arial; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">font-weight</span>: <span class= + "kw2">normal</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">color</span>: #<span class= + "nu0">000000</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="br0">}</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="re1">.progressTextLabeltxt1PB1</span> <span class= + "br0">{</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">text-align</span>: <span class= + "kw1">left</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">background-color</span>: <span class= + "kw2">transparent</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">font-size</span>: 11px; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">font-family</span>: Verdana, Tahoma, + Arial; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">font-weight</span>: <span class= + "kw2">normal</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">color</span>: #<span class= + "nu0">000000</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="br0">}</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="re1">.cellPB1I</span> <span class="br0">{</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">background-color</span>: #CCCCCC; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="br0">}</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="re1">.cellPB1A</span> <span class="br0">{</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">background-color</span>: #0033FF; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="br0">}</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + + </div> + </li> + <li class="li1"> + <div class="de1"> + body <span class="br0">{</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">background-color</span>: #E0E0E0; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">color</span>: #<span class= + "nu0">000000</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">font-family</span>: Verdana, + Arial; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="br0">}</span> + </div> + </li> + </ol> </div> <p> - The most advanced/complex functions are those which handle group of - selectors + Very easy with such script to find where is declared <code class= + "literal">#PB1</code> class selectors (names like). </p> + <div class="php c2"> + <ol> + <li class="li1"> + <div class="de1"> + <span class="kw2"><?php</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">require_once</span> <span class= + "st0">'HTML/CSS.php'</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="re0">$css</span> = <span class="kw2">new</span> + HTML_CSS<span class="br0">(</span><span class="br0">)</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="re0">$css</span>-><span class= + "me1">parseFile</span><span class="br0">(</span><span class= + "st0">'progress2.css'</span><span class="br0">)</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="co1">// find all selectors beginning with + #PB1</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="re0">$styles</span> = <span class= + "re0">$css</span>-><span class= + "me1">grepStyle</span><span class="br0">(</span><span class= + "st0">'/^#PB1/'</span><span class="br0">)</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw3">echo</span> <span class= + "st0">'<pre>'</span>; <span class= + "kw3">var_dump</span><span class="br0">(</span><span class= + "re0">$styles</span><span class="br0">)</span>; <span class= + "kw3">echo</span> <span class="st0">'</pre>'</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw2">?></span> + </div> + </li> + </ol> + </div> </div> <table class="htmlcssFooter"> <tr> @@ -122,7 +419,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -131,24 +428,24 @@ <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"> - <a accesskey="p" href="re08.html">Prev</a> + <a accesskey="p" href="ch07.html">Prev</a> </td> <td width="20%" align="center"> <a accesskey="u" href="ch07.html">Up</a> </td> <td width="40%" align="right"> - <a accesskey="n" href="re09.html">Next</a> + <a accesskey="n" href="ch07s03.html">Next</a> </td> </tr> <tr> <td width="40%" align="left" valign="top"> - <code class="function">HTML_CSS::setStyle</code> + Chapter 7. Searching for selectors and properties </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> - <code class="function">HTML_CSS::createGroup</code> + Searching for selectors that set a property </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch07s03.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch07s03.html diff -u pear/HTML_CSS/docs/TDG/ch07s03.html:1.2 pear/HTML_CSS/docs/TDG/ch07s03.html:1.3 --- pear/HTML_CSS/docs/TDG/ch07s03.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/ch07s03.html Sat Dec 30 12:53:07 2006 @@ -5,15 +5,17 @@ <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title> - Parsing data sources + Searching for selectors that set a property </title> <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> <link rel="up" href="ch07.html" title= - "Chapter 7. API - Application Programming Interface" /> - <link rel="prev" href="re15.html" title="HTML_CSS::setSameStyle" /> - <link rel="next" href="re16.html" title="HTML_CSS::parseString" /> + "Chapter 7. Searching for selectors and properties " /> + <link rel="prev" href="ch07s02.html" title= + "Searching for a group of selectors " /> + <link rel="next" href="pt03.html" title= + "Part III. Reference Guide" /> <style type="text/css"> /*<![CDATA[*/ body { @@ -23,6 +25,7 @@ :link { color: #0000FF } :visited { color: #840084 } :active { color: #0000FF } + div.c2 {font-family: monospace;} h2.c1 {clear: both} /*]]>*/ </style> @@ -39,18 +42,18 @@ <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center"> - Parsing data sources + Searching for selectors that set a property </th> </tr> <tr> <td width="20%" align="left"> - <a accesskey="p" href="re15.html">Prev</a> + <a accesskey="p" href="ch07s02.html">Prev</a> </td> <th width="60%" align="center"> - Chapter 7. API - Application Programming Interface + Chapter 7. Searching for selectors and properties </th> <td width="20%" align="right"> - <a accesskey="n" href="re16.html">Next</a> + <a accesskey="n" href="pt03.html">Next</a> </td> </tr> </table> @@ -62,35 +65,86 @@ <div class="sect1" lang="en" xml:lang="en"> <div class="titlepage"> <h2 class="title c1"> - <a name="reference.api.parse" id="reference.api.parse"></a>Parsing - data sources + <a name="developers.find.properties" id= + "developers.find.properties"></a>Searching for selectors that set a + property </h2> </div> - <div class="toc"> - <dl> - <dt> - <span class="refentrytitle"><a href="re16.html"><code class= - "function">HTML_CSS::parseString</code></a></span> <span class= - "refpurpose">- Parse a textstring that contains css - information</span> - </dt> - <dt> - <span class="refentrytitle"><a href="re17.html"><code class= - "function">HTML_CSS::parseFile</code></a></span> <span class= - "refpurpose">- Parse a file that contains CSS information</span> - </dt> - <dt> - <span class="refentrytitle"><a href="re18.html"><code class= - "function">HTML_CSS::parseData</code></a></span> <span class= - "refpurpose">- Parse data sources, file(s) or string(s), that - contains CSS information</span> - </dt> - </dl> - </div> <p> - Handle data sources are so easy than just one call of these three - methods : + We still used the CSS definitions of previous example, identified by + <code class="filename">progress2.css</code> file : + </p> + <p> + Very easy with such script to find where is declared <code class= + "literal">color</code> property. </p> + <div class="php c2"> + <ol> + <li class="li1"> + <div class="de1"> + <span class="kw2"><?php</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw1">require_once</span> <span class= + "st0">'HTML/CSS.php'</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="re0">$css</span> = <span class="kw2">new</span> + HTML_CSS<span class="br0">(</span><span class="br0">)</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="re0">$css</span>-><span class= + "me1">parseFile</span><span class="br0">(</span><span class= + "st0">'progress2.css'</span><span class="br0">)</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="co1">// find all selectors that set the color + property</span> + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="re0">$styles</span> = <span class= + "re0">$css</span>-><span class= + "me1">grepStyle</span><span class="br0">(</span><span class= + "st0">'/./'</span>, <span class= + "st0">'/^color$/'</span><span class="br0">)</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw3">echo</span> <span class= + "st0">'<pre>'</span>; <span class= + "kw3">var_dump</span><span class="br0">(</span><span class= + "re0">$styles</span><span class="br0">)</span>; <span class= + "kw3">echo</span> <span class="st0">'</pre>'</span>; + </div> + </li> + <li class="li1"> + <div class="de1"> + <span class="kw2">?></span> + </div> + </li> + </ol> + </div> </div> <table class="htmlcssFooter"> <tr> @@ -98,7 +152,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -107,24 +161,24 @@ <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"> - <a accesskey="p" href="re15.html">Prev</a> + <a accesskey="p" href="ch07s02.html">Prev</a> </td> <td width="20%" align="center"> <a accesskey="u" href="ch07.html">Up</a> </td> <td width="40%" align="right"> - <a accesskey="n" href="re16.html">Next</a> + <a accesskey="n" href="pt03.html">Next</a> </td> </tr> <tr> <td width="40%" align="left" valign="top"> - <code class="function">HTML_CSS::setSameStyle</code> + Searching for a group of selectors </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> - <code class="function">HTML_CSS::parseString</code> + Part III. Reference Guide </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch08.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch08.html diff -u pear/HTML_CSS/docs/TDG/ch08.html:1.2 pear/HTML_CSS/docs/TDG/ch08.html:1.3 --- pear/HTML_CSS/docs/TDG/ch08.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/ch08.html Sat Dec 30 12:53:07 2006 @@ -5,15 +5,16 @@ <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title> - Chapter 8. Error Handler + Chapter 8. API - Application Programming Interface </title> <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> <link rel="up" href="pt03.html" title= "Part III. Reference Guide" /> - <link rel="prev" href="ch07s04.html" title="Output " /> - <link rel="next" href="ch08s02.html" title="Configuring a Handler " /> + <link rel="prev" href="pt03.html" title= + "Part III. Reference Guide" /> + <link rel="next" href="re01.html" title="HTML_CSS::setXhtmlCompliance" /> <style type="text/css"> /*<![CDATA[*/ body { @@ -23,8 +24,6 @@ :link { color: #0000FF } :visited { color: #840084 } :active { color: #0000FF } - div.c4 {font-family: monospace;} - div.c3 {margin-left: 0.5in; margin-right: 0.5in;} h2.c2 {clear: both} p.c1 {font-weight: bold} /*]]>*/ @@ -42,18 +41,18 @@ <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center"> - Chapter 8. Error Handler + Chapter 8. API - Application Programming Interface </th> </tr> <tr> <td width="20%" align="left"> - <a accesskey="p" href="ch07s04.html">Prev</a> + <a accesskey="p" href="pt03.html">Prev</a> </td> <th width="60%" align="center"> Part III. Reference Guide </th> <td width="20%" align="right"> - <a accesskey="n" href="ch08s02.html">Next</a> + <a accesskey="n" href="re01.html">Next</a> </td> </tr> </table> @@ -65,8 +64,9 @@ <div class="chapter" lang="en" xml:lang="en"> <div class="titlepage"> <h2 class="title"> - <a name="reference.errorhandler" id= - "reference.errorhandler"></a>Chapter 8. Error Handler + <a name="reference.api" id= + "reference.api"></a>Chapter 8. API - Application + Programming Interface </h2> </div> <div class="toc"> @@ -75,237 +75,87 @@ </p> <dl> <dt> - <span class="sect1"><a href= - "ch08.html#id4792686">Introduction</a></span> + <span class="sect1"><a href="ch08.html#reference.api.basic">Handle + selector and property values</a></span> </dt> <dt> - <span class="sect1"><a href="ch08s02.html">Configuring a - Handler</a></span> + <span class="sect1"><a href="ch08s02.html">Grouping + selectors</a></span> </dt> <dt> - <span class="sect1"><a href="ch08s03.html">Controlling error - generation</a></span> + <span class="sect1"><a href="ch08s03.html">Parsing data + sources</a></span> </dt> <dt> - <span class="sect1"><a href="ch08s04.html">Error Context - Display</a></span> + <span class="sect1"><a href="ch08s04.html">Output</a></span> </dt> <dt> - <span class="sect1"><a href="ch08s05.html">Custom Error Message - Generation</a></span> + <span class="sect1"><a href="ch08s05.html">Searching for selectors + and/or properties</a></span> </dt> - <dd> - <dl> - <dt> - <span class="sect2"><a href="ch08s05.html#id4794725">Option: - message_callback</a></span> - </dt> - <dt> - <span class="sect2"><a href="ch08s05.html#id4794759">Option: - context_callback</a></span> - </dt> - </dl> - </dd> </dl> </div> + <p> + With the class constructor, you have ability to set many options : + </p> + <div class="itemizedlist"> + <ul type="disc"> + <li> + <span class="bold"><strong>xhtml</strong></span> option defines + whether element selectors should be automatically lowercased. + </li> + <li> + <span class="bold"><strong>tab</strong></span> option defines the + string used to indent CSS text. See also: <code class= + "methodname">HTML_Common::setTab()</code>. + </li> + <li> + <span class="bold"><strong>filename</strong></span> option allow to + parse an external css file. + </li> + <li> + <span class="bold"><strong>cache</strong></span> option controls + caching of the page. + </li> + <li> + <span class="bold"><strong>online</strong></span> option defines + whether to output all properties on one line. + </li> + <li> + <span class="bold"><strong>groupsfirst</strong></span> option + determines whether to output groups before elements. + </li> + <li> + <span class="bold"><strong>allowduplicates</strong></span> option + allow to have duplicate rules in selector. + </li> + </ul> + </div> <div class="sect1" lang="en" xml:lang="en"> <div class="titlepage"> <h2 class="title c2"> - <a name="id4792686" id="id4792686"></a>Introduction + <a name="reference.api.basic" id="reference.api.basic"></a>Handle + selector and property values </h2> </div> - <p> - The HTML_CSS package is implemented with a flexible error handler - plug-in system. You may use any error handler that you want. Using - <code class="classname">PEAR_Error</code> object (default), but also - the <code class="classname">PEAR_ErrorStack</code> package, or any - other error handler you might want to plug in. - </p> - <p> - Without any configuration, each HTML_CSS API error (basic or - exception) will raise a <code class="classname">HTML_CSS_Error</code> - object that will be return to call script (user script). - </p> - <div class="tip c3"> - <table border="0" summary="Tip"> - <tr> - <td rowspan="2" align="center" valign="top" width="48px"> - <img alt="[Tip]" src="img/admons/tip.png" /> - </td> - <th align="left"> - Tip - </th> - </tr> - <tr> - <td align="left" valign="top"> - Easy to distinct basic PEAR_Error from other PEAR packages to - HTML_CSS errors, even if there is a better and more robust - solution: <code class="methodname">HTML_CSS::isError()</code>. - But also provide a unique way to retrieve the level of error - (warning, error, exception) with the <code class= - "methodname">HTML_CSS_Error::getLevel()</code> method. - </td> - </tr> - </table> - </div> - <p> - As usual you can use the PEAR error API as well. - </p> - <div class="php c4"> - <ol> - <li class="li1"> - <div class="de1"> - <span class="kw2"><?php</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="kw1">require_once</span> <span class= - "st0">'HTML/CSS.php'</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="re0">$css</span> = <span class="kw2">new</span> - HTML_CSS<span class="br0">(</span><span class="br0">)</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="re0">$result</span> = <span class= - "re0">$css</span>-><span class= - "me1">setStyle</span><span class="br0">(</span><span class= - "st0">'div'</span>, <span class="st0">'color'</span>, - <span class="nu0">5</span><span class="br0">)</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="kw1">if</span> <span class= - "br0">(</span>PEAR::<span class= - "me2">isError</span><span class="br0">(</span><span class= - "re0">$result</span><span class="br0">)</span><span class= - "br0">)</span> <span class="br0">{</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="co1">// do something when an error - is raised</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="br0">}</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="kw2">?></span> - </div> - </li> - </ol> + <div class="toc"> + <dl> + <dt> + <span class="refentrytitle"><a href="re07.html"><code class= + "function">HTML_CSS::getStyle</code></a></span> <span class= + "refpurpose">- Retrieves the value of a CSS property</span> + </dt> + <dt> + <span class="refentrytitle"><a href="re08.html"><code class= + "function">HTML_CSS::setStyle</code></a></span> <span class= + "refpurpose">- Sets or adds a CSS definition</span> + </dt> + </dl> </div> <p> - and output to screen will give something like : + Read and write single selector or even descendant selector is made + easy with : </p> - <div class="informalexample screenco"> - <pre class="screen"> -Exception<a name="error.1.level" id="error.1.level"></a><img src= -"img/callouts/1.gif" alt="1" border= -"0" />: invalid input, parameter #3 "$value" was expecting "string", -instead got "integer"<a name="error.1.message" id= -"error.1.message"></a><img src="img/callouts/2.gif" alt="2" border= -"0" /> in html_css->setstyle (file [path_to]\[filename] on line 6)<a name= -"error.1.context" id="error.1.context"></a><img src="img/callouts/3.gif" alt= -"3" border="0" /> - -</pre> - <div class="calloutlist"> - <table border="0" summary="Callout list"> - <tr> - <td width="5%" valign="top" align="left"> - <a href="#error.1.level"><img src="img/callouts/1.gif" alt= - "1" border="0" /></a> - </td> - <td valign="top" align="left"> - <p> - error level - </p> - </td> - </tr> - <tr> - <td width="5%" valign="top" align="left"> - <a href="#error.1.message"><img src="img/callouts/2.gif" alt= - "2" border="0" /></a> - </td> - <td valign="top" align="left"> - <p> - message body with context informations - </p> - </td> - </tr> - <tr> - <td width="5%" valign="top" align="left"> - <a href="#error.1.context"><img src="img/callouts/3.gif" alt= - "3" border="0" /></a> - </td> - <td valign="top" align="left"> - <p> - call context - </p> - </td> - </tr> - </table> - </div> - </div> - <p> - Perhaps this standard behavior is not what you want. Don't worry, you - can change everything : - </p> - <div class="itemizedlist"> - <ul type="disc"> - <li>display or ignore the error - </li> - <li>display or hide part of message (error level, body, context) - </li> - </ul> - </div> - <div class="important c3"> - <table border="0" summary="Important"> - <tr> - <td rowspan="2" align="center" valign="top" width="48px"> - <img alt="[Important]" src="img/admons/important.png" /> - </td> - <th align="left"> - Important - </th> - </tr> - <tr> - <td align="left" valign="top"> - HTML_CSS obey at <a class="external" href= - "http://www.php.net/manual/en/ref.errorfunc.php#ini.display-errors" - title= - "http://www.php.net/manual/en/ref.errorfunc.php#ini.display-errors"> - display_errors</a> and <a class="external" href= - "http://www.php.net/manual/en/ref.errorfunc.php#ini.log-errors" - title= - "http://www.php.net/manual/en/ref.errorfunc.php#ini.log-errors"> - log_errors</a> protocol - </td> - </tr> - </table> - </div> </div> </div> <table class="htmlcssFooter"> @@ -314,7 +164,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -323,24 +173,24 @@ <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"> - <a accesskey="p" href="ch07s04.html">Prev</a> + <a accesskey="p" href="pt03.html">Prev</a> </td> <td width="20%" align="center"> <a accesskey="u" href="pt03.html">Up</a> </td> <td width="40%" align="right"> - <a accesskey="n" href="ch08s02.html">Next</a> + <a accesskey="n" href="re01.html">Next</a> </td> </tr> <tr> <td width="40%" align="left" valign="top"> - Output + Part III. Reference Guide </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> - Configuring a Handler + <code class="function">HTML_CSS::setXhtmlCompliance</code> </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch08s02.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch08s02.html diff -u pear/HTML_CSS/docs/TDG/ch08s02.html:1.2 pear/HTML_CSS/docs/TDG/ch08s02.html:1.3 --- pear/HTML_CSS/docs/TDG/ch08s02.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/ch08s02.html Sat Dec 30 12:53:07 2006 @@ -5,17 +5,15 @@ <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title> - Configuring a Handler + Grouping selectors </title> <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> <link rel="up" href="ch08.html" title= - "Chapter 8. Error Handler" /> - <link rel="prev" href="ch08.html" title= - "Chapter 8. Error Handler" /> - <link rel="next" href="ch08s03.html" title= - "Controlling error generation " /> + "Chapter 8. API - Application Programming Interface" /> + <link rel="prev" href="re08.html" title="HTML_CSS::setStyle" /> + <link rel="next" href="re09.html" title="HTML_CSS::createGroup" /> <style type="text/css"> /*<![CDATA[*/ body { @@ -25,8 +23,6 @@ :link { color: #0000FF } :visited { color: #840084 } :active { color: #0000FF } - p.c3 {font-weight: bold} - div.c2 {font-family: monospace;} h2.c1 {clear: both} /*]]>*/ </style> @@ -43,18 +39,18 @@ <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center"> - Configuring a Handler + Grouping selectors </th> </tr> <tr> <td width="20%" align="left"> - <a accesskey="p" href="ch08.html">Prev</a> + <a accesskey="p" href="re08.html">Prev</a> </td> <th width="60%" align="center"> - Chapter 8. Error Handler + Chapter 8. API - Application Programming Interface </th> <td width="20%" align="right"> - <a accesskey="n" href="ch08s03.html">Next</a> + <a accesskey="n" href="re09.html">Next</a> </td> </tr> </table> @@ -66,164 +62,59 @@ <div class="sect1" lang="en" xml:lang="en"> <div class="titlepage"> <h2 class="title c1"> - <a name="id4793502" id="id4793502"></a>Configuring a Handler + <a name="reference.api.group" id="reference.api.group"></a>Grouping + selectors </h2> </div> + <div class="toc"> + <dl> + <dt> + <span class="refentrytitle"><a href="re09.html"><code class= + "function">HTML_CSS::createGroup</code></a></span> <span class= + "refpurpose">- Creates a new CSS definition group. Returns an + integer identifying the group.</span> + </dt> + <dt> + <span class="refentrytitle"><a href="re10.html"><code class= + "function">HTML_CSS::unsetGroup</code></a></span> <span class= + "refpurpose">- Sets or adds a CSS definition for a CSS definition + group</span> + </dt> + <dt> + <span class="refentrytitle"><a href="re11.html"><code class= + "function">HTML_CSS::getGroupStyle</code></a></span> <span class= + "refpurpose">- Returns a CSS definition for a CSS definition + group</span> + </dt> + <dt> + <span class="refentrytitle"><a href="re12.html"><code class= + "function">HTML_CSS::setGroupStyle</code></a></span> <span class= + "refpurpose">- Sets or adds a CSS definition for a CSS definition + group</span> + </dt> + <dt> + <span class="refentrytitle"><a href="re13.html"><code class= + "function">HTML_CSS::addGroupSelector</code></a></span> + <span class="refpurpose">- Adds a selector to a CSS definition + group.</span> + </dt> + <dt> + <span class="refentrytitle"><a href="re14.html"><code class= + "function">HTML_CSS::removeGroupSelector</code></a></span> + <span class="refpurpose">- Removes a selector from a group.</span> + </dt> + <dt> + <span class="refentrytitle"><a href="re15.html"><code class= + "function">HTML_CSS::setSameStyle</code></a></span> <span class= + "refpurpose">- Sets or changes the properties of new selectors to + the values of an existing selector</span> + </dt> + </dl> + </div> <p> - A error handler's configuration is determined by the arguments used in - its construction. Here's an overview of these parameters. + The most advanced/complex functions are those which handle group of + selectors </p> - <div class="php c2"> - <ol> - <li class="li1"> - <div class="de1"> - <span class="kw2"><?php</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="kw1">require_once</span> <span class= - "st0">'HTML/CSS.php'</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="re0">$errorConf</span> = <span class= - "kw3">array</span><span class="br0">(</span><span class= - "st0">'error_handler'</span> => <span class= - "st0">'myErrorHandler'</span>, - </div> - </li> - <li class="li1"> - <div class="de1"> - - <span class="st0">'push_callback'</span> => <span class= - "st0">'myError'</span>, - </div> - </li> - <li class="li1"> - <div class="de1"> - - <span class="co1">// ... more options</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - - <span class="br0">)</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="re0">$css</span> = <span class="kw2">new</span> - HTML_CSS<span class="br0">(</span><span class="kw2">null</span>, - <span class="re0">$errorConf</span><span class="br0">)</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="kw2">?></span> - </div> - </li> - </ol> - </div> - <div class="table"> - <a name="id4793525" id="id4793525"></a> - <p class="title c3"> - Table 8.1. Error Handler configuration parameters - </p> - <table summary="Error Handler configuration parameters" border="1"> - <colgroup> - <col /> - <col /> - <col /> - </colgroup> - <thead> - <tr> - <th> - Option - </th> - <th> - Type - </th> - <th> - Description - </th> - </tr> - </thead> - <tbody> - <tr> - <td> - error_handler - </td> - <td> - callback - </td> - <td> - A valid callback (function) to manage errors raised by the - <code class="methodname">HTML_CSS::raiseError()</code> method. - Default is: <code class= - "methodname">HTML_CSS::_errorHandler</code> - </td> - </tr> - <tr> - <td> - push_callback - </td> - <td> - callback - </td> - <td> - A valid callback (function) that decides to following action. - Default return: <code class="constant">PEAR_ERROR_DIE</code> if - exception, <code class="constant">NULL</code> otherwise. - </td> - </tr> - <tr> - <td> - message_callback - </td> - <td> - callback - </td> - <td> - A valid callback (function) to control message generation. - Default is: <code class= - "methodname">HTML_CSS_Error::_msgCallback</code> - </td> - </tr> - <tr> - <td> - context_callback - </td> - <td> - callback - </td> - <td> - A valid callback (function) to control error context - generation. Default is: <code class= - "methodname">HTML_CSS_Error::getBacktrace</code> - </td> - </tr> - <tr> - <td> - handler - </td> - <td> - mixed - </td> - <td> - any handler-specific settings - </td> - </tr> - </tbody> - </table> - </div> </div> <table class="htmlcssFooter"> <tr> @@ -231,7 +122,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -240,24 +131,24 @@ <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"> - <a accesskey="p" href="ch08.html">Prev</a> + <a accesskey="p" href="re08.html">Prev</a> </td> <td width="20%" align="center"> <a accesskey="u" href="ch08.html">Up</a> </td> <td width="40%" align="right"> - <a accesskey="n" href="ch08s03.html">Next</a> + <a accesskey="n" href="re09.html">Next</a> </td> </tr> <tr> <td width="40%" align="left" valign="top"> - Chapter 8. Error Handler + <code class="function">HTML_CSS::setStyle</code> </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> - Controlling error generation + <code class="function">HTML_CSS::createGroup</code> </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch08s03.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch08s03.html diff -u pear/HTML_CSS/docs/TDG/ch08s03.html:1.2 pear/HTML_CSS/docs/TDG/ch08s03.html:1.3 --- pear/HTML_CSS/docs/TDG/ch08s03.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/ch08s03.html Sat Dec 30 12:53:07 2006 @@ -5,15 +5,15 @@ <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title> - Controlling error generation + Parsing data sources </title> <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> <link rel="up" href="ch08.html" title= - "Chapter 8. Error Handler" /> - <link rel="prev" href="ch08s02.html" title="Configuring a Handler " /> - <link rel="next" href="ch08s04.html" title="Error Context Display " /> + "Chapter 8. API - Application Programming Interface" /> + <link rel="prev" href="re15.html" title="HTML_CSS::setSameStyle" /> + <link rel="next" href="re16.html" title="HTML_CSS::parseString" /> <style type="text/css"> /*<![CDATA[*/ body { @@ -23,8 +23,6 @@ :link { color: #0000FF } :visited { color: #840084 } :active { color: #0000FF } - div.c3 {margin-left: 0.5in; margin-right: 0.5in;} - div.c2 {font-family: monospace;} h2.c1 {clear: both} /*]]>*/ </style> @@ -41,18 +39,18 @@ <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center"> - Controlling error generation + Parsing data sources </th> </tr> <tr> <td width="20%" align="left"> - <a accesskey="p" href="ch08s02.html">Prev</a> + <a accesskey="p" href="re15.html">Prev</a> </td> <th width="60%" align="center"> - Chapter 8. Error Handler + Chapter 8. API - Application Programming Interface </th> <td width="20%" align="right"> - <a accesskey="n" href="ch08s04.html">Next</a> + <a accesskey="n" href="re16.html">Next</a> </td> </tr> </table> @@ -64,225 +62,35 @@ <div class="sect1" lang="en" xml:lang="en"> <div class="titlepage"> <h2 class="title c1"> - <a name="id4793674" id="id4793674"></a>Controlling error generation + <a name="reference.api.parse" id="reference.api.parse"></a>Parsing + data sources </h2> </div> - <p> - There are many scenarios in which fine-grained control over error - raising is absolutely necessary. - </p> - <p> - The first level to control error generation is the <code class= - "filename">php.ini</code> directives <span class= - "emphasis"><em>display_errors</em></span> and <span class= - "emphasis"><em>log_errors</em></span>. When these directives are set to - <code class="constant">TRUE</code>, then browser and file outputs are - effective. - </p> - <div class="tip c3"> - <table border="0" summary="Tip"> - <tr> - <td rowspan="2" align="center" valign="top" width="48px"> - <img alt="[Tip]" src="img/admons/tip.png" /> - </td> - <th align="left"> - Tip - </th> - </tr> - <tr> - <td align="left" valign="top"> - If you want to ignore all errors raised (no display, no logs) and - avoid to include PEAR core class, then you should have something - like : - <div class="php c2"> - <ol> - <li class="li1"> - <div class="de1"> - <span class="kw2"><?php</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="kw1">require_once</span> <span class= - "st0">'HTML/CSS.php'</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="kw2">function</span> - myErrorHandler<span class="br0">(</span><span class= - "br0">)</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="br0">{</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="kw1">return</span> - <span class="kw2">null</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="br0">}</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="re0">$errorConf</span> = <span class= - "kw3">array</span><span class="br0">(</span><span class= - "st0">'error_handler'</span> => <span class= - "st0">'myErrorHandler'</span><span class="br0">)</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="re0">$css</span> = <span class= - "kw2">new</span> HTML_CSS<span class= - "br0">(</span><span class="kw2">null</span>, <span class= - "re0">$errorConf</span><span class="br0">)</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="co1">// ...</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="kw2">?></span> - </div> - </li> - </ol> - </div> - </td> - </tr> - </table> + <div class="toc"> + <dl> + <dt> + <span class="refentrytitle"><a href="re16.html"><code class= + "function">HTML_CSS::parseString</code></a></span> <span class= + "refpurpose">- Parse a textstring that contains css + information</span> + </dt> + <dt> + <span class="refentrytitle"><a href="re17.html"><code class= + "function">HTML_CSS::parseFile</code></a></span> <span class= + "refpurpose">- Parse a file that contains CSS information</span> + </dt> + <dt> + <span class="refentrytitle"><a href="re18.html"><code class= + "function">HTML_CSS::parseData</code></a></span> <span class= + "refpurpose">- Parse data sources, file(s) or string(s), that + contains CSS information</span> + </dt> + </dl> </div> <p> - With <span class="bold"><strong>push_callback</strong></span> option, - you can decides to stop script execution (as done with exceptions by - default: returns <code class="constant">PEAR_ERROR_DIE</code> - constant), or continue without filtering (returns <code class= - "constant">NULL</code>). + Handle data sources are so easy than just one call of these three + methods : </p> - <p> - If you want to write your own callback function for the <span class= - "emphasis"><em>push_callback</em></span> option, this one should have - two arguments: first one will get the error code, and second will get - error level. These are all the necessary informations to do a - filtering. Example that follow show how to be aware that a script use - wrong argument data type. - </p> - <div class="php c2"> - <ol> - <li class="li1"> - <div class="de1"> - <span class="kw2"><?php</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="kw1">require_once</span> <span class= - "st0">'HTML/CSS.php'</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="kw2">function</span> myErrorFilter<span class= - "br0">(</span><span class="re0">$code</span>, <span class= - "re0">$level</span><span class="br0">)</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="br0">{</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="kw1">if</span> <span class= - "br0">(</span><span class="re0">$code</span> === - HTML_CSS_ERROR_INVALID_INPUT<span class="br0">)</span> - <span class="br0">{</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class= - "kw3">error_log</span><span class="br0">(</span><span class= - "st0">'script: '</span>.<span class= - "kw2">__FILE__</span>.<span class="st0">' used wrong argument - data type'</span>, <span class="nu0">1</span>, <span class= - "st0">'admin@yoursite.com'</span><span class="br0">)</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="br0">}</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="kw1">return</span> <span class= - "kw2">null</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="br0">}</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="re0">$errorConf</span> = <span class= - "kw3">array</span><span class="br0">(</span><span class= - "st0">'push_callback'</span> => <span class= - "st0">'myErrorFilter'</span><span class="br0">)</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="re0">$css</span> = <span class="kw2">new</span> - HTML_CSS<span class="br0">(</span><span class="kw2">null</span>, - <span class="re0">$errorConf</span><span class="br0">)</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="co1">// ...</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="kw2">?></span> - </div> - </li> - </ol> - </div> </div> <table class="htmlcssFooter"> <tr> @@ -290,7 +98,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -299,24 +107,24 @@ <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"> - <a accesskey="p" href="ch08s02.html">Prev</a> + <a accesskey="p" href="re15.html">Prev</a> </td> <td width="20%" align="center"> <a accesskey="u" href="ch08.html">Up</a> </td> <td width="40%" align="right"> - <a accesskey="n" href="ch08s04.html">Next</a> + <a accesskey="n" href="re16.html">Next</a> </td> </tr> <tr> <td width="40%" align="left" valign="top"> - Configuring a Handler + <code class="function">HTML_CSS::setSameStyle</code> </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> - Error Context Display + <code class="function">HTML_CSS::parseString</code> </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch08s04.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch08s04.html diff -u pear/HTML_CSS/docs/TDG/ch08s04.html:1.2 pear/HTML_CSS/docs/TDG/ch08s04.html:1.3 --- pear/HTML_CSS/docs/TDG/ch08s04.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/ch08s04.html Sat Dec 30 12:53:07 2006 @@ -5,17 +5,15 @@ <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title> - Error Context Display + Output </title> <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> <link rel="up" href="ch08.html" title= - "Chapter 8. Error Handler" /> - <link rel="prev" href="ch08s03.html" title= - "Controlling error generation " /> - <link rel="next" href="ch08s05.html" title= - "Custom Error Message Generation " /> + "Chapter 8. API - Application Programming Interface" /> + <link rel="prev" href="re18.html" title="HTML_CSS::parseData" /> + <link rel="next" href="re19.html" title="HTML_CSS::toArray" /> <style type="text/css"> /*<![CDATA[*/ body { @@ -25,9 +23,6 @@ :link { color: #0000FF } :visited { color: #840084 } :active { color: #0000FF } - p.c4 {font-weight: bold} - div.c3 {margin-left: 0.5in; margin-right: 0.5in;} - div.c2 {font-family: monospace;} h2.c1 {clear: both} /*]]>*/ </style> @@ -44,18 +39,18 @@ <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center"> - Error Context Display + Output </th> </tr> <tr> <td width="20%" align="left"> - <a accesskey="p" href="ch08s03.html">Prev</a> + <a accesskey="p" href="re18.html">Prev</a> </td> <th width="60%" align="center"> - Chapter 8. Error Handler + Chapter 8. API - Application Programming Interface </th> <td width="20%" align="right"> - <a accesskey="n" href="ch08s05.html">Next</a> + <a accesskey="n" href="re19.html">Next</a> </td> </tr> </table> @@ -67,632 +62,44 @@ <div class="sect1" lang="en" xml:lang="en"> <div class="titlepage"> <h2 class="title c1"> - <a name="id4793786" id="id4793786"></a>Error Context Display + <a name="reference.api.output" id="reference.api.output"></a>Output </h2> </div> - <p> - In some cases, you may want to customize error generation. For - instance, for each error (basic/exception), it is useful to include - file, line number, and class/function context information in order to - trace it. The default option will be sufficient for most cases but you - want perhaps customize the output format (render) of context - information. - </p> - <p> - With this example we will change display and log renders. - </p> - <div class="php c2"> - <ol> - <li class="li1"> - <div class="de1"> - <span class="kw2"><?php</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="kw1">require_once</span> <span class= - "st0">'HTML/CSS.php'</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="re0">$displayConfig</span> = <span class= - "kw3">array</span><span class="br0">(</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="st0">'lineFormat'</span> => - <span class="st0">'<b>%1$s</b>: %2$s<br - />%3$s'</span>, - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="st0">'contextFormat'</span> - => <span class="st0">'<b>File:</b> - %1$s <br />'</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - - . <span class="st0">'<b>Line:</b> - %2$s <br />'</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - - . <span class= - "st0">'<b>Function:</b> %3$s '</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="br0">)</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="re0">$logConfig</span> = <span class= - "kw3">array</span><span class="br0">(</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="st0">'lineFormat'</span> => - <span class="st0">'%1$s %2$s [%3$s] %4$s'</span>, - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="st0">'timeFormat'</span> => - <span class="st0">'%b'</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="br0">)</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="re0">$prefs</span> = <span class= - "kw3">array</span><span class="br0">(</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="st0">'handler'</span> => - <span class="kw3">array</span><span class= - "br0">(</span><span class="st0">'display'</span> => - <span class="re0">$displayConfig</span>, - </div> - </li> - <li class="li1"> - <div class="de1"> - - <span class="st0">'log'</span> - => <span class="re0">$logConfig</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="br0">)</span><span class="br0">)</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="re0">$css</span> = <span class="kw2">new</span> - HTML_CSS<span class="br0">(</span><span class="kw2">null</span>, - <span class="re0">$prefs</span><span class="br0">)</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="co1">// ...</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="re0">$result</span> = <span class= - "re0">$css</span>-><span class= - "me1">setStyle</span><span class="br0">(</span><span class= - "st0">'div'</span>, <span class="st0">'color'</span>, - <span class="nu0">5</span><span class="br0">)</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="kw2">?></span> - </div> - </li> - </ol> - </div> - <p> - Display render will give something like: - </p> - <div class="informalexample screenco"> - <pre class="screen"> -Exception<a name="error.2.level" id="error.2.level"></a><img src= -"img/callouts/1.gif" alt="1" border= -"0" />: invalid input, parameter #3 "$value" was expecting "string", instead got "integer"<a name="error.2.message" -id="error.2.message"></a><img src="img/callouts/2.gif" alt="2" border="0" /> -File: [path_to]\[filename] <a name="error.2.context" id= -"error.2.context"></a><img src="img/callouts/3.gif" alt="3" border="0" /> -Line: 22 <a name="error.2.context" id="error.2.context"></a><img src= -"img/callouts/3.gif" alt="3" border="0" /> -Function: html_css->setstyle <a name="error.2.context" id= -"error.2.context"></a><img src="img/callouts/3.gif" alt="3" border="0" /> - -</pre> - <div class="calloutlist"> - <table border="0" summary="Callout list"> - <tr> - <td width="5%" valign="top" align="left"> - <a href="#error.2.level"><img src="img/callouts/1.gif" alt="1" - border="0" /></a> - </td> - <td valign="top" align="left"> - <p> - error level - </p> - </td> - </tr> - <tr> - <td width="5%" valign="top" align="left"> - <a href="#error.2.message"><img src="img/callouts/2.gif" alt= - "2" border="0" /></a> - </td> - <td valign="top" align="left"> - <p> - message body with context informations - </p> - </td> - </tr> - <tr> - <td width="5%" valign="top" align="left"> - <a href="#error.2.context"><img src="img/callouts/3.gif" alt= - "3" border="0" /></a> - </td> - <td valign="top" align="left"> - <p> - call context (file, line, function) - </p> - </td> - </tr> - </table> - </div> - </div> - <p> - Log render will give something like: - </p> - <div class="informalexample screenco"> - <pre class="screen"> -Jun 127.0.0.1<a name="error.3.context" id="error.3.context"></a><img src= -"img/callouts/1.gif" alt="1" border="0" /> [exception<a name="error.3.level" -id="error.3.level"></a><img src="img/callouts/2.gif" alt="2" border= -"0" />] invalid input, parameter #3 "$value" was expecting "string", instead got "integer"<a name="error.3.message" -id="error.3.message"></a><img src="img/callouts/3.gif" alt="3" border="0" /> - -</pre> - <div class="calloutlist"> - <table border="0" summary="Callout list"> - <tr> - <td width="5%" valign="top" align="left"> - <a href="#error.3.context"><img src="img/callouts/1.gif" alt= - "1" border="0" /></a> - </td> - <td valign="top" align="left"> - <p> - client ip address and execution date - </p> - </td> - </tr> - <tr> - <td width="5%" valign="top" align="left"> - <a href="#error.3.level"><img src="img/callouts/2.gif" alt="2" - border="0" /></a> - </td> - <td valign="top" align="left"> - <p> - error level - </p> - </td> - </tr> - <tr> - <td width="5%" valign="top" align="left"> - <a href="#error.3.message"><img src="img/callouts/3.gif" alt= - "3" border="0" /></a> - </td> - <td valign="top" align="left"> - <p> - message body with context informations - </p> - </td> - </tr> - </table> - </div> - </div> - <div class="note c3"> - <table border="0" summary="Note"> - <tr> - <td rowspan="2" align="center" valign="top" width="48px"> - <img alt="[Note]" src="img/admons/note.png" /> - </td> - <th align="left"> - Note - </th> - </tr> - <tr> - <td align="left" valign="top"> - To have both display and log output, check the <code class= - "filename">php.ini</code><span class= - "emphasis"><em>display_errors</em></span> and <span class= - "emphasis"><em>log_errors</em></span> values : must be set to - <code class="constant">TRUE</code>. - </td> - </tr> - </table> + <div class="toc"> + <dl> + <dt> + <span class="refentrytitle"><a href="re19.html"><code class= + "function">HTML_CSS::toArray</code></a></span> <span class= + "refpurpose">- Returns the array of CSS properties</span> + </dt> + <dt> + <span class="refentrytitle"><a href="re20.html"><code class= + "function">HTML_CSS::toInline</code></a></span> <span class= + "refpurpose">- Generates and returns the CSS properties of an + element or class as a string for inline use.</span> + </dt> + <dt> + <span class="refentrytitle"><a href="re21.html"><code class= + "function">HTML_CSS::toFile</code></a></span> <span class= + "refpurpose">- Generates CSS and stores it in a file.</span> + </dt> + <dt> + <span class="refentrytitle"><a href="re22.html"><code class= + "function">HTML_CSS::toString</code></a></span> <span class= + "refpurpose">- Generates and returns the complete CSS as a + string.</span> + </dt> + <dt> + <span class="refentrytitle"><a href="re23.html"><code class= + "function">HTML_CSS::display</code></a></span> <span class= + "refpurpose">- Outputs the stylesheet to the browser.</span> + </dt> + </dl> </div> <p> - Let review, step by step, how to get such results. + Send result directly to browser, send it to file or capture to a PHP + variable, you will certainly use one of them. </p> - <p> - Remember that with default classes, there are two drivers : - <span class="emphasis"><em>display</em></span> and <span class= - "emphasis"><em>log</em></span> that have both their own configuration - parameters. You can override these parameters values with the - <span class="bold"><strong>handler</strong></span> entry in the hash of - second argument of the HTML_CSS class constructor. - </p> - <p> - We did it here with the <em class="parameter"><code>$prefs</code></em> - variable; its a two keys associative array. First key <span class= - "emphasis"><em>display</em></span> defines the display driver values, - and the second key <span class="emphasis"><em>log</em></span> defines - the log driver values. - </p> - <p> - Review the <span class="emphasis"><em>display</em></span> driver custom - values. Only two keys: <span class="simplelist">lineFormat, - contextFormat</span> are redefined, thats means remains key - <span class="simplelist">eol</span> keep its default value. See table - below. - </p> - <div class="table"> - <a name="id4794265" id="id4794265"></a> - <p class="title c4"> - Table 8.2. Display driver configuration parameters - </p> - <table summary="Display driver configuration parameters" border="1"> - <colgroup> - <col /> - <col /> - <col /> - <col /> - </colgroup> - <thead> - <tr> - <th> - Parameter - </th> - <th> - Type - </th> - <th> - Default - </th> - <th> - Description - </th> - </tr> - </thead> - <tbody> - <tr> - <td> - eol - </td> - <td> - string - </td> - <td> - <br />\n - </td> - <td> - The end-on-line character sequence - </td> - </tr> - <tr> - <td> - lineFormat - </td> - <td> - string - </td> - <td> - <b>%1$s</b>: %2$s %3$s - </td> - <td> - Log line format specification: - <div class="itemizedlist"> - <ul type="disc"> - <li>1$ = error level - </li> - <li>2$ = error message (body) - </li> - <li>3$ = error context - </li> - </ul> - </div> - </td> - </tr> - <tr> - <td> - contextFormat - </td> - <td> - string - </td> - <td> - in <b>%3$s</b> (file <b>%1$s</b> on - line <b>%2$s</b>) - </td> - <td> - Context format (class, file, line) specification: - <div class="itemizedlist"> - <ul type="disc"> - <li>1$ = script file name - </li> - <li>2$ = line in script file - </li> - <li>3$ = class/method names - </li> - </ul> - </div> - </td> - </tr> - </tbody> - </table> - </div> - <div class="tip c3"> - <table border="0" summary="Tip"> - <tr> - <td rowspan="2" align="center" valign="top" width="48px"> - <img alt="[Tip]" src="img/admons/tip.png" /> - </td> - <th align="left"> - Tip - </th> - </tr> - <tr> - <td align="left" valign="top"> - If you don't wish to see context information in the error - message, then remove the parameter %3$ in the <span class= - "emphasis"><em>lineFormat</em></span> option even if <span class= - "emphasis"><em>contextFormat</em></span> is set. - </td> - </tr> - </table> - </div> - <p> - Review now the <span class="emphasis"><em>log</em></span> driver custom - values. Only two keys <span class="simplelist">lineFormat, - timeFormat</span> are redefined, thats means six remains keys - <span class="simplelist">eol, contextFormat, ident, message_type, - destination, extra_headers</span> keep their default values. See table - below. - </p> - <div class="table"> - <a name="id4794456" id="id4794456"></a> - <p class="title c4"> - Table 8.3. Log driver configuration parameters - </p> - <table summary="Log driver configuration parameters" border="1"> - <colgroup> - <col /> - <col /> - <col /> - <col /> - </colgroup> - <thead> - <tr> - <th> - Parameter - </th> - <th> - Type - </th> - <th> - Default - </th> - <th> - Description - </th> - </tr> - </thead> - <tbody> - <tr> - <td> - eol - </td> - <td> - string - </td> - <td> - \n - </td> - <td> - The end-on-line character sequence - </td> - </tr> - <tr> - <td> - lineFormat - </td> - <td> - string - </td> - <td> - %1$s %2$s [%3$s] %4$s %5$s - </td> - <td> - Log line format specification: - <div class="itemizedlist"> - <ul type="disc"> - <li>$1 = time error - </li> - <li>2$ = ident (client ip) - </li> - <li>3$ = error level - </li> - <li>4$ = error message (body) - </li> - <li>5$ = error context - </li> - </ul> - </div> - </td> - </tr> - <tr> - <td> - contextFormat - </td> - <td> - string - </td> - <td> - in %3$s (file %1$s on line %2$s) - </td> - <td> - Context format (class, file, line) specification: - <div class="itemizedlist"> - <ul type="disc"> - <li>1$ = script file name - </li> - <li>2$ = line in script file - </li> - <li>3$ = class/method names - </li> - </ul> - </div> - </td> - </tr> - <tr> - <td> - timeFormat - </td> - <td> - string - </td> - <td> - %b %d %H:%M:%S - </td> - <td> - Time stamp format used by <a class="external" href= - "http://www.php.net/manual-lookup.php?pattern=strftime" title= - "http://www.php.net/manual-lookup.php?pattern=strftime">strftime</a> - </td> - </tr> - <tr> - <td> - ident - </td> - <td> - string - </td> - <td> - REMOTE_ADDR - </td> - <td> - Client IP - </td> - </tr> - <tr> - <td> - message_type - </td> - <td> - string - </td> - <td> - 3 - </td> - <td> - Destination type used by <a class="external" href= - "http://www.php.net/manual-lookup.php?pattern=error_log" title= - "http://www.php.net/manual-lookup.php?pattern=error_log">error_log</a> - </td> - </tr> - <tr> - <td> - destination - </td> - <td> - string - </td> - <td> - html_css_error.log - </td> - <td> - Destination name used by <a class="external" href= - "http://www.php.net/manual-lookup.php?pattern=error_log" title= - "http://www.php.net/manual-lookup.php?pattern=error_log">error_log</a> - </td> - </tr> - <tr> - <td> - extra_headers - </td> - <td> - string - </td> - <td> - <code class="constant">NULL</code> - </td> - <td> - Extra headers depending of destination type - </td> - </tr> - </tbody> - </table> - </div> - <div class="tip c3"> - <table border="0" summary="Tip"> - <tr> - <td rowspan="2" align="center" valign="top" width="48px"> - <img alt="[Tip]" src="img/admons/tip.png" /> - </td> - <th align="left"> - Tip - </th> - </tr> - <tr> - <td align="left" valign="top"> - If you don't wish to see context information in the error - message, then remove the parameter %5$ in the <span class= - "emphasis"><em>lineFormat</em></span> option even if <span class= - "emphasis"><em>contextFormat</em></span> is set. - </td> - </tr> - </table> - </div> </div> <table class="htmlcssFooter"> <tr> @@ -700,7 +107,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -709,24 +116,24 @@ <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"> - <a accesskey="p" href="ch08s03.html">Prev</a> + <a accesskey="p" href="re18.html">Prev</a> </td> <td width="20%" align="center"> <a accesskey="u" href="ch08.html">Up</a> </td> <td width="40%" align="right"> - <a accesskey="n" href="ch08s05.html">Next</a> + <a accesskey="n" href="re19.html">Next</a> </td> </tr> <tr> <td width="40%" align="left" valign="top"> - Controlling error generation + <code class="function">HTML_CSS::parseData</code> </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> - Custom Error Message Generation + <code class="function">HTML_CSS::toArray</code> </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch08s05.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/ch08s05.html diff -u pear/HTML_CSS/docs/TDG/ch08s05.html:1.2 pear/HTML_CSS/docs/TDG/ch08s05.html:1.3 --- pear/HTML_CSS/docs/TDG/ch08s05.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/ch08s05.html Sat Dec 30 12:53:07 2006 @@ -5,14 +5,15 @@ <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title> - Custom Error Message Generation + Searching for selectors and/or properties </title> <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> <link rel="up" href="ch08.html" title= - "Chapter 8. Error Handler" /> - <link rel="prev" href="ch08s04.html" title="Error Context Display " /> + "Chapter 8. API - Application Programming Interface" /> + <link rel="prev" href="re23.html" title="HTML_CSS::display" /> + <link rel="next" href="re24.html" title="HTML_CSS::grepStyle" /> <style type="text/css"> /*<![CDATA[*/ body { @@ -22,7 +23,7 @@ :link { color: #0000FF } :visited { color: #840084 } :active { color: #0000FF } - div.c2 {font-family: monospace;} + div.c2 {margin-left: 0.5in; margin-right: 0.5in;} h2.c1 {clear: both} /*]]>*/ </style> @@ -39,18 +40,18 @@ <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center"> - Custom Error Message Generation + Searching for selectors and/or properties </th> </tr> <tr> <td width="20%" align="left"> - <a accesskey="p" href="ch08s04.html">Prev</a> + <a accesskey="p" href="re23.html">Prev</a> </td> <th width="60%" align="center"> - Chapter 8. Error Handler + Chapter 8. API - Application Programming Interface </th> <td width="20%" align="right"> - + <a accesskey="n" href="re24.html">Next</a> </td> </tr> </table> @@ -62,114 +63,40 @@ <div class="sect1" lang="en" xml:lang="en"> <div class="titlepage"> <h2 class="title c1"> - <a name="id4794713" id="id4794713"></a>Custom Error Message - Generation + <a name="reference.api.grep" id="reference.api.grep"></a>Searching + for selectors and/or properties </h2> </div> <div class="toc"> <dl> <dt> - <span class="sect2"><a href="ch08s05.html#id4794725">Option: - message_callback</a></span> - </dt> - <dt> - <span class="sect2"><a href="ch08s05.html#id4794759">Option: - context_callback</a></span> + <span class="refentrytitle"><a href="re24.html"><code class= + "function">HTML_CSS::grepStyle</code></a></span> <span class= + "refpurpose">- Return array entries of styles that match patterns + (Perl compatible)</span> </dt> </dl> </div> <p> - There are two methods of <code class="classname">HTML_CSS_Error</code> - designed for use with generating error messages efficiently. To use - them, you must set the options below in the HTML_CSS class constructor - (argument #2): + Ability to find if a selector or a property (with perl-compatible + pattern) is already defined. </p> - <div class="sect2" lang="en" xml:lang="en"> - <div class="titlepage"> - <h3 class="title"> - <a name="id4794725" id="id4794725"></a>Option: message_callback - </h3> - </div> - <p> - The default message handling callback (<code class= - "methodname">HTML_CSS_Error::_getErrorMessage</code>) get an array - mapping error codes to error message templates, like so: - </p> - <div class="php c2"> - <ol> - <li class="li1"> - <div class="de1"> - <span class="kw2"><?php</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="re0">$messages</span> = <span class= - "kw3">array</span><span class="br0">(</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - HTML_CSS_ERROR_UNKNOWN => - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="st0">'unknown - error'</span>, - </div> - </li> - <li class="li1"> - <div class="de1"> - HTML_CSS_ERROR_INVALID_INPUT => - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="st0">'invalid input, - parameter #%paramnum% '</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - . <span class="st0">'"%var%" was expecting - '</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - . <span class="st0">'"%expected%", instead - got "%was%"'</span> - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="br0">)</span>; - </div> - </li> - <li class="li1"> - <div class="de1"> - <span class="kw2">?></span> - </div> - </li> - </ol> - </div> - <p> - Basically, if a variable name is enclosed in percent signs (%), it - will be replaced with the value passed in the associative array. - </p> - </div> - <div class="sect2" lang="en" xml:lang="en"> - <div class="titlepage"> - <h3 class="title"> - <a name="id4794759" id="id4794759"></a>Option: context_callback - </h3> - </div> - <p> - The default context handling callback (<code class= - "methodname">HTML_CSS_Error::getBackTrace</code>) gets an array of - execution functions and discovers where the error was generated. - </p> + <div class="important c2"> + <table border="0" summary="Important"> + <tr> + <td rowspan="2" align="center" valign="top" width="48"> + <img alt="[Important]" src="img/admons/important.png" /> + </td> + <th align="left"> + Important + </th> + </tr> + <tr> + <td align="left" valign="top"> + This function is available since version 1.1.0 + </td> + </tr> + </table> </div> </div> <table class="htmlcssFooter"> @@ -178,7 +105,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -187,24 +114,24 @@ <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"> - <a accesskey="p" href="ch08s04.html">Prev</a> + <a accesskey="p" href="re23.html">Prev</a> </td> <td width="20%" align="center"> <a accesskey="u" href="ch08.html">Up</a> </td> <td width="40%" align="right"> - + <a accesskey="n" href="re24.html">Next</a> </td> </tr> <tr> <td width="40%" align="left" valign="top"> - Error Context Display + <code class="function">HTML_CSS::display</code> </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> - + <code class="function">HTML_CSS::grepStyle</code> </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/index.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/index.html diff -u pear/HTML_CSS/docs/TDG/index.html:1.2 pear/HTML_CSS/docs/TDG/index.html:1.3 --- pear/HTML_CSS/docs/TDG/index.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/index.html Sat Dec 30 12:53:07 2006 @@ -80,7 +80,7 @@ </div> <div> <p class="copyright"> - Copyright © 2006 Laurent Laville + Copyright © 2006, 2007 Laurent Laville </p> </div> <div class="legalnotice"> @@ -102,6 +102,30 @@ </tr> <tr> <td align="left"> + Revision 1.1.0 + </td> + <td align="left"> + January 1, 2007 + </td> + </tr> + <tr> + <td align="left" colspan="2"> + <div class="itemizedlist"> + <ul type="disc"> + <li>Added new feature (API function getStyle), for help + to find if a class selector or property is already + defined or not + </li> + <li>Added appendix with examples + </li> + <li>Fixed minor typo errors + </li> + </ul> + </div> + </td> + </tr> + <tr> + <td align="left"> Revision 1.0.1 </td> <td align="left"> @@ -200,6 +224,10 @@ <dt> <span class="chapter"><a href="ch06.html">6. Output</a></span> </dt> + <dt> + <span class="chapter"><a href="ch07.html">7. Searching for + selectors and properties</a></span> + </dt> </dl> </dd> <dt> @@ -209,15 +237,26 @@ <dd> <dl> <dt> - <span class="chapter"><a href="ch07.html">7. API - Application + <span class="chapter"><a href="ch08.html">8. API - Application Programming Interface</a></span> </dt> <dt> - <span class="chapter"><a href="ch08.html">8. Error + <span class="chapter"><a href="ch09.html">9. Error Handler</a></span> </dt> </dl> </dd> + <dt> + <span class="part"><a href="pt04.html">IV. Appendixes</a></span> + </dt> + <dd> + <dl> + <dt> + <span class="chapter"><a href="ch10.html">10. + Examples</a></span> + </dt> + </dl> + </dd> </dl> </div> <div class="list-of-figures"> @@ -226,7 +265,7 @@ </p> <dl> <dt> - 3.1. <a href="ch03s02.html#id4728688">Rule structure</a> + 3.1. <a href="ch03s02.html#id4731351">Rule structure</a> </dt> </dl> </div> @@ -236,19 +275,40 @@ </p> <dl> <dt> - 8.1. <a href="ch08s02.html#id4793525">Error Handler configuration + 9.1. <a href="ch09s02.html#id4795464">Error Handler configuration parameters</a> </dt> <dt> - 8.2. <a href="ch08s04.html#id4794265">Display driver configuration + 9.2. <a href="ch09s04.html#id4796205">Display driver configuration parameters</a> </dt> <dt> - 8.3. <a href="ch08s04.html#id4794456">Log driver configuration + 9.3. <a href="ch09s04.html#id4796396">Log driver configuration parameters</a> </dt> </dl> </div> + <div class="list-of-examples"> + <p class="c1"> + List of Examples + </p> + <dl> + <dt> + 10.1. <a href="ch10.html#id4797953">Simple selector definitions</a> + </dt> + <dt> + 10.2. <a href="ch10.html#id4798032">Combine selectors + properties</a> + </dt> + <dt> + 10.3. <a href="ch10s02.html#id4798718">Simple string parsing</a> + </dt> + <dt> + 10.4. <a href="ch10s02.html#id4799072">Multiple data sources + parsing</a> + </dt> + </dl> + </div> </div> <table class="htmlcssFooter"> <tr> @@ -256,7 +316,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/pr01.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/pr01.html diff -u pear/HTML_CSS/docs/TDG/pr01.html:1.2 pear/HTML_CSS/docs/TDG/pr01.html:1.3 --- pear/HTML_CSS/docs/TDG/pr01.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/pr01.html Sat Dec 30 12:53:07 2006 @@ -88,7 +88,7 @@ </h2> </div> <p> - This book is divided into three main parts, they are: + This book is divided into four main parts, they are: </p> <div class="itemizedlist"> <ul type="disc"> @@ -201,6 +201,16 @@ </ul> </div> </li> + <li> + <p> + <a href="pt04.html" title= + "Part IV. Appendixes">Appendixes</a> + </p> + <p> + This section is intended to provide full examples included into + the distribution. + </p> + </li> </ul> </div> </div> @@ -211,7 +221,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/pr01s02.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/pr01s02.html diff -u pear/HTML_CSS/docs/TDG/pr01s02.html:1.2 pear/HTML_CSS/docs/TDG/pr01s02.html:1.3 --- pear/HTML_CSS/docs/TDG/pr01s02.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/pr01s02.html Sat Dec 30 12:53:07 2006 @@ -83,7 +83,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/pt01.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/pt01.html diff -u pear/HTML_CSS/docs/TDG/pt01.html:1.2 pear/HTML_CSS/docs/TDG/pt01.html:1.3 --- pear/HTML_CSS/docs/TDG/pt01.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/pt01.html Sat Dec 30 12:53:07 2006 @@ -103,7 +103,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/pt02.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/pt02.html diff -u pear/HTML_CSS/docs/TDG/pt02.html:1.2 pear/HTML_CSS/docs/TDG/pt02.html:1.3 --- pear/HTML_CSS/docs/TDG/pt02.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/pt02.html Sat Dec 30 12:53:07 2006 @@ -160,6 +160,26 @@ </dt> </dl> </dd> + <dt> + <span class="chapter"><a href="ch07.html">7. Searching for + selectors and properties</a></span> + </dt> + <dd> + <dl> + <dt> + <span class="sect1"><a href= + "ch07.html#developers.find.purpose">In brief</a></span> + </dt> + <dt> + <span class="sect1"><a href="ch07s02.html">Searching for a + group of selectors</a></span> + </dt> + <dt> + <span class="sect1"><a href="ch07s03.html">Searching for + selectors that set a property</a></span> + </dt> + </dl> + </dd> </dl> </div> </div> @@ -169,7 +189,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/pt03.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/pt03.html diff -u pear/HTML_CSS/docs/TDG/pt03.html:1.2 pear/HTML_CSS/docs/TDG/pt03.html:1.3 --- pear/HTML_CSS/docs/TDG/pt03.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/pt03.html Sat Dec 30 12:53:07 2006 @@ -11,9 +11,10 @@ <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> <link rel="up" href="index.html" title="HTML_CSS Manual" /> - <link rel="prev" href="ch06s06.html" title="Display" /> - <link rel="next" href="ch07.html" title= - "Chapter 7. API - Application Programming Interface" /> + <link rel="prev" href="ch07s03.html" title= + "Searching for selectors that set a property " /> + <link rel="next" href="ch08.html" title= + "Chapter 8. API - Application Programming Interface" /> <style type="text/css"> /*<![CDATA[*/ body { @@ -44,13 +45,13 @@ </tr> <tr> <td width="20%" align="left"> - <a accesskey="p" href="ch06s06.html">Prev</a> + <a accesskey="p" href="ch07s03.html">Prev</a> </td> <th width="60%" align="center"> </th> <td width="20%" align="right"> - <a accesskey="n" href="ch07.html">Next</a> + <a accesskey="n" href="ch08.html">Next</a> </td> </tr> </table> @@ -72,53 +73,57 @@ </p> <dl> <dt> - <span class="chapter"><a href="ch07.html">7. API - Application + <span class="chapter"><a href="ch08.html">8. API - Application Programming Interface</a></span> </dt> <dd> <dl> <dt> <span class="sect1"><a href= - "ch07.html#reference.api.basic">Handle selector and property + "ch08.html#reference.api.basic">Handle selector and property values</a></span> </dt> <dt> - <span class="sect1"><a href="ch07s02.html">Grouping + <span class="sect1"><a href="ch08s02.html">Grouping selectors</a></span> </dt> <dt> - <span class="sect1"><a href="ch07s03.html">Parsing data + <span class="sect1"><a href="ch08s03.html">Parsing data sources</a></span> </dt> <dt> - <span class="sect1"><a href="ch07s04.html">Output</a></span> + <span class="sect1"><a href="ch08s04.html">Output</a></span> + </dt> + <dt> + <span class="sect1"><a href="ch08s05.html">Searching for + selectors and/or properties</a></span> </dt> </dl> </dd> <dt> - <span class="chapter"><a href="ch08.html">8. Error + <span class="chapter"><a href="ch09.html">9. Error Handler</a></span> </dt> <dd> <dl> <dt> <span class="sect1"><a href= - "ch08.html#id4792686">Introduction</a></span> + "ch09.html#id4794625">Introduction</a></span> </dt> <dt> - <span class="sect1"><a href="ch08s02.html">Configuring a + <span class="sect1"><a href="ch09s02.html">Configuring a Handler</a></span> </dt> <dt> - <span class="sect1"><a href="ch08s03.html">Controlling error + <span class="sect1"><a href="ch09s03.html">Controlling error generation</a></span> </dt> <dt> - <span class="sect1"><a href="ch08s04.html">Error Context + <span class="sect1"><a href="ch09s04.html">Error Context Display</a></span> </dt> <dt> - <span class="sect1"><a href="ch08s05.html">Custom Error Message + <span class="sect1"><a href="ch09s05.html">Custom Error Message Generation</a></span> </dt> </dl> @@ -132,7 +137,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -141,24 +146,24 @@ <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"> - <a accesskey="p" href="ch06s06.html">Prev</a> + <a accesskey="p" href="ch07s03.html">Prev</a> </td> <td width="20%" align="center"> </td> <td width="40%" align="right"> - <a accesskey="n" href="ch07.html">Next</a> + <a accesskey="n" href="ch08.html">Next</a> </td> </tr> <tr> <td width="40%" align="left" valign="top"> - Display + Searching for selectors that set a property </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> - Chapter 7. API - Application Programming Interface + Chapter 8. API - Application Programming Interface </td> </tr> </table> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re01.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re01.html diff -u pear/HTML_CSS/docs/TDG/re01.html:1.2 pear/HTML_CSS/docs/TDG/re01.html:1.3 --- pear/HTML_CSS/docs/TDG/re01.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re01.html Sat Dec 30 12:53:07 2006 @@ -10,9 +10,9 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07.html#id4778101" title="" /> - <link rel="prev" href="ch07.html" title= - "Chapter 7. API - Application Programming Interface" /> + <link rel="up" href="ch08.html#id4778932" title="" /> + <link rel="prev" href="ch08.html" title= + "Chapter 8. API - Application Programming Interface" /> <link rel="next" href="re02.html" title="HTML_CSS::parseFile" /> <style type="text/css"> /*<![CDATA[*/ @@ -44,7 +44,7 @@ </tr> <tr> <td width="20%" align="left"> - <a accesskey="p" href="ch07.html">Prev</a> + <a accesskey="p" href="ch08.html">Prev</a> </td> <th width="60%" align="center"></th> <td width="20%" align="right"> @@ -168,7 +168,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -177,10 +177,10 @@ <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"> - <a accesskey="p" href="ch07.html">Prev</a> + <a accesskey="p" href="ch08.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07.html#id4778101">Up</a> + <a accesskey="u" href="ch08.html#id4778932">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re02.html">Next</a> @@ -188,7 +188,7 @@ </tr> <tr> <td width="40%" align="left" valign="top"> - Chapter 7. API - Application Programming Interface + Chapter 8. API - Application Programming Interface </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re02.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re02.html diff -u pear/HTML_CSS/docs/TDG/re02.html:1.2 pear/HTML_CSS/docs/TDG/re02.html:1.3 --- pear/HTML_CSS/docs/TDG/re02.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re02.html Sat Dec 30 12:53:07 2006 @@ -10,7 +10,7 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07.html#id4778867" title="" /> + <link rel="up" href="ch08.html#id4780074" title="" /> <link rel="prev" href="re01.html" title="HTML_CSS::setXhtmlCompliance" /> <link rel="next" href="re03.html" title="HTML_CSS::setCache" /> <style type="text/css"> @@ -211,7 +211,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -223,7 +223,7 @@ <a accesskey="p" href="re01.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07.html#id4778867">Up</a> + <a accesskey="u" href="ch08.html#id4780074">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re03.html">Next</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re03.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re03.html diff -u pear/HTML_CSS/docs/TDG/re03.html:1.2 pear/HTML_CSS/docs/TDG/re03.html:1.3 --- pear/HTML_CSS/docs/TDG/re03.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re03.html Sat Dec 30 12:53:07 2006 @@ -10,7 +10,7 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07.html#id4779677" title="" /> + <link rel="up" href="ch08.html#id4780878" title="" /> <link rel="prev" href="re02.html" title="HTML_CSS::parseFile" /> <link rel="next" href="re04.html" title="HTML_CSS::setSingleLineOutput" /> <style type="text/css"> @@ -167,7 +167,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -179,7 +179,7 @@ <a accesskey="p" href="re02.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07.html#id4779677">Up</a> + <a accesskey="u" href="ch08.html#id4780878">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re04.html">Next</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re04.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re04.html diff -u pear/HTML_CSS/docs/TDG/re04.html:1.2 pear/HTML_CSS/docs/TDG/re04.html:1.3 --- pear/HTML_CSS/docs/TDG/re04.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re04.html Sat Dec 30 12:53:07 2006 @@ -10,7 +10,7 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07.html#id4779057" title="" /> + <link rel="up" href="ch08.html#id4780264" title="" /> <link rel="prev" href="re03.html" title="HTML_CSS::setCache" /> <link rel="next" href="re05.html" title="HTML_CSS::setOutputGroupsFirst" /> <style type="text/css"> @@ -162,7 +162,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -174,7 +174,7 @@ <a accesskey="p" href="re03.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07.html#id4779057">Up</a> + <a accesskey="u" href="ch08.html#id4780264">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re05.html">Next</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re05.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re05.html diff -u pear/HTML_CSS/docs/TDG/re05.html:1.2 pear/HTML_CSS/docs/TDG/re05.html:1.3 --- pear/HTML_CSS/docs/TDG/re05.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re05.html Sat Dec 30 12:53:07 2006 @@ -10,7 +10,7 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07.html#id4780024" title="" /> + <link rel="up" href="ch08.html#id4781225" title="" /> <link rel="prev" href="re04.html" title="HTML_CSS::setSingleLineOutput" /> <link rel="next" href="re06.html" title="constructor HTML_CSS::HTML_CSS" /> <style type="text/css"> @@ -170,7 +170,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -182,7 +182,7 @@ <a accesskey="p" href="re04.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07.html#id4780024">Up</a> + <a accesskey="u" href="ch08.html#id4781225">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re06.html">Next</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re06.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re06.html diff -u pear/HTML_CSS/docs/TDG/re06.html:1.2 pear/HTML_CSS/docs/TDG/re06.html:1.3 --- pear/HTML_CSS/docs/TDG/re06.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re06.html Sat Dec 30 12:53:07 2006 @@ -10,7 +10,7 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07.html#id4778093" title="" /> + <link rel="up" href="ch08.html#id4778924" title="" /> <link rel="prev" href="re05.html" title="HTML_CSS::setOutputGroupsFirst" /> <link rel="next" href="re07.html" title="HTML_CSS::getStyle" /> <style type="text/css"> @@ -239,7 +239,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -251,7 +251,7 @@ <a accesskey="p" href="re05.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07.html#id4778093">Up</a> + <a accesskey="u" href="ch08.html#id4778924">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re07.html">Next</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re07.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re07.html diff -u pear/HTML_CSS/docs/TDG/re07.html:1.2 pear/HTML_CSS/docs/TDG/re07.html:1.3 --- pear/HTML_CSS/docs/TDG/re07.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re07.html Sat Dec 30 12:53:07 2006 @@ -10,7 +10,7 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07.html#reference.api.basic" title= + <link rel="up" href="ch08.html#reference.api.basic" title= "Handle selector and property values" /> <link rel="prev" href="re06.html" title="constructor HTML_CSS::HTML_CSS" /> <link rel="next" href="re08.html" title="HTML_CSS::setStyle" /> @@ -215,7 +215,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -227,7 +227,7 @@ <a accesskey="p" href="re06.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07.html#reference.api.basic">Up</a> + <a accesskey="u" href="ch08.html#reference.api.basic">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re08.html">Next</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re08.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re08.html diff -u pear/HTML_CSS/docs/TDG/re08.html:1.2 pear/HTML_CSS/docs/TDG/re08.html:1.3 --- pear/HTML_CSS/docs/TDG/re08.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re08.html Sat Dec 30 12:53:07 2006 @@ -10,10 +10,10 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07.html#reference.api.basic" title= + <link rel="up" href="ch08.html#reference.api.basic" title= "Handle selector and property values" /> <link rel="prev" href="re07.html" title="HTML_CSS::getStyle" /> - <link rel="next" href="ch07s02.html" title="Grouping selectors" /> + <link rel="next" href="ch08s02.html" title="Grouping selectors" /> <style type="text/css"> /*<![CDATA[*/ body { @@ -50,7 +50,7 @@ Handle selector and property values </th> <td width="20%" align="right"> - <a accesskey="n" href="ch07s02.html">Next</a> + <a accesskey="n" href="ch08s02.html">Next</a> </td> </tr> </table> @@ -278,7 +278,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -290,10 +290,10 @@ <a accesskey="p" href="re07.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07.html#reference.api.basic">Up</a> + <a accesskey="u" href="ch08.html#reference.api.basic">Up</a> </td> <td width="40%" align="right"> - <a accesskey="n" href="ch07s02.html">Next</a> + <a accesskey="n" href="ch08s02.html">Next</a> </td> </tr> <tr> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re09.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re09.html diff -u pear/HTML_CSS/docs/TDG/re09.html:1.2 pear/HTML_CSS/docs/TDG/re09.html:1.3 --- pear/HTML_CSS/docs/TDG/re09.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re09.html Sat Dec 30 12:53:07 2006 @@ -10,8 +10,8 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07s02.html" title="Grouping selectors" /> - <link rel="prev" href="ch07s02.html" title="Grouping selectors" /> + <link rel="up" href="ch08s02.html" title="Grouping selectors" /> + <link rel="prev" href="ch08s02.html" title="Grouping selectors" /> <link rel="next" href="re10.html" title="HTML_CSS::unsetGroup" /> <style type="text/css"> /*<![CDATA[*/ @@ -43,7 +43,7 @@ </tr> <tr> <td width="20%" align="left"> - <a accesskey="p" href="ch07s02.html">Prev</a> + <a accesskey="p" href="ch08s02.html">Prev</a> </td> <th width="60%" align="center"> Grouping selectors @@ -214,7 +214,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -223,10 +223,10 @@ <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"> - <a accesskey="p" href="ch07s02.html">Prev</a> + <a accesskey="p" href="ch08s02.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07s02.html">Up</a> + <a accesskey="u" href="ch08s02.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re10.html">Next</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re10.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re10.html diff -u pear/HTML_CSS/docs/TDG/re10.html:1.2 pear/HTML_CSS/docs/TDG/re10.html:1.3 --- pear/HTML_CSS/docs/TDG/re10.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re10.html Sat Dec 30 12:53:07 2006 @@ -10,7 +10,7 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07s02.html" title="Grouping selectors" /> + <link rel="up" href="ch08s02.html" title="Grouping selectors" /> <link rel="prev" href="re09.html" title="HTML_CSS::createGroup" /> <link rel="next" href="re11.html" title="HTML_CSS::getGroupStyle" /> <style type="text/css"> @@ -181,7 +181,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -193,7 +193,7 @@ <a accesskey="p" href="re09.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07s02.html">Up</a> + <a accesskey="u" href="ch08s02.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re11.html">Next</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re11.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re11.html diff -u pear/HTML_CSS/docs/TDG/re11.html:1.2 pear/HTML_CSS/docs/TDG/re11.html:1.3 --- pear/HTML_CSS/docs/TDG/re11.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re11.html Sat Dec 30 12:53:07 2006 @@ -10,7 +10,7 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07s02.html" title="Grouping selectors" /> + <link rel="up" href="ch08s02.html" title="Grouping selectors" /> <link rel="prev" href="re10.html" title="HTML_CSS::unsetGroup" /> <link rel="next" href="re12.html" title="HTML_CSS::setGroupStyle" /> <style type="text/css"> @@ -214,7 +214,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -226,7 +226,7 @@ <a accesskey="p" href="re10.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07s02.html">Up</a> + <a accesskey="u" href="ch08s02.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re12.html">Next</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re12.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re12.html diff -u pear/HTML_CSS/docs/TDG/re12.html:1.2 pear/HTML_CSS/docs/TDG/re12.html:1.3 --- pear/HTML_CSS/docs/TDG/re12.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re12.html Sat Dec 30 12:53:07 2006 @@ -10,7 +10,7 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07s02.html" title="Grouping selectors" /> + <link rel="up" href="ch08s02.html" title="Grouping selectors" /> <link rel="prev" href="re11.html" title="HTML_CSS::getGroupStyle" /> <link rel="next" href="re13.html" title="HTML_CSS::addGroupSelector" /> <style type="text/css"> @@ -288,7 +288,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -300,7 +300,7 @@ <a accesskey="p" href="re11.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07s02.html">Up</a> + <a accesskey="u" href="ch08s02.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re13.html">Next</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re13.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re13.html diff -u pear/HTML_CSS/docs/TDG/re13.html:1.2 pear/HTML_CSS/docs/TDG/re13.html:1.3 --- pear/HTML_CSS/docs/TDG/re13.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re13.html Sat Dec 30 12:53:07 2006 @@ -10,7 +10,7 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07s02.html" title="Grouping selectors" /> + <link rel="up" href="ch08s02.html" title="Grouping selectors" /> <link rel="prev" href="re12.html" title="HTML_CSS::setGroupStyle" /> <link rel="next" href="re14.html" title="HTML_CSS::removeGroupSelector" /> <style type="text/css"> @@ -201,7 +201,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -213,7 +213,7 @@ <a accesskey="p" href="re12.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07s02.html">Up</a> + <a accesskey="u" href="ch08s02.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re14.html">Next</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re14.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re14.html diff -u pear/HTML_CSS/docs/TDG/re14.html:1.2 pear/HTML_CSS/docs/TDG/re14.html:1.3 --- pear/HTML_CSS/docs/TDG/re14.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re14.html Sat Dec 30 12:53:07 2006 @@ -10,7 +10,7 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07s02.html" title="Grouping selectors" /> + <link rel="up" href="ch08s02.html" title="Grouping selectors" /> <link rel="prev" href="re13.html" title="HTML_CSS::addGroupSelector" /> <link rel="next" href="re15.html" title="HTML_CSS::setSameStyle" /> <style type="text/css"> @@ -201,7 +201,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -213,7 +213,7 @@ <a accesskey="p" href="re13.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07s02.html">Up</a> + <a accesskey="u" href="ch08s02.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re15.html">Next</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re15.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re15.html diff -u pear/HTML_CSS/docs/TDG/re15.html:1.2 pear/HTML_CSS/docs/TDG/re15.html:1.3 --- pear/HTML_CSS/docs/TDG/re15.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re15.html Sat Dec 30 12:53:07 2006 @@ -10,9 +10,9 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07s02.html" title="Grouping selectors" /> + <link rel="up" href="ch08s02.html" title="Grouping selectors" /> <link rel="prev" href="re14.html" title="HTML_CSS::removeGroupSelector" /> - <link rel="next" href="ch07s03.html" title="Parsing data sources" /> + <link rel="next" href="ch08s03.html" title="Parsing data sources" /> <style type="text/css"> /*<![CDATA[*/ body { @@ -49,7 +49,7 @@ Grouping selectors </th> <td width="20%" align="right"> - <a accesskey="n" href="ch07s03.html">Next</a> + <a accesskey="n" href="ch08s03.html">Next</a> </td> </tr> </table> @@ -203,7 +203,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -215,10 +215,10 @@ <a accesskey="p" href="re14.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07s02.html">Up</a> + <a accesskey="u" href="ch08s02.html">Up</a> </td> <td width="40%" align="right"> - <a accesskey="n" href="ch07s03.html">Next</a> + <a accesskey="n" href="ch08s03.html">Next</a> </td> </tr> <tr> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re16.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re16.html diff -u pear/HTML_CSS/docs/TDG/re16.html:1.2 pear/HTML_CSS/docs/TDG/re16.html:1.3 --- pear/HTML_CSS/docs/TDG/re16.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re16.html Sat Dec 30 12:53:07 2006 @@ -10,8 +10,8 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07s03.html" title="Parsing data sources" /> - <link rel="prev" href="ch07s03.html" title="Parsing data sources" /> + <link rel="up" href="ch08s03.html" title="Parsing data sources" /> + <link rel="prev" href="ch08s03.html" title="Parsing data sources" /> <link rel="next" href="re17.html" title="HTML_CSS::parseFile" /> <style type="text/css"> /*<![CDATA[*/ @@ -43,7 +43,7 @@ </tr> <tr> <td width="20%" align="left"> - <a accesskey="p" href="ch07s03.html">Prev</a> + <a accesskey="p" href="ch08s03.html">Prev</a> </td> <th width="60%" align="center"> Parsing data sources @@ -217,7 +217,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -226,10 +226,10 @@ <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"> - <a accesskey="p" href="ch07s03.html">Prev</a> + <a accesskey="p" href="ch08s03.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07s03.html">Up</a> + <a accesskey="u" href="ch08s03.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re17.html">Next</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re17.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re17.html diff -u pear/HTML_CSS/docs/TDG/re17.html:1.2 pear/HTML_CSS/docs/TDG/re17.html:1.3 --- pear/HTML_CSS/docs/TDG/re17.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re17.html Sat Dec 30 12:53:07 2006 @@ -10,7 +10,7 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07s03.html" title="Parsing data sources" /> + <link rel="up" href="ch08s03.html" title="Parsing data sources" /> <link rel="prev" href="re16.html" title="HTML_CSS::parseString" /> <link rel="next" href="re18.html" title="HTML_CSS::parseData" /> <style type="text/css"> @@ -213,7 +213,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -225,7 +225,7 @@ <a accesskey="p" href="re16.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07s03.html">Up</a> + <a accesskey="u" href="ch08s03.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re18.html">Next</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re18.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re18.html diff -u pear/HTML_CSS/docs/TDG/re18.html:1.2 pear/HTML_CSS/docs/TDG/re18.html:1.3 --- pear/HTML_CSS/docs/TDG/re18.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re18.html Sat Dec 30 12:53:07 2006 @@ -10,9 +10,9 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07s03.html" title="Parsing data sources" /> + <link rel="up" href="ch08s03.html" title="Parsing data sources" /> <link rel="prev" href="re17.html" title="HTML_CSS::parseFile" /> - <link rel="next" href="ch07s04.html" title="Output " /> + <link rel="next" href="ch08s04.html" title="Output " /> <style type="text/css"> /*<![CDATA[*/ body { @@ -49,7 +49,7 @@ Parsing data sources </th> <td width="20%" align="right"> - <a accesskey="n" href="ch07s04.html">Next</a> + <a accesskey="n" href="ch08s04.html">Next</a> </td> </tr> </table> @@ -215,7 +215,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -227,10 +227,10 @@ <a accesskey="p" href="re17.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07s03.html">Up</a> + <a accesskey="u" href="ch08s03.html">Up</a> </td> <td width="40%" align="right"> - <a accesskey="n" href="ch07s04.html">Next</a> + <a accesskey="n" href="ch08s04.html">Next</a> </td> </tr> <tr> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re19.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re19.html diff -u pear/HTML_CSS/docs/TDG/re19.html:1.2 pear/HTML_CSS/docs/TDG/re19.html:1.3 --- pear/HTML_CSS/docs/TDG/re19.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re19.html Sat Dec 30 12:53:07 2006 @@ -10,8 +10,8 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07s04.html" title="Output " /> - <link rel="prev" href="ch07s04.html" title="Output " /> + <link rel="up" href="ch08s04.html" title="Output " /> + <link rel="prev" href="ch08s04.html" title="Output " /> <link rel="next" href="re20.html" title="HTML_CSS::toInline" /> <style type="text/css"> /*<![CDATA[*/ @@ -42,7 +42,7 @@ </tr> <tr> <td width="20%" align="left"> - <a accesskey="p" href="ch07s04.html">Prev</a> + <a accesskey="p" href="ch08s04.html">Prev</a> </td> <th width="60%" align="center"> Output @@ -126,7 +126,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -135,10 +135,10 @@ <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"> - <a accesskey="p" href="ch07s04.html">Prev</a> + <a accesskey="p" href="ch08s04.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07s04.html">Up</a> + <a accesskey="u" href="ch08s04.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re20.html">Next</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re20.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re20.html diff -u pear/HTML_CSS/docs/TDG/re20.html:1.2 pear/HTML_CSS/docs/TDG/re20.html:1.3 --- pear/HTML_CSS/docs/TDG/re20.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re20.html Sat Dec 30 12:53:07 2006 @@ -10,7 +10,7 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07s04.html" title="Output " /> + <link rel="up" href="ch08s04.html" title="Output " /> <link rel="prev" href="re19.html" title="HTML_CSS::toArray" /> <link rel="next" href="re21.html" title="HTML_CSS::toFile" /> <style type="text/css"> @@ -170,7 +170,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -182,7 +182,7 @@ <a accesskey="p" href="re19.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07s04.html">Up</a> + <a accesskey="u" href="ch08s04.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re21.html">Next</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re21.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re21.html diff -u pear/HTML_CSS/docs/TDG/re21.html:1.2 pear/HTML_CSS/docs/TDG/re21.html:1.3 --- pear/HTML_CSS/docs/TDG/re21.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re21.html Sat Dec 30 12:53:07 2006 @@ -10,7 +10,7 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07s04.html" title="Output " /> + <link rel="up" href="ch08s04.html" title="Output " /> <link rel="prev" href="re20.html" title="HTML_CSS::toInline" /> <link rel="next" href="re22.html" title="HTML_CSS::toString" /> <style type="text/css"> @@ -181,7 +181,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -193,7 +193,7 @@ <a accesskey="p" href="re20.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07s04.html">Up</a> + <a accesskey="u" href="ch08s04.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re22.html">Next</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re22.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re22.html diff -u pear/HTML_CSS/docs/TDG/re22.html:1.2 pear/HTML_CSS/docs/TDG/re22.html:1.3 --- pear/HTML_CSS/docs/TDG/re22.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re22.html Sat Dec 30 12:53:07 2006 @@ -10,7 +10,7 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07s04.html" title="Output " /> + <link rel="up" href="ch08s04.html" title="Output " /> <link rel="prev" href="re21.html" title="HTML_CSS::toFile" /> <link rel="next" href="re23.html" title="HTML_CSS::display" /> <style type="text/css"> @@ -126,7 +126,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -138,7 +138,7 @@ <a accesskey="p" href="re21.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07s04.html">Up</a> + <a accesskey="u" href="ch08s04.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="re23.html">Next</a> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re23.html?r1=1.2&r2=1.3&diff_format=u Index: pear/HTML_CSS/docs/TDG/re23.html diff -u pear/HTML_CSS/docs/TDG/re23.html:1.2 pear/HTML_CSS/docs/TDG/re23.html:1.3 --- pear/HTML_CSS/docs/TDG/re23.html:1.2 Thu Dec 21 19:47:04 2006 +++ pear/HTML_CSS/docs/TDG/re23.html Sat Dec 30 12:53:07 2006 @@ -10,10 +10,10 @@ <link rel="stylesheet" href="book.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="start" href="index.html" title="HTML_CSS Manual" /> - <link rel="up" href="ch07s04.html" title="Output " /> + <link rel="up" href="ch08s04.html" title="Output " /> <link rel="prev" href="re22.html" title="HTML_CSS::toString" /> - <link rel="next" href="ch08.html" title= - "Chapter 8. Error Handler" /> + <link rel="next" href="ch08s05.html" title= + "Searching for selectors and/or properties" /> <style type="text/css"> /*<![CDATA[*/ body { @@ -49,7 +49,7 @@ Output </th> <td width="20%" align="right"> - <a accesskey="n" href="ch08.html">Next</a> + <a accesskey="n" href="ch08s05.html">Next</a> </td> </tr> </table> @@ -139,7 +139,7 @@ HTML_CSS : The Definitive Guide </td> <td align="right"> - v 1.0.1 : December 21, 2006 + v 1.1.0 : January 1, 2007 </td> </tr> </table> @@ -151,10 +151,10 @@ <a accesskey="p" href="re22.html">Prev</a> </td> <td width="20%" align="center"> - <a accesskey="u" href="ch07s04.html">Up</a> + <a accesskey="u" href="ch08s04.html">Up</a> </td> <td width="40%" align="right"> - <a accesskey="n" href="ch08.html">Next</a> + <a accesskey="n" href="ch08s05.html">Next</a> </td> </tr> <tr> @@ -165,7 +165,7 @@ <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> - Chapter 8. Error Handler + Searching for selectors and/or properties </td> </tr> </table>