cvs: phpdoc-hu /reference/xslt/functions xslt-create.xml
| From: | Cece) Szabolcs | Date: | Tue, 03 Aug 2004 16:41:22 +0000 |
| Subject: | cvs: phpdoc-hu /reference/xslt/functions xslt-create.xml | ||
| Groups: | php.doc.hu | ||
| Request: | Send a blank email to doc-hu+get-782@lists.php.net to get a copy of this message | ||
cece Tue Aug 3 12:41:22 2004 EDT
Modified files:
/phpdoc-hu/reference/xslt/functions xslt-create.xml
Log:
sync
http://cvs.php.net/diff.php/phpdoc-hu/reference/xslt/functions/xslt-create.xml?r1=1.3&r2=1.4&ty=u
Index: phpdoc-hu/reference/xslt/functions/xslt-create.xml
diff -u phpdoc-hu/reference/xslt/functions/xslt-create.xml:1.3
phpdoc-hu/reference/xslt/functions/xslt-create.xml:1.4
--- phpdoc-hu/reference/xslt/functions/xslt-create.xml:1.3 Sat Aug 10 07:18:21 2002
+++ phpdoc-hu/reference/xslt/functions/xslt-create.xml Tue Aug 3 12:41:22 2004
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- splitted from ./hu/functions/xslt.xml, last change in rev 1.1 -->
<!-- last change to 'xslt-create' in en/ tree in rev 1.3 -->
-<!-- EN-Revision: 1.3 Maintainer: gerzson Status: ready -->
+<!-- EN-Revision: 1.9 Maintainer: cece Status: ready -->
+<!-- CREDITS: gerzson -->
<!-- OLD-Revision: 1.32/EN.1.3 -->
<refentry id="function.xslt-create">
<refnamediv>
@@ -17,6 +18,41 @@
<para>
Létrehoz az XSLT feldolgozó erõforrást, amellyel a többi XSLT függvény
dolgozik. Ezt az erõforrást adja vissza.
+ </para>
+ </refsect1>
+ <refsect1>
+ &reftitle.examples;
+ <example>
+ <title><function>xslt_create</function> példa</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+function xml2html($xmldata, $xsl)
+{
+ /* $xmldata -> az XML-ed */
+ /* $xsl -> XSLT fájl */
+
+ $path = 'include';
+ $arguments = array('/_xml' => $xmldata);
+ $xsltproc = xslt_create();
+ xslt_set_encoding($xsltproc, 'ISO-8859-1');
+ $html = xslt_process($xsltproc, 'arg:/_xml', "$path/$xsl", NULL,
$arguments);
+
+ if (empty($html)) {
+ die('XSLT feldolgozási hiba: '. xslt_error($xsltproc));
+ }
+ xslt_free($xsltproc);
+ return $html;
+}
+?>
+]]>
+ </programlisting>
+ </example>
+ </refsect1>
+ <refsect1>
+ &reftitle.seealso;
+ <para>
+ <function>xslt_free</function>.
</para>
</refsect1>
</refentry>