added japanese translation of xml sesion. 93/8693/2
Rui Hirokawa [Tue, 14 Aug 2012 07:30:31 +0000 (16:30 +0900)]
Change-Id: I61c41e4ce1f7266b2cce7f2277a0f6056061511e

24 files changed:
scilab/modules/xml/help/ja_JP/XMLObjects.xml [new file with mode: 0644]
scilab/modules/xml/help/ja_JP/xmlAddNs.xml [new file with mode: 0644]
scilab/modules/xml/help/ja_JP/xmlAsNumber.xml [new file with mode: 0644]
scilab/modules/xml/help/ja_JP/xmlAsText.xml [new file with mode: 0644]
scilab/modules/xml/help/ja_JP/xmlDTD.xml [new file with mode: 0644]
scilab/modules/xml/help/ja_JP/xmlDelete.xml [new file with mode: 0644]
scilab/modules/xml/help/ja_JP/xmlDocument.xml [new file with mode: 0644]
scilab/modules/xml/help/ja_JP/xmlDump.xml [new file with mode: 0644]
scilab/modules/xml/help/ja_JP/xmlElement.xml [new file with mode: 0644]
scilab/modules/xml/help/ja_JP/xmlFormat.xml [new file with mode: 0644]
scilab/modules/xml/help/ja_JP/xmlGetNsByHref.xml [new file with mode: 0644]
scilab/modules/xml/help/ja_JP/xmlGetNsByPrefix.xml [new file with mode: 0644]
scilab/modules/xml/help/ja_JP/xmlGetOpenDocs.xml [new file with mode: 0644]
scilab/modules/xml/help/ja_JP/xmlIsValidObject.xml [new file with mode: 0644]
scilab/modules/xml/help/ja_JP/xmlNs.xml [new file with mode: 0644]
scilab/modules/xml/help/ja_JP/xmlRead.xml [new file with mode: 0644]
scilab/modules/xml/help/ja_JP/xmlReadStr.xml [new file with mode: 0644]
scilab/modules/xml/help/ja_JP/xmlRelaxNG.xml [new file with mode: 0644]
scilab/modules/xml/help/ja_JP/xmlRemove.xml [new file with mode: 0644]
scilab/modules/xml/help/ja_JP/xmlSchema.xml [new file with mode: 0644]
scilab/modules/xml/help/ja_JP/xmlSetAttributes.xml [new file with mode: 0644]
scilab/modules/xml/help/ja_JP/xmlValidate.xml [new file with mode: 0644]
scilab/modules/xml/help/ja_JP/xmlWrite.xml [new file with mode: 0644]
scilab/modules/xml/help/ja_JP/xmlXPath.xml [new file with mode: 0644]

diff --git a/scilab/modules/xml/help/ja_JP/XMLObjects.xml b/scilab/modules/xml/help/ja_JP/XMLObjects.xml
new file mode 100644 (file)
index 0000000..912c3b1
--- /dev/null
@@ -0,0 +1,354 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) 2012 - Scilab Enterprises - Calixte DENIZET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution.  The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+*
+-->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="XMLObjects" xml:lang="ja">
+    <refnamediv>
+        <refname>XML Objects</refname>
+        <refpurpose>異なるのXMLオブジェクトのプロパティを記述する</refpurpose>
+    </refnamediv>
+    <refsection>
+        <title>内容</title>
+        <itemizedlist>
+            <listitem>
+                <para>
+                    <link linkend="XMLDocument">XML文書</link>
+                </para>
+            </listitem>
+            <listitem>
+                <para>
+                    <link linkend="XMLElement">XML要素</link>
+                </para>
+            </listitem>
+            <listitem>
+                <para>
+                    <link linkend="XMLAttributes">XML属性</link>
+                </para>
+            </listitem>
+            <listitem>
+                <para>
+                    <link linkend="XMLNamespace">XML名前空間</link>
+                </para>
+            </listitem>
+            <listitem>
+                <para>
+                    <link linkend="XMLNodeList">XMLノードリスト</link>
+                </para>
+            </listitem>
+            <listitem>
+                <para>
+                    <link linkend="XMLNodeSet">XML XPath結果セット</link>
+                </para>
+            </listitem>
+            <listitem>
+                <para>
+                    <link linkend="XMLValid">XML検証ファイル</link>
+                </para>
+            </listitem>
+        </itemizedlist>
+    </refsection>
+    <refsection>
+        <title>説明</title>
+        <para>ノードおよびそのプロパティをアクセスおよび修正可能です.</para>
+    </refsection>
+    <refsection id="XMLDocument">
+        <title>XML文書</title>
+        <para>XML文書は以下の2つのプロパティを有します: root および url
+            <itemizedlist>
+                <listitem>
+                    <para>
+                        <emphasis role="bold">root</emphasis>: 文書のルート要素で, XML要素です;
+                    </para>
+                </listitem>
+                <listitem>
+                    <para>
+                        <emphasis role="bold">url</emphasis>: urlは文字列で,
+                        存在する場合は文書のURL,未定義の場合は空文字列となります.
+                    </para>
+                </listitem>
+            </itemizedlist>
+        </para>
+        <programlisting role="example"><![CDATA[
+    doc = xmlReadStr("<root><a att=""foo"" rib=""bar""><b>Hello</b></a></root>");
+    doc.root = doc.root.children(1);
+    xmlDump(doc)
+    doc.url = TMPDIR+"/foo.xml";
+    doc
+    xmlWrite(doc);
+    xmlDelete(doc);
+    ]]></programlisting>
+    </refsection>
+    <refsection id="XMLElement">
+        <title>XML要素</title>
+        <para>XML要素は以下の7つのプロパティを有します:
+            <itemizedlist>
+                <listitem>
+                    <para>
+                        <emphasis role="bold">name</emphasis>: タグ名;
+                    </para>
+                </listitem>
+                <listitem>
+                    <para>
+                        <emphasis role="bold">namespace</emphasis>: XML名前空間オブジェクト;
+                    </para>
+                </listitem>
+                <listitem>
+                    <para>
+                        <emphasis role="bold">content</emphasis>: 
+                        ノードの内容を表す文字列.
+                        例えば,&lt;A&gt;hello &lt;B&gt;world&lt;/B&gt; というノードA
+                        の内容は文字列 "hello world"となります.
+                    </para>
+                </listitem>
+                <listitem>
+                    <para>
+                        <emphasis role="bold">type</emphasis>: 
+                        ノードの型を表す文字列. 以下の値のどれかとなります:
+                        "XML_ELEMENT_NODE", "XML_ATTRIBUTE_NODE", "XML_TEXT_NODE", "XML_CDATA_SECTION_NODE", "XML_ENTITY_REF_NODE", "XML_ENTITY_NODE", "XML_PI_NODE", "XML_COMMENT_NODE", "XML_DOCUMENT_NODE", "XML_DOCUMENT_TYPE_NODE", "XML_DOCUMENT_FRAG_NODE", "XML_NOTATION_NODE", "XML_HTML_DOCUMENT_NODE", "XML_DTD_NODE", "XML_ELEMENT_DECL", "XML_ATTRIBUTE_DECL", "XML_ENTITY_DECL", "XML_NAMESPACE_DECL", "XML_XINCLUDE_START", "XML_XINCLUDE_END", "XML_DOCB_DOCUMENT_NODE".
+                    </para>
+                </listitem>
+                <listitem>
+                    <para>
+                        <emphasis role="bold">parent</emphasis>: 親XML要素;
+                    </para>
+                </listitem>
+                <listitem>
+                    <para>
+                        <emphasis role="bold">attributes</emphasis>: 
+                        XML属性オブジェクトとして表したノード属性;
+                    </para>
+                </listitem>
+                <listitem>
+                    <para>
+                        <emphasis role="bold">children</emphasis>: 
+                        XMLノードリストオブジェクトとして表した子要素.
+                    </para>
+                </listitem>
+                <listitem>
+                    <para>
+                        <emphasis role="bold">line</emphasis>: 
+                        XML要素の線の定義.
+                    </para>
+                </listitem>
+            </itemizedlist>
+            <programlisting role="example"><![CDATA[
+    doc = xmlReadStr("<root xmlns:bar=""http://www.scilab.org/""><bar:a att=""foo"" rib=""bar""><b>Hello</b><c> world</c></bar:a></root>");
+    first = doc.root.children(1);
+    b = first.children(1);
+
+    // "new_attribute"という名前の属性を新規に追加
+    first.attributes.new_attribute = "value";
+
+    // firstの子の名前空間を表示
+    first.namespace
+
+    // ノードの内容を表示
+    first.content
+
+    // bは親を有します
+    b.parent
+
+    // firstに子を追加できます.
+    first.children(3) = b
+
+    // 整数でない添字により挿入を行えます.
+    first.children(1.5) = "<d> Scilab</d>"
+
+    // firstの子が上の行で定義されています...
+    b.line
+
+    xmlDump(first)
+    xmlDelete(doc);
+    ]]></programlisting>
+        </para>
+    </refsection>
+    <refsection id="XMLAttributes">
+        <title>XML属性</title>
+        <para>
+            XML属性は,属性の名前を属性の値にマップするハッシュテーブルの一種です.
+            属性の値は,このオブジェクトのフィールドとして属性の名前,または
+            1から属性の大きさまでの添字番号によりアクセスや修正が可能です.
+        </para>
+        <programlisting role="example"><![CDATA[
+    doc = xmlReadStr("<root xmlns:bar=""http://www.scilab.org/""><bar:a att=""foo"" rib=""bar""><b>Hello</b><c> world</c></bar:a></root>");
+    first = doc.root.children(1);
+
+    // 属性を読み込みます
+    first.attributes.att
+
+    // 空の属性を設定します
+    first.attributes.att = "";
+
+    // 新しい属性を追加します
+    first.attributes.hello = "world";
+
+    // 添字を使用します
+    first.attributes(1) = "Bonjour";
+    first.attributes(1)
+
+    xmlDump(first)
+    xmlDelete(doc);
+    ]]></programlisting>
+    </refsection>
+    <refsection id="XMLNamespace">
+        <title>XML名前空間</title>
+        <para>XML名前空間は以下の2つのプロパティを有します: href および prefix
+            <itemizedlist>
+                <listitem>
+                    <para>
+                        <emphasis role="bold">href</emphasis>: 名前空間hrefを表す文字列;
+                    </para>
+                </listitem>
+                <listitem>
+                    <para>
+                        <emphasis role="bold">prefix</emphasis>: 
+                        この名前空間で使用する接頭辞を表す文字列.
+                    </para>
+                </listitem>
+            </itemizedlist>
+        </para>
+        <programlisting role="example"><![CDATA[
+    doc = xmlReadStr("<root xmlns:bar=""http://www.scilab.org/""><bar:a att=""foo"" rib=""bar""><b>Hello</b><c> world</c></bar:a></root>");
+    ns = doc.root.children(1).namespace;
+    ns.href
+    ns.prefix
+
+    xmlDelete(doc);
+    ]]></programlisting>
+    </refsection>
+    <refsection id="XMLNodeList">
+        <title>XMLノードリスト</title>
+        <para>
+            XMLノードリストはある要素の子に番号を付ける際に使用される
+            型です.各要素は整数の添字によりアクセスできます.
+            これはリストであるため,doubleの添字により,
+            新しい要素をこのリストに挿入することができます.
+        </para>
+        <para>
+            リストの大きさは,'size'フィールドにより取得できます.
+        </para>
+        <para>
+            リストの各ノードの名前または内容は'name'または'content'フィールド
+            により取得できます.
+        </para>
+        <programlisting role="example"><![CDATA[
+    doc = xmlReadStr("<root><a>Hello</a><b> world</b></root>");
+    c = doc.root.children;
+
+    // 2つの要素があることが確認できます
+    c.size
+
+    // 最初の要素を読み込みます
+    xmlDump(c(1))
+
+    // 特定の要素を他の要素で置換します
+    c(1) = "<c>Hello</c>"
+
+    // 新しい要素を最初の要素と二番目の要素の間に挿入します
+    c(1.5) = "<d> Scilab</d>" // 1.5 or 1.234...
+
+    // 新しい要素を末尾またはリストの先頭に挿入します
+    c(0) = "<e>Head </e>"
+    c(217) = "<f> Tail</f>"
+
+    xmlDump(c)
+
+    // ノードの名前を取得します
+    c.name
+
+    // ノードの内容を取得します
+    c.content
+
+    xmlDelete(doc);
+    ]]></programlisting>
+    </refsection>
+    <refsection id="XMLNodeSet">
+        <title>XML XPath結果セット</title>
+        <para>
+            XMLノードセットは,XPathクエリから返されたオブジェクトです.
+            新しい要素を挿入したり,既存の要素を置換することはできません.
+            できることは整数の添字により要素を取得することのみです.
+        </para>
+        <para>
+            このセットの大きさは'size'フィールドにより取得できます.
+        </para>
+        <programlisting role="example"><![CDATA[
+    doc = xmlReadStr("<root><a><b>Hello</b></a><a>World</a></root>");
+    s = xmlXPath(doc, "//a")
+    s.size
+
+    s(1).content
+    s(2).content
+
+    // または ...
+    s.content
+
+    xmlDelete(doc);
+    ]]></programlisting>
+    </refsection>
+    <refsection id="XMLValid">
+        <title>XML検証ファイル</title>
+        <para>XML検証ファイルは文書の検証に使用されるオブジェクトです.
+            DTD, Relax NGまたは schemaにより検証できます.
+        </para>
+        <programlisting role="example"><![CDATA[
+    doc = xmlRead("SCI/modules/xml/tests/unit_tests/library.xml");
+    dtd = xmlDTD("SCI/modules/xml/tests/unit_tests/library.dtd");
+    schema = xmlSchema("SCI/modules/xml/tests/unit_tests/library.xsd");
+    rng = xmlRelaxNG("SCI/modules/xml/tests/unit_tests/library.rng");
+
+    // 検証
+    xmlValidate(doc, dtd);
+    xmlValidate(doc, rng);
+    xmlValidate(doc, schema);
+
+    xmlDelete("all");
+    ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>参照</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="xmlRead">xmlRead</link>
+            </member>
+            <member>
+                <link linkend="xmlReadStr">xmlReadStr</link>
+            </member>
+            <member>
+                <link linkend="xmlElement">xmlElement</link>
+            </member>
+            <member>
+                <link linkend="xmlDocument">xmlDocument</link>
+            </member>
+            <member>
+                <link linkend="xmlNs">xmlNs</link>
+            </member>
+            <member>
+                <link linkend="xmlDTD">xmlDTD</link>
+            </member>
+            <member>
+                <link linkend="xmlSchema">xmlSchema</link>
+            </member>
+            <member>
+                <link linkend="xmlRelaxNG">xmlRelaxNG</link>
+            </member>
+        </simplelist>
+    </refsection>
+    <refsection>
+        <title>履歴</title>
+        <revhistory>
+            <revision>
+                <revnumber>5.4.0</revnumber>
+                <revremark>XMLモジュールが導入されました.</revremark>
+            </revision>
+        </revhistory>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/xml/help/ja_JP/xmlAddNs.xml b/scilab/modules/xml/help/ja_JP/xmlAddNs.xml
new file mode 100644 (file)
index 0000000..d13ae3a
--- /dev/null
@@ -0,0 +1,95 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) 2012 - Scilab Enterprises - Calixte DENIZET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution.  The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+*
+-->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="xmlAddNs" xml:lang="ja">
+    <refnamediv>
+        <refname>xmlAddNs</refname>
+        <refpurpose>XML要素に名前空間を追加</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>呼び出し手順</title>
+        <synopsis>
+            xmlAddNs(elem, [, ns1 [, ns2, ...]])
+        </synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>引数</title>
+        <variablelist>
+            <varlistentry>
+                <term>elem</term>
+                <listitem>
+                    <para>XMLElem型のmlist</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>nsi</term>
+                <listitem>
+                    <para>XMLNs型のmlist</para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>説明</title>
+        <para>要素に1つ以上の名前空間を追加します.</para>
+    </refsection>
+    <refsection>
+        <title>例</title>
+        <programlisting role="example"><![CDATA[
+    doc = xmlDocument("TMPDIR/foo.xml");
+    doc.root = xmlElement(doc, "root");
+    a = xmlElement(doc, "a");
+    b = xmlElement(doc, "b");
+    ns_scilab = xmlNs(a, "scilab", "http://www.scilab.org");
+    ns_balics = xmlNs(a, "balics", "http://gro.balics.www");
+    xmlAddNs(b, ns_scilab, ns_balics);
+
+    doc.root.children(1) = a;
+    doc.root.children(2) = b;
+    xmlDump(doc)
+
+    xmlDelete(doc);
+    ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>参照</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="XMLObjects">XML Objects</link>
+            </member>
+            <member>
+                <link linkend="xmlDocument">xmlDocument</link>
+            </member>
+            <member>
+                <link linkend="xmlElement">xmlElement</link>
+            </member>
+            <member>
+                <link linkend="xmlNs">xmlNs</link>
+            </member>
+            <member>
+                <link linkend="xmlGetNsByHref">xmlGetNsByHref</link>
+            </member>
+            <member>
+                <link linkend="xmlGetNsByPrefix">xmlGetNsByPrefix</link>
+            </member>
+        </simplelist>
+    </refsection>
+    <refsection>
+        <title>履歴</title>
+        <revhistory>
+            <revision>
+                <revnumber>5.4.0</revnumber>
+                <revremark>XMLモジュールが導入されました.</revremark>
+            </revision>
+        </revhistory>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/xml/help/ja_JP/xmlAsNumber.xml b/scilab/modules/xml/help/ja_JP/xmlAsNumber.xml
new file mode 100644 (file)
index 0000000..9b22918
--- /dev/null
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) 2012 - Scilab Enterprises - Calixte DENIZET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution.  The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+*
+-->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="xmlAsNumber" xml:lang="ja">
+    <refnamediv>
+        <refname>xmlAsNumber</refname>
+        <refpurpose>XPathクエリの結果を数値の行に変換</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>呼び出し手順</title>
+        <synopsis>
+            nums = xmlAsNumber(xp)
+        </synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>引数</title>
+        <variablelist>
+            <varlistentry>
+                <term>xp</term>
+                <listitem>
+                    <para>xp, XMLSet または XMLList型のXML mlist</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>nums</term>
+                <listitem>
+                    <para>nums, doubleの行</para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>説明</title>
+        <para>
+            XPathクエリの結果またはノードの子は,数値を有するXMLElementsの集合とする
+            ことができます.
+            この関数の用途は,この際,各ノードの内容をdoubleに変換することです.
+        </para>
+    </refsection>
+    <refsection>
+        <title>例</title>
+        <programlisting role="example"><![CDATA[
+    doc = xmlReadStr("<root><a>12</a><a>13</a><a>1.2345678</a><a>45e3</a><a>.23E-2</a></root>");
+
+    // 名前が "a" に等しいノードの内容を取得
+    xp = xmlXPath(doc, "//a/text()");
+
+    // 結果をdoubleに変換
+    data = xmlAsNumber(xp)
+
+    xmlDelete(doc);
+    ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>参照</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="xmlXPath">xmlXPath</link>
+            </member>
+            <member>
+                <link linkend="xmlAsText">xmlAsText</link>
+            </member>
+        </simplelist>
+    </refsection>
+    <refsection>
+        <title>履歴</title>
+        <revhistory>
+            <revision>
+                <revnumber>5.4.0</revnumber>
+                <revremark>XMLモジュールが導入されました.</revremark>
+            </revision>
+        </revhistory>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/xml/help/ja_JP/xmlAsText.xml b/scilab/modules/xml/help/ja_JP/xmlAsText.xml
new file mode 100644 (file)
index 0000000..d67f118
--- /dev/null
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) 2012 - Scilab Enterprises - Calixte DENIZET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution.  The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+*
+-->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="xmlAsText" xml:lang="ja">
+    <refnamediv>
+        <refname>xmlAsText</refname>
+        <refpurpose>XPathクエリの結果を文字列の行に変換</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>呼び出し手順</title>
+        <synopsis>
+            strings = xmlAsText(xp)
+        </synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>引数</title>
+        <variablelist>
+            <varlistentry>
+                <term>xp</term>
+                <listitem>
+                    <para>xp, XMLSet または XMLList型のXML mlist</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>strings</term>
+                <listitem>
+                    <para>strings, 文字列の行</para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>説明</title>
+        <para>
+            XPathクエリの結果またはノードの子は,文字列を有するXMLElementsの集合とする
+            ことができます.
+            この関数の用途は,この際,各ノードの内容を文字列に変換することです.      
+        </para>
+    </refsection>
+    <refsection>
+        <title>例</title>
+        <programlisting role="example"><![CDATA[
+    doc = xmlReadStr("<root><a>Hello</a><a>Scilab</a><a>World</a></root>");
+
+    // 名前が "a" に等しいノードの内容を取得
+    xp = xmlXPath(doc, "//a/text()");
+
+    // 結果を文字列に変換
+    data = xmlAsText(xp)
+
+    xmlDelete(doc);
+    ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>参照</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="xmlXPath">xmlXPath</link>
+            </member>
+            <member>
+                <link linkend="xmlAsNumber">xmlAsNumber</link>
+            </member>
+        </simplelist>
+    </refsection>
+    <refsection>
+        <title>履歴</title>
+        <revhistory>
+            <revision>
+                <revnumber>5.4.0</revnumber>
+                <revremark>XMLモジュールが導入されました.</revremark>
+            </revision>
+        </revhistory>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/xml/help/ja_JP/xmlDTD.xml b/scilab/modules/xml/help/ja_JP/xmlDTD.xml
new file mode 100644 (file)
index 0000000..fb506e7
--- /dev/null
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) 2012 - Scilab Enterprises - Calixte DENIZET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution.  The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+*
+-->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="xmlDTD" xml:lang="ja">
+    <refnamediv>
+        <refname>xmlDTD</refname>
+        <refpurpose>XML DTDオブジェクトを作成</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>呼び出し手順</title>
+        <synopsis>
+            dtd = xmlDTD(path)
+        </synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>引数</title>
+        <variablelist>
+            <varlistentry>
+                <term>path</term>
+                <listitem>
+                    <para>有効なファイルのパスを指定する文字列</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>dtd</term>
+                <listitem>
+                    <para>XMLValid型のmlist</para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>説明</title>
+        <para>文書をDTDで検証する際に有用です.</para>
+    </refsection>
+    <refsection>
+        <title>例</title>
+        <programlisting role="example"><![CDATA[
+    doc = xmlRead("SCI/modules/xml/tests/unit_tests/library.xml");
+    dtd = xmlDTD("SCI/modules/xml/tests/unit_tests/library.dtd");
+
+    // 文書が有効かどうかを確認します
+    // エラーが発生しない場合は有効です
+
+    xmlValidate(doc, dtd);
+
+    xmlDelete(doc, dtd);
+    ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>参照</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="xmlValidate">xmlValidate</link>
+            </member>
+        </simplelist>
+    </refsection>
+    <refsection>
+        <title>履歴</title>
+        <revhistory>
+            <revision>
+                <revnumber>5.4.0</revnumber>
+                <revremark>XMLモジュールが導入されました.</revremark>
+            </revision>
+        </revhistory>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/xml/help/ja_JP/xmlDelete.xml b/scilab/modules/xml/help/ja_JP/xmlDelete.xml
new file mode 100644 (file)
index 0000000..17b2e48
--- /dev/null
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) 2012 - Scilab Enterprises - Calixte DENIZET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution.  The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+*
+-->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="xmlDelete" xml:lang="ja">
+    <refnamediv>
+        <refname>xmlDelete</refname>
+        <refpurpose>XML文書を削除</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>呼び出し手順</title>
+        <synopsis>
+            xmlDelete(obj1 [, obj2, [...]])
+            xmlDelete("all")
+        </synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>引数</title>
+        <variablelist>
+            <varlistentry>
+                <term>obji</term>
+                <listitem>
+                    <para>XMLDoc または XMLValid型のmlist, 削除する文書</para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>説明</title>
+        <para>
+            文書または検証ファイルを削除します(この処理により,オブジェクトに関連する
+            全てのメモリを開放します).
+        </para>
+        <para>
+            xmlDelete("all") 構文が使用された場合,オープンされている文書が
+            全て削除されます.
+        </para>
+    </refsection>
+    <refsection>
+        <title>例</title>
+        <programlisting role="example"><![CDATA[
+    doc = xmlRead("http://www.w3.org/TR/2009/REC-xml-names-20091208/xml-names-10-3e.xml");
+    root = doc.root
+    xmlDelete(doc);
+
+    // ルートは有効ではなくなりました.. したがって,ルートにアクセスすると
+    // エラーを発生します.
+    // disp(root) => これは失敗します
+    ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>参照</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="xmlGetOpenDocs">xmlGetOpenDocs</link>
+            </member>
+        </simplelist>
+    </refsection>
+    <refsection>
+        <title>履歴</title>
+        <revhistory>
+            <revision>
+                <revnumber>5.4.0</revnumber>
+                <revremark>XMLモジュールが導入されました.</revremark>
+            </revision>
+        </revhistory>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/xml/help/ja_JP/xmlDocument.xml b/scilab/modules/xml/help/ja_JP/xmlDocument.xml
new file mode 100644 (file)
index 0000000..34a48ef
--- /dev/null
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) 2012 - Scilab Enterprises - Calixte DENIZET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution.  The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+*
+-->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="xmlDocument" xml:lang="ja">
+    <refnamediv>
+        <refname>xmlDocument</refname>
+        <refpurpose>XML文書を新規に作成</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>呼び出し手順</title>
+        <synopsis>
+            doc = xmlDocument([uri, [, version]])
+        </synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>引数</title>
+        <variablelist>
+            <varlistentry>
+                <term>uri</term>
+                <listitem>
+                    <para>文書のuriを指定する文字列</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>version</term>
+                <listitem>
+                    <para>文書のXMLバージョンを指定する文字列</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>doc</term>
+                <listitem>
+                    <para>XMLDoc型のmlist</para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>説明</title>
+        <para>XML文書を新規に作成します.</para>
+    </refsection>
+    <refsection>
+        <title>例</title>
+        <programlisting role="example"><![CDATA[
+    doc = xmlDocument("TMPDIR/foo.xml");
+    root = xmlElement(doc, "root");
+    root.attributes.attr = "value";
+
+    root.children(1) = "<a>hello</a>";
+    root.children(2) = xmlElement(doc, "b");
+    root.children(2).attributes.id = "123";
+    root.children(2).content = " world";
+
+    doc.root = root;
+    xmlDump(doc)
+
+    xmlDelete(doc);
+    ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>参照</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="XMLObjects">XML Objects</link>
+            </member>
+            <member>
+                <link linkend="xmlElement">xmlElement</link>
+            </member>
+        </simplelist>
+    </refsection>
+    <refsection>
+        <title>履歴</title>
+        <revhistory>
+            <revision>
+                <revnumber>5.4.0</revnumber>
+                <revremark>XMLモジュールが導入されました.</revremark>
+            </revision>
+        </revhistory>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/xml/help/ja_JP/xmlDump.xml b/scilab/modules/xml/help/ja_JP/xmlDump.xml
new file mode 100644 (file)
index 0000000..cad1594
--- /dev/null
@@ -0,0 +1,92 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) 2012 - Scilab Enterprises - Calixte DENIZET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution.  The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+*
+-->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="xmlDump" xml:lang="ja">
+    <refnamediv>
+        <refname>xmlDump</refname>
+        <refpurpose>XMLオブジェクトをダンプする</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>呼び出し手順</title>
+        <synopsis>
+            str = xmlDump(xmlObj [, indent])
+        </synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>引数</title>
+        <variablelist>
+            <varlistentry>
+                <term>xmlObj</term>
+                <listitem>
+                    <para>xmlObj, XML mlist</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>indent</term>
+                <listitem>
+                    <para>indent, 論理値</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>str</term>
+                <listitem>
+                    <para>str, 文字列の行列</para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>説明</title>
+        <para>
+            XMLオブジェクトをダンプします. 
+            ダンプ可能なオブジェクトは XMLDoc, XMLElement または XMLListです.
+            indentがfalseの場合(デフォルトではtrue),インデント及び復改記号は
+            追加されません.
+        </para>
+    </refsection>
+    <refsection>
+        <title>例</title>
+        <programlisting role="example"><![CDATA[
+    doc = xmlReadStr("<root><a att=""foo"" rib=""bar""><b>Hello</b></a></root>");
+    // 文書をダンプ
+    xmlDump(doc)
+
+    // インデントなしに文書をダンプ
+    xmlDump(doc, %f)
+
+    // ノードリストをダンプ
+    xmlDump(doc.root.children)
+
+    //要素をダンプ
+    xmlDump(doc.root.children(1))
+
+    xmlDelete(doc);
+    ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>参照</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="xmlWrite">xmlWrite</link>
+            </member>
+        </simplelist>
+    </refsection>
+    <refsection>
+        <title>履歴</title>
+        <revhistory>
+            <revision>
+                <revnumber>5.4.0</revnumber>
+                <revremark>XMLモジュールが導入されました.</revremark>
+            </revision>
+        </revhistory>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/xml/help/ja_JP/xmlElement.xml b/scilab/modules/xml/help/ja_JP/xmlElement.xml
new file mode 100644 (file)
index 0000000..b927ed4
--- /dev/null
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) 2012 - Scilab Enterprises - Calixte DENIZET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution.  The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+*
+-->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="xmlElement" xml:lang="ja">
+    <refnamediv>
+        <refname>xmlElement</refname>
+        <refpurpose>XML要素を新規に作成する</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>呼び出し手順</title>
+        <synopsis>
+            e = xmlElement(doc, name)
+        </synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>引数</title>
+        <variablelist>
+            <varlistentry>
+                <term>doc</term>
+                <listitem>
+                    <para>XMLDoc型のmlist</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>name</term>
+                <listitem>
+                    <para>要素名を指定する文字列</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>e</term>
+                <listitem>
+                    <para>XMLElem型のmlist</para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>説明</title>
+        <para>指定した名前を有するXML要素を新たに作成します.</para>
+    </refsection>
+    <refsection>
+        <title>Examples</title>
+        <programlisting role="example"><![CDATA[
+    doc = xmlReadStr("<root><a>Hello</a><b> world</b></root>");
+    e = xmlElement(doc, "c");
+    e.attributes.attr = "value";
+    e.content = "!";
+    doc.root.children(3) = e;
+    xmlDump(doc)
+
+    xmlDelete(doc);
+    ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>参照</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="XMLObjects">XML Objects</link>
+            </member>
+            <member>
+                <link linkend="xmlDocument">xmlDocument</link>
+            </member>
+        </simplelist>
+    </refsection>
+    <refsection>
+        <title>履歴</title>
+        <revhistory>
+            <revision>
+                <revnumber>5.4.0</revnumber>
+                <revremark>XMLモジュールが導入されました.</revremark>
+            </revision>
+        </revhistory>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/xml/help/ja_JP/xmlFormat.xml b/scilab/modules/xml/help/ja_JP/xmlFormat.xml
new file mode 100644 (file)
index 0000000..6b3a8a0
--- /dev/null
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) 2012 - Scilab Enterprises - Calixte DENIZET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution.  The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+*
+-->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="xmlFormat" xml:lang="ja">
+    <refnamediv>
+        <refname>xmlFormat</refname>
+        <refpurpose>Scilab変数をXMLに整形する</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>呼び出し手順</title>
+        <synopsis>
+            xmlCode = xmlFormat(scilabVar)
+        </synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>引数</title>
+        <variablelist>
+            <varlistentry>
+                <term>scilabVar</term>
+                <listitem>
+                    <para>scilabVar, Scilab変数</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>xmlCode</term>
+                <listitem>
+                    <para>xmlCode, XMLコードを含む文字列</para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>説明</title>
+        <para>
+            この関数は単独ではなにもしません! 有用なことを行うにはオーバーロードされる
+            必要があります.
+        </para>
+        <para>
+            Scilab変数をXMLツリーに変換する際に使用されます.
+        </para>
+    </refsection>
+    <refsection>
+        <title>例</title>
+        <programlisting role="example"><![CDATA[
+    doc = xmlReadStr("<root><a att=""foo"" rib=""bar""><b>Hello</b></a></root>");
+    // このコードは失敗します:
+    // doc.root.children(1.5) = 1.23456;
+
+    // ここで, double型を処理するために %s_xmlFormat を定義します
+    // この例ではdouble行列は処理されないことに注意してください
+    function y=%s_xmlFormat(x), y="<number>" + string(x) + "</number>", endfunction;
+
+    // 数値の挿入を再試行
+    doc.root.children(1.5) = 1.23456;
+    xmlDump(doc)
+
+    xmlDelete(doc);
+    ]]></programlisting>
+    </refsection>
+    <refsection>
+        <title>履歴</title>
+        <revhistory>
+            <revision>
+                <revnumber>5.4.0</revnumber>
+                <revremark>XMLモジュールが導入されました.</revremark>
+            </revision>
+        </revhistory>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/xml/help/ja_JP/xmlGetNsByHref.xml b/scilab/modules/xml/help/ja_JP/xmlGetNsByHref.xml
new file mode 100644 (file)
index 0000000..7a9d90d
--- /dev/null
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) 2012 - Scilab Enterprises - Calixte DENIZET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution.  The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+*
+-->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="xmlGetNsByHref" xml:lang="ja">
+    <refnamediv>
+        <refname>xmlGetNsByHref</refname>
+        <refpurpose>名前名前をhrefにより取得する</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>呼び出し手順</title>
+        <synopsis>
+            ns = xmlGetNsByHref(elem, href)
+        </synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>引数</title>
+        <variablelist>
+            <varlistentry>
+                <term>elem</term>
+                <listitem>
+                    <para>XMLElem型のmlist</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>href</term>
+                <listitem>
+                    <para>hrefを指定する文字列</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>ns</term>
+                <listitem>
+                    <para>XMLNs型のmlist</para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>説明</title>
+        <para>
+            要素またはアクセサ上で指定したhrefを有する名前空間を探します.
+        </para>
+    </refsection>
+    <refsection>
+        <title>例</title>
+        <programlisting role="example"><![CDATA[
+    doc = xmlReadStr("<root><a xmlns:scilab=""http://www.scilab.org""><b>Hello </b><scilab:c>World</scilab:c></a></root>")
+    c = doc.root.children(1).children(2);
+    xmlGetNsByHref(c, "http://www.scilab.org")
+
+    xmlDelete(doc);
+    ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>参照</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="xmlNs">xmlNs</link>
+            </member>
+            <member>
+                <link linkend="xmlGetNsByPrefix">xmlGetNsByPrefix</link>
+            </member>
+        </simplelist>
+    </refsection>
+    <refsection>
+        <title>履歴</title>
+        <revhistory>
+            <revision>
+                <revnumber>5.4.0</revnumber>
+                <revremark>XMLモジュールが導入されました.</revremark>
+            </revision>
+        </revhistory>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/xml/help/ja_JP/xmlGetNsByPrefix.xml b/scilab/modules/xml/help/ja_JP/xmlGetNsByPrefix.xml
new file mode 100644 (file)
index 0000000..b948046
--- /dev/null
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) 2012 - Scilab Enterprises - Calixte DENIZET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution.  The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+*
+-->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="xmlGetNsByPrefix" xml:lang="ja">
+    <refnamediv>
+        <refname>xmlGetNsByPrefix</refname>
+        <refpurpose>接頭辞により名前空間を取得する</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>呼び出し手順</title>
+        <synopsis>
+            ns = xmlGetNsByPrefix(elem, prefix)
+        </synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>引数</title>
+        <variablelist>
+            <varlistentry>
+                <term>elem</term>
+                <listitem>
+                    <para>XMLElem型のmlist</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>prefix</term>
+                <listitem>
+                    <para>接頭辞を指定する文字列</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>ns</term>
+                <listitem>
+                    <para>XMLNs型のmlist</para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>説明</title>
+        <para>
+            要素またはそのアクセサ上で指定した接頭辞を有する名前空間を探します.
+        </para>
+    </refsection>
+    <refsection>
+        <title>例</title>
+        <programlisting role="example"><![CDATA[
+    doc = xmlReadStr("<root><a xmlns:scilab=""http://www.scilab.org""><b>Hello </b><scilab:c>World</scilab:c></a></root>")
+    c = doc.root.children(1).children(2);
+    xmlGetNsByPrefix(c, "scilab")
+    
+    xmlDelete(doc);
+    ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>参照</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="xmlNs">xmlNs</link>
+            </member>
+            <member>
+                <link linkend="xmlGetNsByHref">xmlGetNsByHref</link>
+            </member>
+        </simplelist>
+    </refsection>
+    <refsection>
+        <title>履歴</title>
+        <revhistory>
+            <revision>
+                <revnumber>5.4.0</revnumber>
+                <revremark>XMLモジュールが導入されました.</revremark>
+            </revision>
+        </revhistory>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/xml/help/ja_JP/xmlGetOpenDocs.xml b/scilab/modules/xml/help/ja_JP/xmlGetOpenDocs.xml
new file mode 100644 (file)
index 0000000..fbf44cc
--- /dev/null
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) 2012 - Scilab Enterprises - Calixte DENIZET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution.  The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+*
+-->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="xmlGetOpenDocs" xml:lang="ja">
+    <refnamediv>
+        <refname>xmlGetOpenDocs</refname>
+        <refpurpose>オープンされたXML文書またはXML検証ファイルを全て取得する.
+        </refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>呼び出し手順</title>
+        <synopsis>
+            list = xmlGetOpenDocs()
+        </synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>引数</title>
+        <variablelist>
+            <varlistentry>
+                <term>list</term>
+                <listitem>
+                    <para>list, 
+                        オープンされた全てのXML文書またはXML検証ファイルを含むリスト
+                    </para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>Description</title>
+        <para>This function is useful to delete open documents (and essentially to free the memory).</para>
+    </refsection>
+    <refsection>
+        <title>Examples</title>
+        <programlisting role="example"><![CDATA[
+    doc = xmlRead("http://www.w3.org/TR/2009/REC-xml-names-20091208/xml-names-10-3e.xml");
+    doc = xmlReadStr("<root><a att=""foo"" rib=""bar""><b>Hello</b></a></root>");
+    l = xmlGetOpenDocs()
+    xmlDelete("all");
+    ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>参照</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="xmlDelete">xmlDelete</link>
+            </member>
+        </simplelist>
+    </refsection>
+    <refsection>
+        <title>履歴</title>
+        <revhistory>
+            <revision>
+                <revnumber>5.4.0</revnumber>
+                <revremark>XMLモジュールが導入されました.</revremark>
+            </revision>
+        </revhistory>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/xml/help/ja_JP/xmlIsValidObject.xml b/scilab/modules/xml/help/ja_JP/xmlIsValidObject.xml
new file mode 100644 (file)
index 0000000..3409735
--- /dev/null
@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) 2012 - Scilab Enterprises - Calixte DENIZET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution.  The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+*
+-->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="xmlIsValidObject" xml:lang="ja">
+    <refnamediv>
+        <refname>xmlIsValidObject</refname>
+        <refpurpose>XMLオブジェクトの存在を調べる</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>呼び出し手順</title>
+        <synopsis>
+            exists = xmlIsValidObject(obj)
+        </synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>引数</title>
+        <variablelist>
+            <varlistentry>
+                <term>obj</term>
+                <listitem>
+                    <para>XMLオブジェクトまたは変数名を含む文字列の行列</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>exists</term>
+                <listitem>
+                    <para>
+                        XMLオブジェクトが存在するかどうかを示す
+                        論理値または論理値の行列
+                    </para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>説明</title>
+        <para>
+            XML文書が削除された際,付随するオブジェクトは全て破棄されますが,
+            Scilab側ではこのオブジェクトが生存し続けます.
+            このため,この関数はScilab側であるオブジェクトが有効かどうかを
+            知るために有用です.
+        </para>
+    </refsection>
+    <refsection>
+        <title>例</title>
+        <programlisting role="example"><![CDATA[
+    doc = xmlRead("http://www.w3.org/TR/2009/REC-xml-names-20091208/xml-names-10-3e.xml");
+    r = doc.root
+    // %Tを返します
+    xmlIsValidObject(r)
+
+    // 文書を削除
+    xmlDelete(doc);
+
+    // [%F %F]を返します
+    xmlIsValidObject(["doc" "r"])
+    ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>参照</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="XMLObjects">XML Objects</link>
+            </member>
+            <member>
+                <link linkend="xmlDelete">xmlDelete</link>
+            </member>
+        </simplelist>
+    </refsection>
+    <refsection>
+        <title>履歴</title>
+        <revhistory>
+            <revision>
+                <revnumber>5.4.0</revnumber>
+                <revremark>XMLモジュールが導入されました.</revremark>
+            </revision>
+        </revhistory>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/xml/help/ja_JP/xmlNs.xml b/scilab/modules/xml/help/ja_JP/xmlNs.xml
new file mode 100644 (file)
index 0000000..81cb7eb
--- /dev/null
@@ -0,0 +1,99 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) 2012 - Scilab Enterprises - Calixte DENIZET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution.  The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+*
+-->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="xmlNs" xml:lang="ja">
+    <refnamediv>
+        <refname>xmlNs</refname>
+        <refpurpose>XML名前空間を新規に作成する</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>呼び出し手順</title>
+        <synopsis>
+            ns = xmlNs(elem, [prefix, [, href]])
+        </synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>引数</title>
+        <variablelist>
+            <varlistentry>
+                <term>elem</term>
+                <listitem>
+                    <para>XMLElem型のmlist</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>prefix</term>
+                <listitem>
+                    <para>この名前空間の接頭辞を指定する文字列</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>href</term>
+                <listitem>
+                    <para>この名前空間のhrefを指定する文字列</para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>説明</title>
+        <para>
+            あるXML要素に関連するXML名前空間を新たに作成します.
+            作成された名前空間はその要素またはその子要素で使用できます.
+        </para>
+    </refsection>
+    <refsection>
+        <title>例</title>
+        <programlisting role="example"><![CDATA[
+    doc = xmlDocument("TMPDIR/foo.xml");
+    doc.root = xmlElement(doc, "root");
+    ns = xmlNs(doc.root, "scilab", "http://www.scilab.org");
+    doc.root.children(1) = "<a>hello</a>";
+    doc.root.children(1).namespace = ns;
+    xmlDump(doc)
+
+    xmlDelete(doc);
+    ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>参照</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="XMLObjects">XML Objects</link>
+            </member>
+            <member>
+                <link linkend="xmlDocument">xmlDocument</link>
+            </member>
+            <member>
+                <link linkend="xmlElement">xmlElement</link>
+            </member>
+            <member>
+                <link linkend="xmlAddNs">xmlAddNs</link>
+            </member>
+            <member>
+                <link linkend="xmlGetNsByHref">xmlGetNsByHref</link>
+            </member>
+            <member>
+                <link linkend="xmlGetNsByPrefix">xmlGetNsByPrefix</link>
+            </member>
+        </simplelist>
+    </refsection>
+    <refsection>
+        <title>履歴</title>
+        <revhistory>
+            <revision>
+                <revnumber>5.4.0</revnumber>
+                <revremark>XMLモジュールが導入されました.</revremark>
+            </revision>
+        </revhistory>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/xml/help/ja_JP/xmlRead.xml b/scilab/modules/xml/help/ja_JP/xmlRead.xml
new file mode 100644 (file)
index 0000000..4a58411
--- /dev/null
@@ -0,0 +1,112 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) 2012 - Scilab Enterprises - Calixte DENIZET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution.  The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+*
+-->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="xmlRead" xml:lang="ja">
+    <refnamediv>
+        <refname>xmlRead</refname>
+        <refpurpose>ローカルまたはリモートファイルからXMLストリームを読み込む</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>呼び出し手順</title>
+        <synopsis>
+            doc = xmlRead(path [, validateDTD])
+        </synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>引数</title>
+        <variablelist>
+            <varlistentry>
+                <term>path</term>
+                <listitem>
+                    <para>文字列, 読み込むファイルのパス.</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>validateDTD</term>
+                <listitem>
+                    <para>文書を検証するべきかどうかを示す論理値.</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>doc</term>
+                <listitem>
+                    <para>XMLDoc型のmlist</para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>説明</title>
+        <para>
+            XMLファイルを読み込んでパースします.
+            返される文書によりメモリに保持されるDOMツリーにアクセス可能です.
+        </para>
+        <para>
+            validateDTDにtrueが指定された場合,
+            文書は検証され,失敗するとパース処理は行われません.
+        </para>
+        <para>
+            (メモリリークを避けるために)
+            <link linkend="xmlDelete">xmlDelete</link>関数により
+            ツリーを開放する必要があることに注意してください.
+        </para>
+    </refsection>
+    <refsection>
+        <title>例</title>
+        <programlisting role="example"><![CDATA[
+    doc = xmlRead("http://www.w3.org/TR/2009/REC-xml-names-20091208/xml-names-10-3e.xml");
+    e = doc.root.children(1).children(1)
+    e.name
+    e.content
+    xmlDump(e)
+
+    // 'href'属性を有するノードを全て取得できます
+    q = xmlXPath(doc, "//*[@href]");
+    q(1).attributes.href
+
+    // 文書を削除します
+    xmlDelete(doc);
+    ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>参照</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="xmlReadStr">xmlReadStr</link>
+            </member>
+            <member>
+                <link linkend="xmlGetOpenDocs">xmlGetOpenDocs</link>
+            </member>
+            <member>
+                <link linkend="xmlDelete">xmlDelete</link>
+            </member>
+            <member>
+                <link linkend="xmlDocument">xmlDocument</link>
+            </member>
+            <member>
+                <link linkend="xmlXPath">xmlXPath</link>
+            </member>
+            <member>
+                <link linkend="xmlValidate">xmlValidate</link>
+            </member>
+        </simplelist>
+    </refsection>
+    <refsection>
+        <title>履歴</title>
+        <revhistory>
+            <revision>
+                <revnumber>5.4.0</revnumber>
+                <revremark>XMLモジュールが導入されました.</revremark>
+            </revision>
+        </revhistory>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/xml/help/ja_JP/xmlReadStr.xml b/scilab/modules/xml/help/ja_JP/xmlReadStr.xml
new file mode 100644 (file)
index 0000000..2bd1354
--- /dev/null
@@ -0,0 +1,111 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) 2012 - Scilab Enterprises - Calixte DENIZET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution.  The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+*
+-->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="xmlReadStr" xml:lang="ja">
+    <refnamediv>
+        <refname>xmlReadStr</refname>
+        <refpurpose>文字列からXMLツリーを読み込む</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>呼び出し手順</title>
+        <synopsis>
+            doc = xmlReadStr(string [, validateDTD])
+        </synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>引数</title>
+        <variablelist>
+            <varlistentry>
+                <term>string</term>
+                <listitem>
+                    <para>XMLコードを含む文字列.</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>validateDTD</term>
+                <listitem>
+                    <para>文書を検証する必要があるかどうかを示す論理値.</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>doc</term>
+                <listitem>
+                    <para>XMLDoc型のmlist</para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>説明</title>
+        <para>
+            XML文字列を読み込んでパースします.
+            返された文書によりメモリに保持されるDOMツリーにアクセスできます.
+        </para>
+        <para>validateDTDにtrueが指定された場合, 
+            文書は検証され,失敗するとパース処理は行われません.
+        </para>
+        <para>
+            (メモリリークを避けるために)
+            <link linkend="xmlDelete">xmlDelete</link>関数により
+            ツリーを開放する必要があることに注意してください.
+        </para>
+    </refsection>
+    <refsection>
+        <title>例</title>
+        <programlisting role="example"><![CDATA[
+    doc = xmlReadStr("<root><a att=""foo"" rib=""bar""><b>Hello</b></a></root>");
+    e = doc.root.children(1).children(1)
+    e.name
+    e.content
+    xmlDump(e)
+    doc.root.children(1).attributes.att
+    doc.root.children(1).attributes.rib
+
+    // 属性を修正
+    doc.root.children(1).attributes.att = "truc"
+    doc.root.children(1).attributes.rib = "machin"
+    xmlDump(doc.root.children(1))
+
+    // 文書を削除します
+    xmlDelete(doc);
+    ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>参照</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="xmlRead">xmlRead</link>
+            </member>
+            <member>
+                <link linkend="xmlGetOpenDocs">xmlGetOpenDocs</link>
+            </member>
+            <member>
+                <link linkend="xmlDelete">xmlDelete</link>
+            </member>
+            <member>
+                <link linkend="xmlDocument">xmlDocument</link>
+            </member>
+            <member>
+                <link linkend="xmlValidate">xmlValidate</link>
+            </member>
+        </simplelist>
+    </refsection>
+    <refsection>
+        <title>履歴</title>
+        <revhistory>
+            <revision>
+                <revnumber>5.4.0</revnumber>
+                <revremark>XMLモジュールが導入されました.</revremark>
+            </revision>
+        </revhistory>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/xml/help/ja_JP/xmlRelaxNG.xml b/scilab/modules/xml/help/ja_JP/xmlRelaxNG.xml
new file mode 100644 (file)
index 0000000..39a9bfc
--- /dev/null
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) 2012 - Scilab Enterprises - Calixte DENIZET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution.  The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+*
+-->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="xmlRelaxNG" xml:lang="ja">
+    <refnamediv>
+        <refname>xmlRelaxNG</refname>
+        <refpurpose>XML Relax NGオブジェクトを作成する</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>呼び出し手順</title>
+        <synopsis>
+            schema = xmlRelaxNG(path)
+        </synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>引数</title>
+        <variablelist>
+            <varlistentry>
+                <term>path</term>
+                <listitem>
+                    <para>検証ファイルのパスを指定する文字列</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>dtd</term>
+                <listitem>
+                    <para>XMLValid型のmlist</para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>説明</title>
+        <para>Relax NGで文書を検証する際に有用です.</para>
+    </refsection>
+    <refsection>
+        <title>例</title>
+        <programlisting role="example"><![CDATA[
+    doc = xmlRead("SCI/modules/xml/tests/unit_tests/library.xml");
+    rng = xmlRelaxNG("SCI/modules/xml/tests/unit_tests/library.rng");
+
+    // 文書が有効かどうかを調べます
+    // エラーが発生しない場合,ファイルは有効です
+
+    xmlValidate(doc, rng);
+
+    xmlDelete(doc, rng);
+    ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>参照</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="xmlValidate">xmlValidate</link>
+            </member>
+        </simplelist>
+    </refsection>
+    <refsection>
+        <title>履歴</title>
+        <revhistory>
+            <revision>
+                <revnumber>5.4.0</revnumber>
+                <revremark>XMLモジュールが導入されました.</revremark>
+            </revision>
+        </revhistory>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/xml/help/ja_JP/xmlRemove.xml b/scilab/modules/xml/help/ja_JP/xmlRemove.xml
new file mode 100644 (file)
index 0000000..7886ea0
--- /dev/null
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) 2012 - Scilab Enterprises - Calixte DENIZET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution.  The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+*
+-->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="xmlRemove" xml:lang="ja">
+    <refnamediv>
+        <refname>xmlRemove</refname>
+        <refpurpose>要素または要素のリストを親から削除する</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>呼び出し手順</title>
+        <synopsis>
+            xmlRemove(elems)
+        </synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>引数</title>
+        <variablelist>
+            <varlistentry>
+                <term>elems</term>
+                <listitem>
+                    <para>elems, XMLElem または XMLSet (XPathクエリの結果) 
+                        またはXMLlist (子のリスト)
+                    </para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>説明</title>
+        <para>
+            親から一つまたは複数の要素を分離します.
+            分離された要素は無条件に失われます.
+        </para>
+    </refsection>
+    <refsection>
+        <title>例</title>
+        <programlisting role="example"><![CDATA[
+    doc = xmlReadStr("<root><a>Hello</a><b>Scilab</b><a>World</a></root>");
+
+    // <a>を全て削除
+    xp = xmlXPath(doc, "//a");
+    xmlRemove(xp);
+    xmlDump(doc)
+    xmlDelete(doc);
+
+    // 最初の要素を削除
+    doc = xmlReadStr("<root><a>Hello</a><b>Scilab</b><a>World</a></root>");
+    xmlRemove(doc.root.children(1));
+    xmlDump(doc)
+
+    // ルートの子を全て削除
+    xmlRemove(doc.root.children);
+    xmlDump(doc)
+
+    xmlDelete(doc);
+    ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>参照</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="XMLObjects">XMLObjects</link>
+            </member>
+        </simplelist>
+    </refsection>
+    <refsection>
+        <title>履歴</title>
+        <revhistory>
+            <revision>
+                <revnumber>5.4.0</revnumber>
+                <revremark>XMLモジュールが導入されました.</revremark>
+            </revision>
+        </revhistory>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/xml/help/ja_JP/xmlSchema.xml b/scilab/modules/xml/help/ja_JP/xmlSchema.xml
new file mode 100644 (file)
index 0000000..857f79d
--- /dev/null
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) 2012 - Scilab Enterprises - Calixte DENIZET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution.  The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+*
+-->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="xmlSchema" xml:lang="ja">
+    <refnamediv>
+        <refname>xmlSchema</refname>
+        <refpurpose>XMLスキーマオブジェクトを作成する</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>呼び出し手順</title>
+        <synopsis>
+            schema = xmlSchema(path)
+        </synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>引数</title>
+        <variablelist>
+            <varlistentry>
+                <term>path</term>
+                <listitem>
+                    <para>検証ファイルのパスを指定する文字列</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>dtd</term>
+                <listitem>
+                    <para>XMLValid型のmlist</para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>説明</title>
+        <para>スキーマで文書を検証する際に有用です.</para>
+    </refsection>
+    <refsection>
+        <title>例</title>
+        <programlisting role="example"><![CDATA[
+    doc = xmlRead("SCI/modules/xml/tests/unit_tests/library.xml");
+    schema = xmlSchema("SCI/modules/xml/tests/unit_tests/library.xsd");
+
+    // 文書が有効かどうかを調べます
+    // エラーがない場合,ファイルは有効です
+
+    xmlValidate(doc, schema);
+
+    xmlDelete(doc, schema);
+    ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>参照</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="xmlValidate">xmlValidate</link>
+            </member>
+        </simplelist>
+    </refsection>
+    <refsection>
+        <title>履歴</title>
+        <revhistory>
+            <revision>
+                <revnumber>5.4.0</revnumber>
+                <revremark>XMLモジュールが導入されました.</revremark>
+            </revision>
+        </revhistory>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/xml/help/ja_JP/xmlSetAttributes.xml b/scilab/modules/xml/help/ja_JP/xmlSetAttributes.xml
new file mode 100644 (file)
index 0000000..b8e51e3
--- /dev/null
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) 2012 - Scilab Enterprises - Calixte DENIZET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution.  The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+*
+-->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="xmlSetAttributes" xml:lang="ja">
+    <refnamediv>
+        <refname>xmlSetAttributes</refname>
+        <refpurpose>属性の名前と値を設定する.</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>呼び出し手順</title>
+        <synopsis>
+            xmlObj = xmlSetAttributes(xmlObj, nameValue)
+        </synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>引数</title>
+        <variablelist>
+            <varlistentry>
+                <term>xmlObj</term>
+                <listitem>
+                    <para>
+                        xmlObj, XMLSet または XMLList または XMLElem または XMLAttr型
+                        のXML mlist
+                    </para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>nameValue</term>
+                <listitem>
+                    <para>nameValue, 
+                        [name value] または [prefix name value]を各行に含む
+                        文字列の n x 2 または n x 3 行列
+                    </para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>説明</title>
+        <para>要素または要素のリストの属性を設定します.</para>
+    </refsection>
+    <refsection>
+        <title>例</title>
+        <programlisting role="example"><![CDATA[
+    doc = xmlReadStr("<root><a><b><c></c></b></a><b></b></root>");
+
+    // 全てのノードを取得します
+    xp = xmlXPath(doc, "//*");
+
+    // 属性 hello="world" および bonjour="monde" を全ノードに追加します
+    xmlSetAttributes(xp, ["hello" "world" ; "bonjour" "monde"]);
+    xmlDump(doc)
+
+    // 属性 foo="bar" をルートの最初の子に追加します
+    xmlSetAttributes(doc.root.children(1), ["foo" "bar"]);
+    xmlDump(doc)
+
+    // 属性 bar="foo" をルートの全ての子に追加します
+    xmlSetAttributes(doc.root.children, ["bar" "foo"]);
+
+    // 属性 truc="machin" を2番目の子<b>の属性のリストに追加します 
+    xmlSetAttributes(doc.root.children(2).attributes, ["truc" "machin"]);
+    xmlDump(doc)
+
+    xmlDelete(doc);
+    ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>参照</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="XMLObjects">XMLObjects</link>
+            </member>
+        </simplelist>
+    </refsection>
+    <refsection>
+        <title>履歴</title>
+        <revhistory>
+            <revision>
+                <revnumber>5.4.0</revnumber>
+                <revremark>XMLモジュールが導入されました.</revremark>
+            </revision>
+        </revhistory>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/xml/help/ja_JP/xmlValidate.xml b/scilab/modules/xml/help/ja_JP/xmlValidate.xml
new file mode 100644 (file)
index 0000000..21d7303
--- /dev/null
@@ -0,0 +1,127 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) 2012 - Scilab Enterprises - Calixte DENIZET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution.  The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+*
+-->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="xmlValidate" xml:lang="ja">
+    <refnamediv>
+        <refname>xmlValidate</refname>
+        <refpurpose>DTD, Relax NG または Schema により文書を検証する.</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>呼び出し手順</title>
+        <synopsis>
+            error = xmlValidate(docs [, valid])
+        </synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>引数</title>
+        <variablelist>
+            <varlistentry>
+                <term>docs</term>
+                <listitem>
+                    <para>XMLDoc型のmlistまたはXML文書へのパスを有する文字列の行列</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>valid</term>
+                <listitem>
+                    <para>XMLValid型のmlist.</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>error</term>
+                <listitem>
+                    <para>エラーが発生した場合は文字列の行列,そうでない場合は[]</para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>説明</title>
+        <para>
+            パース済みの文書または指定されたパスの一連の文書を
+            DTD, Relax NG, Schemaで検証します.
+            文書が有効な場合は空の行列,そうでない場合は
+            エラーメッセージを含む文字列の行列が返されます.
+        </para>
+        <para>
+            パスを指定して文書を検証することで性能が改善され,消費メモリが減少します.
+        </para>
+        <para>
+            現時点では外部DTDで文書を検証することはできません.
+            これを行う唯一の方法はXMLファイルに
+            <![CDATA[<!DOCTYPE foo SYSTEM "foo.dtd">]]> のような記述を行い,
+            xmlValidateを2番目の引数を付けずに使用することです.
+        </para>
+    </refsection>
+    <refsection>
+        <title>例</title>
+        <programlisting role="example"><![CDATA[
+    doc = xmlRead("SCI/modules/xml/tests/unit_tests/library.xml");
+    dtd = xmlDTD("SCI/modules/xml/tests/unit_tests/library.dtd");
+    schema = xmlSchema("SCI/modules/xml/tests/unit_tests/library.xsd");
+    rng = xmlRelaxNG("SCI/modules/xml/tests/unit_tests/library.rng");
+
+    // 文書が有効かどうかを調べます
+    // エラーがない場合,ファイルは有効です
+
+    // DTD
+    xmlValidate(doc, dtd);
+
+    // Relax NG
+    xmlValidate(doc, rng);
+
+    // Schema
+    xmlValidate(doc, schema);
+
+    // 新規要素に文書が追加されます
+    doc.root.children(3) = "<a>error</a>"
+
+    // ここで検証は失敗します
+    xmlValidate(doc, dtd);
+    xmlValidate(doc, rng);
+    xmlValidate(doc, schema);
+
+    // パスを指定して文書を検証できます
+    xmlValidate("SCI/modules/xml/tests/unit_tests/library.xml")
+    xmlValidate("SCI/modules/xml/tests/unit_tests/invalid_library.xml")
+
+    xmlValidate("SCI/modules/xml/tests/unit_tests/library.xml", schema)
+    xmlValidate("SCI/modules/xml/tests/unit_tests/invalid_library.xml", rng)
+
+    // オープンした文書を全て削除します
+    xmlDelete(doc, dtd, schema, rng);
+    ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>参照</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="xmlDTD">xmlDTD</link>
+            </member>
+            <member>
+                <link linkend="xmlSchema">xmlSchema</link>
+            </member>
+            <member>
+                <link linkend="xmlRelaxNG">xmlRelaxNG</link>
+            </member>
+        </simplelist>
+    </refsection>
+    <refsection>
+        <title>履歴</title>
+        <revhistory>
+            <revision>
+                <revnumber>5.4.0</revnumber>
+                <revremark>XMLモジュールが導入されました.</revremark>
+            </revision>
+        </revhistory>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/xml/help/ja_JP/xmlWrite.xml b/scilab/modules/xml/help/ja_JP/xmlWrite.xml
new file mode 100644 (file)
index 0000000..2180161
--- /dev/null
@@ -0,0 +1,92 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) 2012 - Scilab Enterprises - Calixte DENIZET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution.  The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+*
+-->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="xmlWrite" xml:lang="ja">
+    <refnamediv>
+        <refname>xmlWrite</refname>
+        <refpurpose>XML文書をファイルに書き込む</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>呼び出し手順</title>
+        <synopsis>
+            xmlWrite(doc [, filename] [, indent])
+            xmlWrite(doc [, indent])
+        </synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>引数</title>
+        <variablelist>
+            <varlistentry>
+                <term>doc</term>
+                <listitem>
+                    <para>doc, XMLDoc型のmlist</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>filename</term>
+                <listitem>
+                    <para>filename, 文字列</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>indent</term>
+                <listitem>
+                    <para>indent, 論理値</para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>説明</title>
+        <para>
+            XML文書を指定したファイル名または文書URLを有するファイルに書き込みます.
+            indentがtrueの場合,
+            文書はインデントされます.
+            デフォルトでindentはtrueです.
+        </para>
+    </refsection>
+    <refsection>
+        <title>例</title>
+        <programlisting role="example"><![CDATA[
+    doc = xmlReadStr("<root><a att=""foo"" rib=""bar""><b>Hello</b></a></root>");
+    xmlWrite(doc, TMPDIR+"/foo.xml", %f);
+
+    // 前のファイルをオープンし,修正,保存します
+    doc1 = xmlRead(TMPDIR+"/foo.xml");
+    doc1.root.children(1).name = "newName";
+    xmlWrite(doc1);
+
+    // 修正が行われたかどうかを調べます
+    doc2 = xmlRead(TMPDIR+"/foo.xml");
+    doc2.root.children(1).name
+
+    xmlDelete("all");
+    ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>参照</title>
+        <simplelist type="inline">
+            <member>
+                <link linkend="xmlDump">xmlDump</link>
+            </member>
+        </simplelist>
+    </refsection>
+    <refsection>
+        <title>履歴</title>
+        <revhistory>
+            <revision>
+                <revnumber>5.4.0</revnumber>
+                <revremark>XMLモジュールが導入されました.</revremark>
+            </revision>
+        </revhistory>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/xml/help/ja_JP/xmlXPath.xml b/scilab/modules/xml/help/ja_JP/xmlXPath.xml
new file mode 100644 (file)
index 0000000..7753167
--- /dev/null
@@ -0,0 +1,150 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) 2012 - Scilab Enterprises - Calixte DENIZET
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution.  The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+*
+-->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="xmlXPath" xml:lang="ja">
+    <refnamediv>
+        <refname>xmlXPath</refname>
+        <refpurpose>XML文書にXPathクエリを作成する</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>呼び出し手順</title>
+        <synopsis>
+            result = xmlXPath(xmlObj, queryStr [, namespaces])
+        </synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>引数</title>
+        <variablelist>
+            <varlistentry>
+                <term>xmlObj</term>
+                <listitem>
+                    <para>XMLDocまたはXMLElem型のXML mlist</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>queryStr</term>
+                <listitem>
+                    <para>Xpathクエリ</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>namespaces</term>
+                <listitem>
+                    <para>オプションの文字列の n x 2行列</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>result</term>
+                <listitem>
+                    <para>
+                        XMLElementsの集合または数値または文字列または論理値
+                    </para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>説明</title>
+        <para>
+            特定の文書中またはある要素で始まるXPathクエリを作成します.
+            名前空間を使用する必要がある場合,オプション引数によりこれらを
+            定義する必要があります.
+            XML名前空間は最初のタグにキーワード "xmlns" で定義します.
+        </para>
+        <para>
+            XPathに関する詳細については, <ulink url="http://www.w3.org/TR/1999/REC-xpath-19991116/">W3C recommandation</ulink>を参照ください.
+        </para>
+    </refsection>
+    <refsection>
+        <title>例</title>
+        <programlisting role="example"><![CDATA[
+    doc = xmlRead("http://www.w3.org/TR/2009/REC-xml-names-20091208/xml-names-10-3e.xml");
+
+    // "note"に名前が等しいノードを取得
+    xp = xmlXPath(doc, "//note");
+    s = size(xp);
+    for i=1:s(2)
+        xmlDump(xp(i))
+    end
+
+    // 名前が"note"に等しいノードの数を数える
+    xp = xmlXPath(doc, "count(//note)")
+
+    // id="Philosophy"のノードを取得
+    xp = xmlXPath(doc, "//*[@id=""Philosophy""]");
+    s = size(xp);
+    if (s(2) <> 0) then
+        xmlDump(xp(1))
+    end
+
+    // 属性番号が5に等しいノードを取得
+    xp = xmlXPath(doc, "//*[number(@num)=5]");
+    s = size(xp);
+    if (s(2) <> 0) then
+        xmlDump(xp(1))
+    end
+
+    // 'emph'という名前のノードの全ての属性の名前と内容を取得
+    xp = xmlXPath(doc, "//emph/@*");
+    xp.name
+    xp.content
+
+    xmlDelete(doc);
+
+    // 名前空間を検索
+    doc = xmlReadStr("<root xmlns:scilab=""http://www.scilab.org""><scilab:a att=""foo"" rib=""bar""><b>Hello</b></scilab:a></root>");
+
+    // aという名前の要素を探します
+    xmlXPath(doc, "//a") // => nothing
+    xmlXPath(doc, "//scilab:a", ["scilab" "http://www.scilab.org"]) // => OK
+
+    // このコードは失敗します:
+    // xmlXPath(doc, "//scilab:a") // => エラー
+
+    xmlDelete(doc);
+
+    // 要素で始まるクエリ
+    doc = xmlReadStr("<root att=""attribute""><a a1=""A1"" a2=""A2"" a3=""A3""><b>Hello</b><c>Scilab</c><b>World</b></a><b>Nothing</b></root>");
+    e = doc.root.children(1);
+
+    // eの属性を取得
+    xp = xmlXPath(e, "@*");
+    xmlAsText(xp)
+
+    // eから'b'を取得
+    xp = xmlXPath(e, "b");
+    xmlAsText(xp)
+
+    xmlDelete(doc);
+    ]]></programlisting>
+    </refsection>
+    <refsection role="see also">
+        <title>参照</title>
+        <simplelist type="inline">
+            <member>
+                <ulink url="http://www.w3.org/TR/1999/REC-xpath-19991116/">W3C XPath recommandation</ulink>
+            </member>
+            <member>
+                <ulink url="http://www.w3schools.com/xpath/">XPathチュートリアル</ulink>
+            </member>
+        </simplelist>
+    </refsection>
+    <refsection>
+        <title>履歴</title>
+        <revhistory>
+            <revision>
+                <revnumber>5.4.0</revnumber>
+                <revremark>XML文字列が導入されました.</revremark>
+            </revision>
+        </revhistory>
+    </refsection>
+</refentry>