diff -r 8b0a7eceb76d -r 675a6229fc60 plcopen/pou_block_instances.ysl2 --- 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)";