plcopen/pou_block_instances.ysl2
changeset 1382 675a6229fc60
parent 1345 53e51e786654
child 1936 b85b13b1c2ec
--- a/plcopen/pou_block_instances.ysl2	Thu Dec 05 20:03:27 2013 +0100
+++ b/plcopen/pou_block_instances.ysl2	Thu Dec 05 20:06:19 2013 +0100
@@ -7,7 +7,7 @@
     
     template "text()";
     
-    template "ppx:pou" {
+    template "ppx:pou[ppx:body]|ppx:transition[ppx:body]|ppx:action[ppx:body]" {
         apply "ppx:body/*[self::ppx:FBD or self::ppx:LD or self::ppx:SFC]/*";
     }
     
@@ -238,8 +238,8 @@
         }
         variable "condition" {
             choose {
-                when "ppx:reference" > «ppx:condition/ppx:reference/@name»
-                when "ppx:inline" > «ppx:condition/ppx:inline/ppx:body/ppx:ST/xhtml:p/text()»
+                when "ppx:condition/ppx:reference" > «ppx:condition/ppx:reference/@name»
+                when "ppx:condition/ppx:inline" > «ppx:condition/ppx:inline/ppx:ST/xhtml:p/text()»
             }
         }
         value "ns:SetSpecificValues($priority, $condition_type, $condition)";