9 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" |
9 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" |
10 xmlns:svg="http://www.w3.org/2000/svg" |
10 xmlns:svg="http://www.w3.org/2000/svg" |
11 xmlns:xlink="http://www.w3.org/1999/xlink" |
11 xmlns:xlink="http://www.w3.org/1999/xlink" |
12 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" |
12 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" |
13 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" |
13 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" |
14 xmlns:xhtml="http://www.w3.org/1999/xhtml" |
|
15 |
14 |
16 /* Namespace to invoke python code */ |
15 /* Namespace to invoke python code */ |
17 xmlns:ns="beremiz" |
16 xmlns:ns="beremiz" |
18 |
17 |
19 extension-element-prefixes="ns func exsl regexp str dyn" |
18 extension-element-prefixes="ns func exsl regexp str dyn" |
20 exclude-result-prefixes="ns func exsl regexp str dyn" { |
19 exclude-result-prefixes="ns func exsl regexp str dyn" { |
21 |
20 |
22 param "hmi_path"; |
21 param "hmi_path"; |
23 const "svg", "/svg:svg"; |
|
24 const "hmi_elements", "//svg:*[starts-with(@inkscape:label, 'HMI:')]"; |
22 const "hmi_elements", "//svg:*[starts-with(@inkscape:label, 'HMI:')]"; |
25 const "subhmitree", "ns:GetSubHMITree()"; |
23 const "subhmitree", "ns:GetSubHMITree()"; |
26 |
24 |
27 const "indexed_hmitree", "/.."; // compatibility with parse_labels.ysl2 |
25 const "indexed_hmitree", "/.."; // compatibility with parse_labels.ysl2 |
28 include parse_labels.ysl2 |
26 include parse_labels.ysl2 |
82 msg value "$hmi_path"; |
80 msg value "$hmi_path"; |
83 msg value "$selected_node_type"; |
81 msg value "$selected_node_type"; |
84 msg value "$svg_widget_type"; |
82 msg value "$svg_widget_type"; |
85 } |
83 } |
86 |
84 |
87 value "ns:GiveDetails($testmsg)"; |
85 value "ns:PassMessage($testmsg)"; |
88 |
86 |
89 apply "/", mode="inline_svg"; |
87 apply "/", mode="inline_svg"; |
90 } |
88 } |
91 } |
89 } |