downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

xslt_set_error_handler> <xslt_set_base
[edit] Last updated: Sat, 18 May 2013

view this page in

xslt_set_encoding

(PHP 4 >= 4.0.5)

xslt_set_encodingImposta l'encoding per il parsing dei documenti XML

Descrizione

void xslt_set_encoding ( resource $xh , string $encoding )

Imposta l'output encoding per le trasformazioni XSLT. Quando è usato il backend Sablotron, quasta opzione è disponibile solo quando si compila Sablotron con il supporto per l'encoding.

Elenco dei parametri

xh

The XSLT processor link identifier, created with xslt_create().

encoding

Una codifica di output, per esempio iso-8859-1.

Valori restituiti

Nessun valore viene restituito.



xslt_set_error_handler> <xslt_set_base
[edit] Last updated: Sat, 18 May 2013
 
add a note add a note User Contributed Notes xslt_set_encoding - [4 notes]
up
0
gloob at litio dot org
5 years ago
Beware with http://bugs.php.net/bug.php?id=23148 if you experienced problems compiling php4-xslt.
up
0
francois at flash-france dot com
8 years ago
sablotron and php have to be correctly linked with iconv library to get this function working

IE on sabotron ./configure :
--with-iconv-prefix=/your/path
up
0
Hudson Silva
9 years ago
I'm running Mandrake Linux v9.1, with Apache 2.0.48 and PHP 4.3.4...I'm have make PHP with XSLT support, and this work fine, expect because a problem...the function xslt_set_encoding don't work, and i have found a solution...simply, type export LDFLAGS=-lstdc++ before start the configure program of PHP. And this will work!
up
0
zibi at sails pl
9 years ago
i'm usig it that way:

$ht=xslt_create();
xslt_set_encoding($ht,"ISO-8859-2");
$args = array ( '/_xml' => $xml, '/_xslt' => $xslt);
$result=xslt_process($ht,'arg:/_xml','arg:/_xslt',NULL,$args);

all placed in very nice class ;-)

 
show source | credits | sitemap | contact | advertising | mirror sites