Commit 282e1426 authored by Florian Lesaint's avatar Florian Lesaint
Browse files

Replace "src" by "source" in XML, #189.

	W.r.t the specifications, we should use "source" and not "src"
	in the transitions. (Ticket #189)
	
	* data/automata/char-rw-b/add1-rw.xml: .
	* data/automata/char-rw-b/quot-3-rw.xml: .
	* data/vaucanson.xsd: .
	* doc/manual/xml.tex: .
	* include/vaucanson/xml/printers.hxx: .
	* include/vaucanson/xml/xmleq.hxx: .
	* src/tests/xml/Makefile.am: Remove useless session test.
	* src/tests/xml/b_ref.xml: .
	* src/tests/xml/fmp_ref.xml: .
	* src/tests/xml/geometry_ref.xml: .
	* src/tests/xml/int_b_ref.xml: .
	* src/tests/xml/int_fmp_ref.xml: .
	* src/tests/xml/int_trans_ref.xml: .
	* src/tests/xml/int_z_fmp_ref.xml: .
	* src/tests/xml/int_z_max_plus_ref.xml: .
	* src/tests/xml/int_z_min_plus_ref.xml: .
	* src/tests/xml/int_z_ref.xml: .
	* src/tests/xml/int_z_trans_ref.xml: .
	* src/tests/xml/label_node_ref.xml: .
	* src/tests/xml/r_ref.xml: .
	* src/tests/xml/session_ref.dot: Remove. Not used anymore.
	* src/tests/xml/session_ref.xml: Remove. Not used anymore.
	* src/tests/xml/trans_ref.xml: .
	* src/tests/xml/xml_session_tester.cc: Remove. Not used anymore.
	* src/tests/xml/z_fmp_ref.xml: .
	* src/tests/xml/z_max_plus_ref.xml: .
	* src/tests/xml/z_min_plus_ref.xml: .
	* src/tests/xml/z_ref.xml: .
	* src/tests/xml/z_trans_ref.xml: .
	* taf-kit/tests/automata/char-b/ambiguous1.xml: .
	* taf-kit/tests/automata/char-b/ambiguous2.xml: .
	* taf-kit/tests/automata/char-b/b_to_transpose.xml: .
	* taf-kit/tests/automata/char-b/b_transposed.xml: .
	* taf-kit/tests/automata/char-b/finalword.xml: .
	* taf-kit/tests/automata/char-b/initialword.xml: .
	* taf-kit/tests/automata/char-b/initseries.xml: .
	* taf-kit/tests/automata/char-b/non_ambiguous1.xml: .
	* taf-kit/tests/automata/char-b/realtime_test.xml: .
	* taf-kit/tests/automata/char-fmp-b/inverted_t1.xml: .
	* taf-kit/tests/automata/char-fmp-b/t1_compose_u1.xml: .
	* taf-kit/tests/automata/char-fmp-b/t2.xml: .
	* taf-kit/tests/automata/char-fmp-b/t2_u-compose_u2.xml: .
	* taf-kit/tests/automata/char-fmp-b/u2.xml: .
	* taf-kit/tests/automata/char-z/standard_c1.xml: .
	* taf-kit/tests/automata/int-b/int-b.xml: .
	* taf-kit/tests/automata/int-z/int-z.xml: .
parent 685a93b3
2008-11-09 Florian Lesaint <florian.lesaint@lrde.epita.fr>
Replace "src" by "source" in XML, #189.
W.r.t the specifications, we should use "source" and not "src"
in the transitions. (Ticket #189)
* data/automata/char-rw-b/add1-rw.xml: .
* data/automata/char-rw-b/quot-3-rw.xml: .
* data/vaucanson.xsd: .
* doc/manual/xml.tex: .
* include/vaucanson/xml/printers.hxx: .
* include/vaucanson/xml/xmleq.hxx: .
* src/tests/xml/Makefile.am: Remove useless session test.
* src/tests/xml/b_ref.xml: .
* src/tests/xml/fmp_ref.xml: .
* src/tests/xml/geometry_ref.xml: .
* src/tests/xml/int_b_ref.xml: .
* src/tests/xml/int_fmp_ref.xml: .
* src/tests/xml/int_trans_ref.xml: .
* src/tests/xml/int_z_fmp_ref.xml: .
* src/tests/xml/int_z_max_plus_ref.xml: .
* src/tests/xml/int_z_min_plus_ref.xml: .
* src/tests/xml/int_z_ref.xml: .
* src/tests/xml/int_z_trans_ref.xml: .
* src/tests/xml/label_node_ref.xml: .
* src/tests/xml/r_ref.xml: .
* src/tests/xml/session_ref.dot: Remove. Not used anymore.
* src/tests/xml/session_ref.xml: Remove. Not used anymore.
* src/tests/xml/trans_ref.xml: .
* src/tests/xml/xml_session_tester.cc: Remove. Not used anymore.
* src/tests/xml/z_fmp_ref.xml: .
* src/tests/xml/z_max_plus_ref.xml: .
* src/tests/xml/z_min_plus_ref.xml: .
* src/tests/xml/z_ref.xml: .
* src/tests/xml/z_trans_ref.xml: .
* taf-kit/tests/automata/char-b/ambiguous1.xml: .
* taf-kit/tests/automata/char-b/ambiguous2.xml: .
* taf-kit/tests/automata/char-b/b_to_transpose.xml: .
* taf-kit/tests/automata/char-b/b_transposed.xml: .
* taf-kit/tests/automata/char-b/finalword.xml: .
* taf-kit/tests/automata/char-b/initialword.xml: .
* taf-kit/tests/automata/char-b/initseries.xml: .
* taf-kit/tests/automata/char-b/non_ambiguous1.xml: .
* taf-kit/tests/automata/char-b/realtime_test.xml: .
* taf-kit/tests/automata/char-fmp-b/inverted_t1.xml: .
* taf-kit/tests/automata/char-fmp-b/t1_compose_u1.xml: .
* taf-kit/tests/automata/char-fmp-b/t2.xml: .
* taf-kit/tests/automata/char-fmp-b/t2_u-compose_u2.xml: .
* taf-kit/tests/automata/char-fmp-b/u2.xml: .
* taf-kit/tests/automata/char-z/standard_c1.xml: .
* taf-kit/tests/automata/int-b/int-b.xml: .
* taf-kit/tests/automata/int-z/int-z.xml: .
2008-11-09 Florian Lesaint <florian.lesaint@lrde.epita.fr>
 
Enable the use of xmleq (structure that avoid costly conversion
......
<fsmxml xmlns="http://vaucanson.lrde.epita.fr" version="0.1">
<fsmxml xmlns="http://vaucanson.lrde.epita.fr" version="1.0">
<automaton name="T">
<valueType>
......@@ -20,7 +20,7 @@
<state id="s1"/>
</states>
<transitions>
<transition src="s0" target="s0">
<transition source="s0" target="s0">
<label>
<leftExtMul>
<weight>
......@@ -34,7 +34,7 @@
</leftExtMul>
</label>
</transition>
<transition src="s0" target="s1">
<transition source="s0" target="s1">
<label>
<leftExtMul>
<weight>
......@@ -48,7 +48,7 @@
</leftExtMul>
</label>
</transition>
<transition src="s1" target="s1">
<transition source="s1" target="s1">
<label>
<leftExtMul>
<weight>
......@@ -62,7 +62,7 @@
</leftExtMul>
</label>
</transition>
<transition src="s1" target="s1">
<transition source="s1" target="s1">
<label>
<leftExtMul>
<weight>
......
<fsmxml xmlns="http://vaucanson.lrde.epita.fr" version="0.1">
<fsmxml xmlns="http://vaucanson.lrde.epita.fr" version="1.0">
<automaton name="T">
<valueType>
......@@ -21,7 +21,7 @@
<state id="s2"/>
</states>
<transitions>
<transition src="s0" target="s0">
<transition source="s0" target="s0">
<label>
<leftExtMul>
<weight>
......@@ -35,7 +35,7 @@
</leftExtMul>
</label>
</transition>
<transition src="s0" target="s1">
<transition source="s0" target="s1">
<label>
<leftExtMul>
<weight>
......@@ -49,7 +49,7 @@
</leftExtMul>
</label>
</transition>
<transition src="s1" target="s0">
<transition source="s1" target="s0">
<label>
<leftExtMul>
<weight>
......@@ -63,7 +63,7 @@
</leftExtMul>
</label>
</transition>
<transition src="s1" target="s2">
<transition source="s1" target="s2">
<label>
<leftExtMul>
<weight>
......@@ -77,7 +77,7 @@
</leftExtMul>
</label>
</transition>
<transition src="s2" target="s2">
<transition source="s2" target="s2">
<label>
<leftExtMul>
<weight>
......@@ -91,7 +91,7 @@
</leftExtMul>
</label>
</transition>
<transition src="s2" target="s1">
<transition source="s2" target="s1">
<label>
<leftExtMul>
<weight>
......
......@@ -405,7 +405,7 @@ Geometry and drawing data can be added.
<xs:element name="drawingData" type="drawing" minOccurs="0"/>
<xs:element name="label" type="typedRegExp"/>
</xs:sequence>
<xs:attribute name="src" type="xs:string" use="required"/>
<xs:attribute name="source" type="xs:string" use="required"/>
<xs:attribute name="target" type="xs:string" use="required"/>
</xs:complexType>
<!--
......
......@@ -24,42 +24,42 @@ of files, that should give an idea on how these files are built.
<state id="s2"/>
</states>
<transitions>
<transition src="s1" target="s2">
<transition source="s1" target="s2">
<label>
<monElmt>
<monGen value="b"/>
</monElmt>
</label>
</transition>
<transition src="s0" target="s0">
<transition source="s0" target="s0">
<label>
<monElmt>
<monGen value="b"/>
</monElmt>
</label>
</transition>
<transition src="s0" target="s1">
<transition source="s0" target="s1">
<label>
<monElmt>
<monGen value="a"/>
</monElmt>
</label>
</transition>
<transition src="s0" target="s0">
<transition source="s0" target="s0">
<label>
<monElmt>
<monGen value="a"/>
</monElmt>
</label>
</transition>
<transition src="s2" target="s2">
<transition source="s2" target="s2">
<label>
<monElmt>
<monGen value="b"/>
</monElmt>
</label>
</transition>
<transition src="s2" target="s2">
<transition source="s2" target="s2">
<label>
<monElmt>
<monGen value="a"/>
......
......@@ -162,7 +162,7 @@ namespace vcsn
{
xercesc::DOMElement* node = tools::create_element(doc_, "transition");
root->appendChild(node);
tools::set_attribute(node, "src", state2str_[aut_.src_of(e)]);
tools::set_attribute(node, "source", state2str_[aut_.src_of(e)]);
tools::set_attribute(node, "target", state2str_[aut_.dst_of(e)]);
builders::create_regexp_node(aut_.series_of(e), doc_, node);
}
......
......@@ -78,7 +78,7 @@ namespace vcsn
value = xercesc::XMLString::transcode("value");
id = xercesc::XMLString::transcode("id");
source = xercesc::XMLString::transcode("src");
source = xercesc::XMLString::transcode("source");
target = xercesc::XMLString::transcode("target");
x = xercesc::XMLString::transcode("x");
y = xercesc::XMLString::transcode("y");
......
......@@ -43,7 +43,6 @@ int_z_fmp_tester \
int_trans_tester \
int_z_trans_tester
##session_tester
b_tester_SOURCES = xml_automaton_tester.cc
b_tester_CPPFLAGS = $(AM_CPPFLAGS) -DCONTEXT="boolean_automaton"
......@@ -88,8 +87,6 @@ int_trans_tester_SOURCES = xml_int_trans_tester.cc
int_z_trans_tester_SOURCES = xml_int_z_trans_tester.cc
##session_tester_SOURCES = xml_session_tester.cc
geometry_tester_SOURCES = xml_geometry_tester.cc
label_node_tester_SOURCES = xml_label_node_tester.cc
......
<fsmxml xmlns="http://vaucanson.lrde.epita.fr" version="0.1">
<fsmxml xmlns="http://vaucanson.lrde.epita.fr" version="1.0">
<automaton>
<valueType>
......@@ -15,14 +15,14 @@
<state id="s2"/>
</states>
<transitions>
<transition src="s0" target="s1">
<transition source="s0" target="s1">
<label>
<monElmt>
<monGen value="a"/>
</monElmt>
</label>
</transition>
<transition src="s1" target="s2">
<transition source="s1" target="s2">
<label>
<monElmt>
<monGen value="b"/>
......
<fsmxml xmlns="http://vaucanson.lrde.epita.fr" version="0.1">
<fsmxml xmlns="http://vaucanson.lrde.epita.fr" version="1.0">
<automaton>
<valueType>
......@@ -21,7 +21,7 @@
<state id="s2"/>
</states>
<transitions>
<transition src="s0" target="s1">
<transition source="s0" target="s1">
<label>
<monElmt>
<monElmt>
......@@ -33,12 +33,12 @@
</monElmt>
</label>
</transition>
<transition src="s0" target="s2">
<transition source="s0" target="s2">
<label>
<zero/>
</label>
</transition>
<transition src="s0" target="s1">
<transition source="s0" target="s1">
<label>
<monElmt>
<monElmt>
......
<fsmxml xmlns="http://vaucanson.lrde.epita.fr" version="0.1">
<fsmxml xmlns="http://vaucanson.lrde.epita.fr" version="1.0">
<automaton>
<valueType>
......@@ -17,14 +17,14 @@
</state>
</states>
<transitions>
<transition src="s0" target="s1">
<transition source="s0" target="s1">
<label>
<monElmt>
<monGen value="a"/>
</monElmt>
</label>
</transition>
<transition src="s1" target="s2">
<transition source="s1" target="s2">
<label>
<monElmt>
<monGen value="b"/>
......
<fsmxml xmlns="http://vaucanson.lrde.epita.fr" version="0.1">
<fsmxml xmlns="http://vaucanson.lrde.epita.fr" version="1.0">
<automaton>
<valueType>
......@@ -15,14 +15,14 @@
<state id="s2"/>
</states>
<transitions>
<transition src="s0" target="s1">
<transition source="s0" target="s1">
<label>
<monElmt>
<monGen value="97"/>
</monElmt>
</label>
</transition>
<transition src="s1" target="s2">
<transition source="s1" target="s2">
<label>
<monElmt>
<monGen value="98"/>
......
<fsmxml xmlns="http://vaucanson.lrde.epita.fr" version="0.1">
<fsmxml xmlns="http://vaucanson.lrde.epita.fr" version="1.0">
<automaton>
<valueType>
......@@ -21,7 +21,7 @@
<state id="s2"/>
</states>
<transitions>
<transition src="s0" target="s1">
<transition source="s0" target="s1">
<label>
<monElmt>
<monElmt>
......@@ -33,12 +33,12 @@
</monElmt>
</label>
</transition>
<transition src="s0" target="s2">
<transition source="s0" target="s2">
<label>
<zero/>
</label>
</transition>
<transition src="s0" target="s1">
<transition source="s0" target="s1">
<label>
<monElmt>
<monElmt>
......
<fsmxml xmlns="http://vaucanson.lrde.epita.fr" version="0.1">
<fsmxml xmlns="http://vaucanson.lrde.epita.fr" version="1.0">
<automaton>
<valueType>
......@@ -21,12 +21,12 @@
<state id="s2"/>
</states>
<transitions>
<transition src="s0" target="s0">
<transition source="s0" target="s0">
<label>
<one/>
</label>
</transition>
<transition src="s0" target="s1">
<transition source="s0" target="s1">
<label>
<leftExtMul>
<weight>
......@@ -40,7 +40,7 @@
</leftExtMul>
</label>
</transition>
<transition src="s1" target="s2">
<transition source="s1" target="s2">
<label>
<leftExtMul>
<weight>
......
......@@ -21,7 +21,7 @@
<state id="s2"/>
</states>
<transitions>
<transition src="s0" target="s1">
<transition source="s0" target="s1">
<label>
<leftExtMul>
<weight value="10"/>
......@@ -36,12 +36,12 @@
</leftExtMul>
</label>
</transition>
<transition src="s0" target="s2">
<transition source="s0" target="s2">
<label>
<zero/>
</label>
</transition>
<transition src="s0" target="s1">
<transition source="s0" target="s1">
<label>
<leftExtMul>
<weight value="10"/>
......
<fsmxml xmlns="http://vaucanson.lrde.epita.fr" version="0.1">
<fsmxml xmlns="http://vaucanson.lrde.epita.fr" version="1.0">
<automaton>
<valueType>
......@@ -15,14 +15,14 @@
<state id="s2"/>
</states>
<transitions>
<transition src="s0" target="s1">
<transition source="s0" target="s1">
<label>
<monElmt>
<monGen value="97"/>
</monElmt>
</label>
</transition>
<transition src="s1" target="s2">
<transition source="s1" target="s2">
<label>
<monElmt>
<monGen value="98"/>
......
<fsmxml xmlns="http://vaucanson.lrde.epita.fr" version="0.1">
<fsmxml xmlns="http://vaucanson.lrde.epita.fr" version="1.0">
<automaton>
<valueType>
......@@ -15,14 +15,14 @@
<state id="s2"/>
</states>
<transitions>
<transition src="s0" target="s1">
<transition source="s0" target="s1">
<label>
<monElmt>
<monGen value="97"/>
</monElmt>
</label>
</transition>
<transition src="s1" target="s2">
<transition source="s1" target="s2">
<label>
<monElmt>
<monGen value="98"/>
......
<fsmxml xmlns="http://vaucanson.lrde.epita.fr" version="0.1">
<fsmxml xmlns="http://vaucanson.lrde.epita.fr" version="1.0">
<automaton>
<valueType>
......@@ -15,14 +15,14 @@
<state id="s2"/>
</states>
<transitions>
<transition src="s0" target="s1">
<transition source="s0" target="s1">
<label>
<monElmt>
<monGen value="97"/>
</monElmt>
</label>
</transition>
<transition src="s1" target="s2">
<transition source="s1" target="s2">
<label>
<monElmt>
<monGen value="98"/>
......
<fsmxml xmlns="http://vaucanson.lrde.epita.fr" version="0.1">
<fsmxml xmlns="http://vaucanson.lrde.epita.fr" version="1.0">
<automaton>
<valueType>
......@@ -21,12 +21,12 @@
<state id="s2"/>
</states>
<transitions>
<transition src="s0" target="s0">
<transition source="s0" target="s0">
<label>
<one/>
</label>
</transition>
<transition src="s0" target="s1">
<transition source="s0" target="s1">
<label>
<leftExtMul>
<weight>
......@@ -40,7 +40,7 @@
</leftExtMul>
</label>
</transition>
<transition src="s1" target="s2">
<transition source="s1" target="s2">
<label>
<leftExtMul>
<weight>
......
<fsmxml xmlns="http://vaucanson.lrde.epita.fr" version="0.1">
<fsmxml xmlns="http://vaucanson.lrde.epita.fr" version="1.0">
<automaton>
<valueType>
......@@ -17,7 +17,7 @@
<state id="s2"/>
</states>
<transitions>
<transition src="s1" target="s1">
<transition source="s1" target="s1">
<label>
<sum>
<leftExtMul>
......@@ -35,7 +35,7 @@
</sum>
</label>
</transition>
<transition src="s1" target="s0">
<transition source="s1" target="s0">
<label>
<leftExtMul>
<weight value="5"/>
......@@ -46,7 +46,7 @@
</leftExtMul>
</label>
</transition>
<transition src="s0" target="s0">
<transition source="s0" target="s0">
<label>
<sum>
<sum>
......@@ -80,7 +80,7 @@
</sum>
</label>
</transition>
<transition src="s0" target="s2">
<transition source="s0" target="s2">
<label>
<sum>
<monElmt>
......@@ -96,7 +96,7 @@
</sum>
</label>
</transition>
<transition src="s0" target="s1">
<transition source="s0" target="s1">
<label>
<sum>
<leftExtMul>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment