Salome HOME
899eff08f6fd27dded56e7268c9c2601ab4682fb
[samples/datafiles.git] / Yacs / Schemas / err0.xml
1 <!--
2   Copyright (C) 2006-2015  CEA/DEN, EDF R&D
3
4   This library is free software; you can redistribute it and/or
5   modify it under the terms of the GNU Lesser General Public
6   License as published by the Free Software Foundation; either
7   version 2.1 of the License, or (at your option) any later version.
8
9   This library is distributed in the hope that it will be useful,
10   but WITHOUT ANY WARRANTY; without even the implied warranty of
11   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12   Lesser General Public License for more details.
13
14   You should have received a copy of the GNU Lesser General Public
15   License along with this library; if not, write to the Free Software
16   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17
18   See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19
20 -->
21 <proc>
22     <!--Schema for testing errors : import errors -->
23
24     <container name="A"> <property name="hostname" value="localhost" /> </container>
25     <container name="B"> </container>
26     <!--nodes -->
27     <inline name="node0" >
28       <script>
29         <code>p1="toto"</code>
30         <code>print p1</code>
31       </script>
32       <outport name="p1" type="string"/>
33     </inline>
34
35     <service name="node1" >
36         <component>HELLO</component>
37         <method>makeBanner</method>
38         <load container="B"/>
39         <inport name="p1" type="double"/>
40         <outport name="p1" type="string"/>
41     </service>
42
43
44     <bloc name="a">
45     <inline name="node0" >
46       <script>
47         <code>p1="toto"</code>
48         <code>print p1</code>
49         <code>#a=1/0</code>
50       </script>
51       <outport name="p1" type="string"/>
52     </inline>
53     </bloc>
54     <datalink>
55         <fromnode>node0</fromnode><fromport>p1</fromport>
56         <tonode>node1</tonode> <toport>p1</toport>
57     </datalink>
58
59 </proc>