Re: create_processing_instruction

From: Date: Tue, 11 Nov 2003 16:02:36 +0000
Subject: Re: create_processing_instruction
References: 1  Groups: php.xml.dev 
Request: Send a blank email to php-xml-dev+get-252@lists.php.net to get a copy of this message
Hi On 11/10/03 11:14 AM, Poulin wrote:
Hi ! I tried to use the create_processing_instruction method from the DOMXML library (PHP 4.3.3) :
Wrong list ,) This is the list for developing for PHP and XML, not with.. anyway
$xsl = $dom->create_processing_instruction('','xml-stylesheet type="text/xsl" href="'.$pathXSL.'"');
try: $xsl = $dom->create_processing_instruction('xml-stylesheet','type="text/xsl" href="'.$pathXSL.'"'); (that's the official way, as well...) chregu
Unfortunately, when I dump, the result is something like that : <? xml-stylesheet type="text/xsl" href="style.xsl"?> See the white space after <? ??? That white space makes my XML document invalid ! What should I do ? Joe, pour little programmer.
-- christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich phone +41 1 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71 http://www.bitflux.ch | chregu@bitflux.ch | gnupg-keyid 0x5CE1DECB

« previous php.xml.dev (#252) next »