note 36742 added to function.domdocument-create-processing-instruction
| From: | [stokealpha] at [hotmail] dot [com] | Date: | Tue, 21 Oct 2003 06:32:22 +0000 |
| Subject: | note 36742 added to function.domdocument-create-processing-instruction | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-58962@lists.php.net to get a copy of this message | ||
The documentation is wrong. It takes two arguments as noted by rj kamp, but the given example was
incorrect, resulting in:
<? xsl-stylesheet type="text/xsl" href="path_to_my_stylesheet"?>
(not a valid pi because of the leading space)
The correct usage is:
string DomDocument->create_processing_instruction (string pi_type, string pi_content)
as in:
$pi = $myDoc->create_processing_instruction('xml:stylesheet',
'type="text/xsl" href="path_to_my_stylesheet"');
----
Manual Page -- http://www.php.net/manual/en/function.domdocument-create-processing-instruction.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+36742
Delete -- http://master.php.net/manage/user-notes.php?action=delete+36742&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+36742&report=yes
Search -- http://master.php.net/manage/user-notes.php