Add some Xcos examples or disable the warning 71/9971/3
Sylvestre Ledru [Mon, 10 Dec 2012 11:11:24 +0000 (12:11 +0100)]
Change-Id: I2652f38066506fbede3d609d3ef549f0a3223b5c

scilab/modules/xcos/help/en_US/scilab_utilities_functions/importXcosDiagram.xml
scilab/modules/xcos/help/en_US/scilab_utilities_functions/loadXcosLibs.xml
scilab/modules/xcos/help/en_US/xcos_menu_entries.xml

index b57bab3..da2200e 100644 (file)
@@ -13,7 +13,7 @@
 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="importXcosDiagram">
     <refnamediv>
         <refname>importXcosDiagram</refname>
-        <refpurpose>Import an Xcos diagram on Scilab</refpurpose>
+        <refpurpose>Import a Xcos diagram on Scilab</refpurpose>
     </refnamediv>
     <refsynopsisdiv>
         <title>Calling Sequence</title>
     </refsection>
     <refsection id="Description_importXcosDiagram">
         <title>Description</title>
-        <para>Import an Xcos file into Scilab.</para>
-        <programlisting role="example"> 
+        <para>Import a Xcos file into Scilab.</para>
+    </refsection>
+    <refsection>
+        <title>Examples</title>
+        <programlisting role="example">
+            filename=SCI+"/modules/xcos/demos/demo_Datatype.xcos";
             [result]=importXcosDiagram(filename)
         </programlisting>
     </refsection>
index 33fab5f..87013aa 100644 (file)
     <refsection id="Description_loadXcosLibs">
         <title>Description</title>
         <para>Import some useful Xcos macros into Scilab.</para>
-        <para>This function has been introduced in Scilab 5.3.1 to replace loadScicosLibs.</para>
-        <para>
-            <programlisting role="example"><![CDATA[
+    </refsection>
+    <refsection>
+        <title>Examples</title>
+        
+        <programlisting role="example"><![CDATA[
 exists("SUM_f")
 loadXcosLibs();
 exists("SUM_f")
 typeof(SUM_f)
 ]]></programlisting>
-        </para>
     </refsection>
     <refsection id="SeeAlso_loadXcos">
         <title>See Also</title>
@@ -61,4 +62,14 @@ typeof(SUM_f)
             </listitem>
         </itemizedlist>
     </refsection>
+    
+    <refsection>
+        <title>History</title>
+        <revhistory>
+            <revision>
+                <revnumber>5.3.1</revnumber>
+                <revremark>Introduced to replace loadScicosLibs.</revremark>
+            </revision>
+        </revhistory>
+    </refsection>
 </refentry>
index c006c70..3b905f1 100644 (file)
@@ -22,7 +22,7 @@
  * See the file ./license.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" xmlns:scilab="http://www.scilab.org" xml:id="xcos_menu_entries">
+<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" scilab:needs-examples="no" xmlns:scilab="http://www.scilab.org" xml:id="xcos_menu_entries">
     <refnamediv>
         <refname>Menu_Entries</refname>
         <refpurpose>Xcos editor menu entries</refpurpose>