note 73980 added to function.xsl-xsltprocessor-import-stylesheet

From: Date: Mon, 19 Mar 2007 17:07:37 +0000
Subject: note 73980 added to function.xsl-xsltprocessor-import-stylesheet
Groups: php.notes 
Request: Send a blank email to php-notes+get-124592@lists.php.net to get a copy of this message
This is not a problem. You may set DOMDocument's documentURI property. Something like this $xsl = new DOMDocument('1.0','UTF-8'); $xsl->loadXML(file_get_contents('/foo/bar/somefile.xsl'); $xsl->documentURI = '/foo/bar/somefile.xsl'; $xslProc = new XSLTProcessor(); $xslProc->importStylesheet($xsl); and document('other.xsl') will work fine! ---- Server IP: 195.54.192.44 Probable Submitter: 217.119.24.118 ---- Manual Page -- http://www.php.net/manual/en/function.xsl-xsltprocessor-import-stylesheet.php Edit -- https://master.php.net/note/edit/73980 Del: integrated -- https://master.php.net/note/delete/73980/integrated Del: useless -- https://master.php.net/note/delete/73980/useless Del: bad code -- https://master.php.net/note/delete/73980/bad+code Del: spam -- https://master.php.net/note/delete/73980/spam Del: non-english -- https://master.php.net/note/delete/73980/non-english Del: in docs -- https://master.php.net/note/delete/73980/in+docs Del: other reasons-- https://master.php.net/note/delete/73980 Reject -- https://master.php.net/note/reject/73980 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#124592) next »