note 47772 deleted from function.xsl-xsltprocessor-import-stylesheet by didou

From: Date: Mon, 27 Dec 2004 22:29:54 +0000
Subject: note 47772 deleted from function.xsl-xsltprocessor-import-stylesheet by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-82376@lists.php.net to get a copy of this message
Note Submitter: zerok at zerokspot dot com ---- As a simple solution for multiple stylesheets you could simple build your own little XML string that <xsl:import/>s all the stylesheets you want to have. <? class XslTemplate{ private $stylexml; /* ... */ function __construct(){ /* ... */ $this->stylexml =<<<EOD <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <!--IMPORTS--> </xsl:stylesheet> EOD; } public function importStyle($path){ $this->stylexml = str_replace('<!--IMPORTS-->',"<xsl:import href=\"".$path."\"/>\n<!--INCLUDES-->",$this->stylexml); } public function process($string){ /* $this->proc->importStyleSheet(DOMDocument::loadXML($this->stylexml)) etc. */ } } ?>

« previous php.notes (#82376) next »