# HG changeset patch
# User Laurent Bessard
# Date 1380026730 -7200
# Node ID e2c11668addf50d77aa5f6650f50093456018131
# Parent 76e52d5fcffd10d2582a759d7c30ef22f8bc7462
Fixed instance type tagname computing xslt stylesheet
diff -r 76e52d5fcffd -r e2c11668addf PLCControler.py
--- a/PLCControler.py Tue Sep 24 12:42:34 2013 +0200
+++ b/PLCControler.py Tue Sep 24 14:45:30 2013 +0200
@@ -308,7 +308,11 @@
self.process_children(context, tagname_infos)
tagname = etree.Element('tagname')
tagname.text = self.GetTagName(tagname_infos)
- output_parent.append(tagname)
+ print etree.tostring(tagname)
+ try:
+ output_parent.append(tagname)
+ except:
+ pass
class ConfigTagName(InstanceTagName):
diff -r 76e52d5fcffd -r e2c11668addf plcopen/instance_tagname.xslt
--- a/plcopen/instance_tagname.xslt Tue Sep 24 12:42:34 2013 +0200
+++ b/plcopen/instance_tagname.xslt Tue Sep 24 14:45:30 2013 +0200
@@ -74,7 +74,7 @@
-
+
@@ -112,20 +112,15 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+