XML_CSSML
[ class tree: XML_CSSML ] [ index: XML_CSSML ] [ all elements ]

Source for file example.php

Documentation is available at example.php

  1. <?php
  2. // CVS: $Id: example.php,v 1.3 2005/10/12 12:38:13 toggg Exp $
  3. require_once 'XML/CSSML.php';
  4. $cssml '<cssml:CSSML xmlns:cssml="http://pear.php.net/cssml/1.0">
  5.   <style browserInclude="not(gecko)" filterInclude="admin">
  6.     <selector>p</selector>
  7.     <declaration property="color">blue</declaration>
  8.   </style>
  9. </cssml:CSSML>';
  10. $cssml XML_CSSML::factory('libxslt'$cssml'string'array('browser' => 'ns4''filter' => 'admin''comment' => 'hello there!''output' => 'foo.css'));
  11. if (PEAR::isError($cssml)) {
  12.     die($cssml->getMessage().' / '.$cssml->getUserInfo()."\n");
  13. }
  14. //var_dump($cssml);
  15. $OK $cssml->process();
  16. //var_dump($OK);
  17. ?>

Documentation generated on Mon, 11 Mar 2019 14:12:45 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.