~ubuntu-branches/ubuntu/raring/scilab/raring-proposed

« back to all changes in this revision

Viewing changes to modules/xml/help/ja_JP/xmlFormat.xml

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-08-30 14:42:38 UTC
  • mfrom: (1.4.7)
  • Revision ID: package-import@ubuntu.com-20120830144238-c1y2og7dbm7m9nig
Tags: 5.4.0-beta-3-1~exp1
* New upstream release
* Update the scirenderer dep
* Get ride of libjhdf5-java dependency

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<!--
 
3
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
 
4
* Copyright (C) 2012 - Scilab Enterprises - Calixte DENIZET
 
5
*
 
6
* This file must be used under the terms of the CeCILL.
 
7
* This source file is licensed as described in the file COPYING, which
 
8
* you should have received as part of this distribution.  The terms
 
9
* are also available at
 
10
* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
 
11
*
 
12
-->
 
13
<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">
 
14
    <refnamediv>
 
15
        <refname>xmlFormat</refname>
 
16
        <refpurpose>Scilab変数をXMLに整形する</refpurpose>
 
17
    </refnamediv>
 
18
    <refsynopsisdiv>
 
19
        <title>呼び出し手順</title>
 
20
        <synopsis>
 
21
            xmlCode = xmlFormat(scilabVar)
 
22
        </synopsis>
 
23
    </refsynopsisdiv>
 
24
    <refsection>
 
25
        <title>引数</title>
 
26
        <variablelist>
 
27
            <varlistentry>
 
28
                <term>scilabVar</term>
 
29
                <listitem>
 
30
                    <para>scilabVar, Scilab変数</para>
 
31
                </listitem>
 
32
            </varlistentry>
 
33
            <varlistentry>
 
34
                <term>xmlCode</term>
 
35
                <listitem>
 
36
                    <para>xmlCode, XMLコードを含む文字列</para>
 
37
                </listitem>
 
38
            </varlistentry>
 
39
        </variablelist>
 
40
    </refsection>
 
41
    <refsection>
 
42
        <title>説明</title>
 
43
        <para>
 
44
            この関数は単独ではなにもしません! 有用なことを行うにはオーバーロードされる
 
45
            必要があります.
 
46
        </para>
 
47
        <para>
 
48
            Scilab変数をXMLツリーに変換する際に使用されます.
 
49
        </para>
 
50
    </refsection>
 
51
    <refsection>
 
52
        <title>例</title>
 
53
        <programlisting role="example"><![CDATA[
 
54
    doc = xmlReadStr("<root><a att=""foo"" rib=""bar""><b>Hello</b></a></root>");
 
55
    // このコードは失敗します:
 
56
    // doc.root.children(1.5) = 1.23456;
 
57
 
 
58
    // ここで, double型を処理するために %s_xmlFormat を定義します
 
59
    // この例ではdouble行列は処理されないことに注意してください
 
60
    function y=%s_xmlFormat(x), y="<number>" + string(x) + "</number>", endfunction;
 
61
 
 
62
    // 数値の挿入を再試行
 
63
    doc.root.children(1.5) = 1.23456;
 
64
    xmlDump(doc)
 
65
 
 
66
    xmlDelete(doc);
 
67
    ]]></programlisting>
 
68
    </refsection>
 
69
    <refsection>
 
70
        <title>履歴</title>
 
71
        <revhistory>
 
72
            <revision>
 
73
                <revnumber>5.4.0</revnumber>
 
74
                <revremark>XMLモジュールが導入されました.</revremark>
 
75
            </revision>
 
76
        </revhistory>
 
77
    </refsection>
 
78
</refentry>