# HG changeset patch # User Edouard Tisserant # Date 1683980909 -7200 # Node ID 8616ffd7c29d6a14818116d11238b7be66dc4374 # Parent 6839dbb9a1df2456974c96581927d8fbfbcb93a4 Fix template conflict in XSLT with lxml>=4.9.0. Thanks to GP Orcullo ! diff -r 6839dbb9a1df -r 8616ffd7c29d plcopen/pou_block_instances.xslt --- a/plcopen/pou_block_instances.xslt Sat May 13 12:45:03 2023 +0200 +++ b/plcopen/pou_block_instances.xslt Sat May 13 14:28:29 2023 +0200 @@ -2,7 +2,7 @@ - + diff -r 6839dbb9a1df -r 8616ffd7c29d plcopen/pou_block_instances.ysl2 --- a/plcopen/pou_block_instances.ysl2 Sat May 13 12:45:03 2023 +0200 +++ b/plcopen/pou_block_instances.ysl2 Sat May 13 14:28:29 2023 +0200 @@ -7,7 +7,7 @@ template "text()"; - template "ppx:pou[ppx:body]|ppx:transition[ppx:body]|ppx:action[ppx:body]" { + template "ppx:pou[ppx:body]|ppx:transition[ppx:body]|ppx:action[ppx:body]", priority="-1.0" { apply "ppx:body/*[self::ppx:FBD or self::ppx:LD or self::ppx:SFC]/*"; } diff -r 6839dbb9a1df -r 8616ffd7c29d plcopen/pou_variables.xslt --- a/plcopen/pou_variables.xslt Sat May 13 12:45:03 2023 +0200 +++ b/plcopen/pou_variables.xslt Sat May 13 14:28:29 2023 +0200 @@ -218,7 +218,7 @@ - + @@ -241,7 +241,7 @@ WSTRING - + @@ -259,7 +259,7 @@ - + false @@ -283,7 +283,7 @@ false - + true diff -r 6839dbb9a1df -r 8616ffd7c29d plcopen/pou_variables.ysl2 --- a/plcopen/pou_variables.ysl2 Sat May 13 12:45:03 2023 +0200 +++ b/plcopen/pou_variables.ysl2 Sat May 13 14:28:29 2023 +0200 @@ -188,7 +188,7 @@ value "@pouType"; } - template "*[self::ppx:type or self::ppx:baseType]/*" mode="var_class" { + template "*[self::ppx:type or self::ppx:baseType]/*", mode="var_class", priority="-1.0" { param "default_class"; value "$default_class"; } @@ -214,7 +214,7 @@ > WSTRING } - template "*[self::ppx:type or self::ppx:baseType]/*", mode="var_type" { + template "*[self::ppx:type or self::ppx:baseType]/*", mode="var_type", priority="-1.0" { > «local-name()» } @@ -231,7 +231,7 @@ apply "ppx:baseType", mode="var_edit"; } - template "*[self::ppx:type or self::ppx:baseType]/*", mode="var_edit" { + template "*[self::ppx:type or self::ppx:baseType]/*", mode="var_edit", priority="-1.0" { > false } @@ -261,7 +261,7 @@ > false } - template "*[self::ppx:type or self::ppx:baseType]/*", mode="var_debug" { + template "*[self::ppx:type or self::ppx:baseType]/*", mode="var_debug", priority="-1.0" { > true } diff -r 6839dbb9a1df -r 8616ffd7c29d plcopen/variables_infos.xslt --- a/plcopen/variables_infos.xslt Sat May 13 12:45:03 2023 +0200 +++ b/plcopen/variables_infos.xslt Sat May 13 14:28:29 2023 +0200 @@ -155,7 +155,7 @@ - + diff -r 6839dbb9a1df -r 8616ffd7c29d plcopen/variables_infos.ysl2 --- a/plcopen/variables_infos.ysl2 Sat May 13 12:45:03 2023 +0200 +++ b/plcopen/variables_infos.ysl2 Sat May 13 14:28:29 2023 +0200 @@ -152,7 +152,7 @@ value "ns:SetType($name)"; } - template "*[self::ppx:type or self::ppx:baseType or self::ppx:returnType]/*", mode="var_type" { + template "*[self::ppx:type or self::ppx:baseType or self::ppx:returnType]/*", mode="var_type", priority="-1.0" { variable "name" > «local-name()» value "ns:SetType($name)"; }