note 37904 added to function.domdocument-create-processing-instruction

From: Date: Tue, 02 Dec 2003 01:34:33 +0000
Subject: note 37904 added to function.domdocument-create-processing-instruction
Groups: php.notes 
Request: Send a blank email to php-notes+get-61236@lists.php.net to get a copy of this message
That prior user example creates an invalid processing insruction under 4.3.4. The first parameter is the processing instruction, and the second can be used for the attributes of the PI. Here's a code snippet I used to insert a stylesheet: <?php $pi = $doc->create_processing_instruction( "xsl-stylesheet", "type=\"text/xsl\" href=\"$stylesheet\""); $doc->append_child($pi); ?> ---- 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+37904 Delete -- http://master.php.net/manage/user-notes.php?action=delete+37904&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+37904&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#61236) next »