note 94842 added to domxpath.query
| From: | Anonymous at osu1 dot php dot net | Date: | Fri, 27 Nov 2009 20:26:17 +0000 |
| Subject: | note 94842 added to domxpath.query | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-163350@lists.php.net to get a copy of this message | ||
I found this useful for building page templates
$xsl = new DOMDocument;
$xsl->load('layout.xsl');
// Set the <xsl:include> href attribute, the inner stylesheet to include in this layout
$xpath = new DomXPath($xsl);
$res = $xpath->query('//xsl:include');
$res->item(0)->setAttribute('href','page.xsl');
$xsl->save('media/xsl/layout.xsl');
----
Server IP: 66.207.199.35
Probable Submitter: 142.104.13.51
----
Manual Page -- http://www.php.net/manual/en/domxpath.query.php
Edit -- https://master.php.net/note/edit/94842
Del: integrated -- https://master.php.net/note/delete/94842/integrated
Del: useless -- https://master.php.net/note/delete/94842/useless
Del: bad code -- https://master.php.net/note/delete/94842/bad+code
Del: spam -- https://master.php.net/note/delete/94842/spam
Del: non-english -- https://master.php.net/note/delete/94842/non-english
Del: in docs -- https://master.php.net/note/delete/94842/in+docs
Del: other reasons-- https://master.php.net/note/delete/94842
Reject -- https://master.php.net/note/reject/94842
Search -- https://master.php.net/manage/user-notes.php