cvs: pear /XML_CSSML CSSML.php package.xml /XML_CSSML/docs example.php
| From: | Daniel Allen | Date: | Mon, 20 May 2002 20:27:21 +0000 |
| Subject: | cvs: pear /XML_CSSML CSSML.php package.xml /XML_CSSML/docs example.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-3978@lists.php.net to get a copy of this message | ||
dallen Mon May 20 16:27:21 2002 EDT
Modified files:
/pear/XML_CSSML CSSML.php package.xml
/pear/XML_CSSML/docs example.php
Log:
- rename driver from domxml to libxslt so that I can create an actual domxml driver in the
future
Index: pear/XML_CSSML/CSSML.php
diff -u pear/XML_CSSML/CSSML.php:1.2 pear/XML_CSSML/CSSML.php:1.3
--- pear/XML_CSSML/CSSML.php:1.2 Wed May 1 03:33:33 2002
+++ pear/XML_CSSML/CSSML.php Mon May 20 16:27:19 2002
@@ -17,7 +17,7 @@
// | Authors: Dan Allen <dan@mojavelinux.com> |
// +----------------------------------------------------------------------+
-// $Id: CSSML.php,v 1.2 2002/05/01 07:33:33 dallen Exp $
+// $Id: CSSML.php,v 1.3 2002/05/20 20:27:19 dallen Exp $
// }}}
// {{{ description
@@ -196,7 +196,7 @@
$this->output = $in_params['output'];
if ($in_params['output'] != 'STDOUT') {
// check to make sure this is a file...this needs work
- if (!@file_exists($in_params['output']) &&
!touch($in_params['output'])) {
+ if (!@file_exists($in_params['output']) &&
!@touch($in_params['output'])) {
$this->output = 'STDOUT';
return PEAR::raiseError(null, XML_CSSML_INVALID_FILE, PEAR_ERROR_PRINT,
E_USER_NOTICE, '', 'XML_CSSML_Error', true);
}
Index: pear/XML_CSSML/package.xml
diff -u pear/XML_CSSML/package.xml:1.1 pear/XML_CSSML/package.xml:1.2
--- pear/XML_CSSML/package.xml:1.1 Mon Apr 29 07:33:08 2002
+++ pear/XML_CSSML/package.xml Mon May 20 16:27:19 2002
@@ -21,8 +21,8 @@
<file role="php">error.php</file>
</dir>
<dir name="Container">
- <file role="php">domxml.php</file>
- <file role="xsl">domxml.xsl</file>
+ <file role="php">libxslt.php</file>
+ <file role="xsl">libxslt.xsl</file>
<file role="php">xslt.php</file>
<file role="xsl">xslt.xsl</file>
</dir>
Index: pear/XML_CSSML/docs/example.php
diff -u pear/XML_CSSML/docs/example.php:1.1 pear/XML_CSSML/docs/example.php:1.2
--- pear/XML_CSSML/docs/example.php:1.1 Mon Apr 29 07:33:09 2002
+++ pear/XML_CSSML/docs/example.php Mon May 20 16:27:19 2002
@@ -2,12 +2,13 @@
require_once '../CSSML.php';
error_reporting(E_ALL);
$cssml = '<cssml:CSSML xmlns:cssml="http://pear.php.net/cssml/1.0">
- <style filterInclude="admin">
+ <style browserInclude="not(gecko)" filterInclude="admin">
<selector>p</selector>
<declaration property="color">text</declaration>
</style>
</cssml:CSSML>';
-$cssml = new XML_CSSML('xslt', $cssml, array('filter' => 'admin',
'comment' => 'hello there!', 'output' => 'STDOUT'));
+$cssml = new XML_CSSML('libxslt', $cssml, 'string', array('browser'
=> 'ns4', 'filter' => 'admin', 'comment' =>
'hello there!', 'output' => 'foo.css'));
//print_r($cssml);
-echo $cssml->process();
+//echo $cssml->process();
+$cssml->process();
?>