1
0
mirror of https://github.com/php/doc-tr.git synced 2026-03-24 07:12:18 +01:00
Files
2023-10-02 03:31:19 +03:00

149 lines
3.9 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: d2939d46110158f98ace5c20761c808b04c905d8 Maintainer: nilgun Status: ready -->
<refentry xml:id="domdocument.xinclude" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>DOMDocument::xinclude</refname>
<refpurpose>Bir <classname>DOMDocument</classname> nesnesindeki XInclude
dosyalarını belgeye dahil eder</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis role="DOMDocument">
<modifier>public</modifier> <type class="union"><type>int</type><type>false</type></type><methodname>DOMDocument::xinclude</methodname>
<methodparam choice="opt"><type>int</type><parameter>seçenekler</parameter><initializer>0</initializer></methodparam>
</methodsynopsis>
<para>
Bir <classname>DOMDocument</classname> nesnesinde,
<link xlink:href="&url.xinclude.spec;">XIncludes</link> mekanizması
kullanılarak belgeye dahil edilen dosyaların içeriklerini yerlerine
yerleştirir.
</para>
<note>
<para>
libxml2'nin öğeleri otomatik olarak çözümlemesinden dolayı, eğer dahil
edilen XML dosyanın kendine ekli bir DTD'si varsa bu yöntem beklenmedik
sonuçlara yol açabilir.
</para>
</note>
<caution>
<simpara>
Kayıtlı düğüm sınıflarının nesne kurucusu çağrılmaz.
</simpara>
</caution>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>seçenekler</parameter></term>
<listitem>
&dom.parameter.options;
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Belgeye XIncludes ile dahil edilen dosyaların sayısı. İşlem başarısız
olursa -1, dahil edilecek birşey yoksa &false; döner.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>- <methodname>DOMDocument::xinclude</methodname> örneği</title>
<programlisting role="php">
<![CDATA[
<?php
$xml = <<<EOD
<?xml version="1.0" ?>
<chapter xmlns:xi="http://www.w3.org/2001/XInclude">
<title>Yabancı kitapları</title>
<para>
<xi:include href="kitap.xml">
<xi:fallback>
<error>xinclude: kitap.xml dosyasına rastlanmadı</error>
</xi:fallback>
</xi:include>
</para>
</chapter>
EOD;
$dom = new DOMDocument;
// çıktı göze hoş görünsün
$dom->preserveWhiteSpace = false;
$dom->formatOutput = true;
// yutarıdaki XML dizgeyi yükleyelim
$dom->loadXML($xml);
// dahil edilecek dosyaların içeriklerini alalım
$dom->xinclude();
echo $dom->saveXML();
?>
]]>
</programlisting>
&example.outputs.similar;
<screen role="xml">
<![CDATA[
<?xml version="1.0"?>
<chapter xmlns:xi="http://www.w3.org/2001/XInclude">
<title>Yabancı kitaplar</title>
<para>
<row xml:base="/home/didou/book.xml">
<entry>The Grapes of Wrath</entry>
<entry>John Steinbeck</entry>
<entry>en</entry>
<entry>0140186409</entry>
</row>
<row xml:base="/home/didou/book.xml">
<entry>The Pearl</entry>
<entry>John Steinbeck</entry>
<entry>en</entry>
<entry>014017737X</entry>
</row>
<row xml:base="/home/didou/book.xml">
<entry>Samarcande</entry>
<entry>Amine Maalouf</entry>
<entry>fr</entry>
<entry>2253051209</entry>
</row>
</para>
</chapter>
]]>
</screen>
</example>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->