Source for file xslt.php
Documentation is available at xslt.php
// +----------------------------------------------------------------------+
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2003 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available at through the world-wide-web at |
// | http://www.php.net/license/2_02.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Authors: Dan Allen <dan@mojavelinux.com> |
// +----------------------------------------------------------------------+
// $Id: xslt.php,v 1.4 2005/10/12 12:38:13 toggg Exp $
// XML_CSSML is a CSSML to CSS xslt parser
// {{{ class XML_CSSML_xslt
* The XML_CSSML_xslt is a container class which
* provides the sablotron xsl functions to parse a CSSML
* document into a stylesheet with the ability to output
* @author Dan Allen <dan@mojavelinux.com>
* The sabltron extension can use xml strings as arguments for the
* processor, but must do so when calling xslt_process. This variable
* holds those parameters.
function XML_CSSML_xslt($in_CSSML = null , $in_type = 'string', $in_params = null )
'This driver needs the xslt extension to run', 'XML_CSSML_Error', true );
$this->load($in_CSSML, $in_type);
// I need some error checking in here
// Prepare the params for passing to the stylesheet
if ($this->output != 'STDOUT') {
// I need some more error checking in here
function load($in_CSSML, $in_type = 'string')
} elseif ($in_type == 'string' && is_string($in_CSSML)) {
$this->arguments = array ('/_xml' => $in_CSSML);
return PEAR ::raiseError (null , XML_CSSML_INVALID_DATA, null , E_USER_WARNING , " Request data: $in_CSSML" , 'XML_CSSML_Error', true );
Documentation generated on Mon, 11 Mar 2019 14:12:45 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|