mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
- Fix code style
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@138548 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
0a1d5d264f
commit
3d1e80f3fa
1 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- splitted from ./en/functions/xslt.xml, last change in rev 1.3 -->
|
||||
<refentry id="function.xslt-create">
|
||||
<refnamediv>
|
||||
|
@ -22,7 +22,7 @@
|
|||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
function xml2html($xmldata,$xsl) {
|
||||
function xml2html($xmldata, $xsl) {
|
||||
/* $xmldata -> your xml */
|
||||
/* $xsl -> xslt file */
|
||||
|
||||
|
@ -31,10 +31,10 @@ function xml2html($xmldata,$xsl) {
|
|||
$xsltproc = xslt_create();
|
||||
xslt_set_encoding($xsltproc, 'ISO-8859-1');
|
||||
$html =
|
||||
xslt_process($xsltproc,'arg:/_xml',"$path/$xsl",NULL,$arguments);
|
||||
xslt_process($xsltproc, 'arg:/_xml', "$path/$xsl", NULL, $arguments);
|
||||
|
||||
if (empty($html)) {
|
||||
die('XSLT processing error: '.xslt_error($xsltproc));
|
||||
die('XSLT processing error: '. xslt_error($xsltproc));
|
||||
}
|
||||
xslt_free($xsltproc);
|
||||
return $html;
|
||||
|
|
Loading…
Reference in a new issue