Re: [PHP-XML-DEV] create_processing_instruction

[email protected] (Christian Stocker) Tue, 11 Nov 2003 17:02:36 +0100
Newsgroups php.xml.dev
Message-ID <[email protected]>
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  |  [email protected]  |  gnupg-keyid 0x5CE1DECB