note 36742 rejected from function.domdocument-create-processing-instruction by didou

From: Date: Tue, 21 Oct 2003 07:27:14 +0000
Subject: note 36742 rejected from function.domdocument-create-processing-instruction by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-58967@lists.php.net to get a copy of this message
Note Submitter: stokealpha@hotmail.com ---- 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"');

« previous php.notes (#58967) next »