tests/projects/opcua_client_encrypted/py_ext_0@py_ext/pyfile.xml
author Edouard Tisserant <edouard.tisserant@gmail.com>
Mon, 16 Oct 2023 23:50:58 +0200
changeset 3868 e9807c28a788
parent 3631 176e1f218c61
permissions -rw-r--r--
Fix template conflict in XSLT with lxml>=4.9.0 again

Earlier attempt was fixing conflict with -1.0 priority attribute,
as a side effect of such low priority, SFC Actions were not
editable anymore.

This time move template around instead of using explicit priority.
<?xml version='1.0' encoding='utf-8'?>
<PyFile xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <variables/>
  <globals>
    <xhtml:p><![CDATA[
import sys
def pfunc(arg):
    sys.stdout.write(arg)
    sys.stdout.flush()

pfunc("globals section\n")

]]></xhtml:p>
  </globals>
  <init>
    <xhtml:p><![CDATA[
pfunc("init section\n")
]]></xhtml:p>
  </init>
  <cleanup>
    <xhtml:p><![CDATA[
pfunc("cleanup section\n")
]]></xhtml:p>
  </cleanup>
  <start>
    <xhtml:p><![CDATA[
pfunc("start section\n")
]]></xhtml:p>
  </start>
  <stop>
    <xhtml:p><![CDATA[
pfunc("stop section\n")

]]></xhtml:p>
  </stop>
</PyFile>