plcopen/plcopen.py
changeset 1762 fcc406143e5b
parent 1759 56e7f4a11046
child 1763 bcc07ff2362c
equal deleted inserted replaced
1761:8c98bad90b8d 1762:fcc406143e5b
   152 def TextMatched(str1, str2):
   152 def TextMatched(str1, str2):
   153     return str1 and str2 and (str1.upper() == str2.upper())
   153     return str1 and str2 and (str1.upper() == str2.upper())
   154 
   154 
   155 
   155 
   156 PLCOpenParser = GenerateParserFromXSD(paths.AbsNeighbourFile(__file__, "tc6_xml_v201.xsd"))
   156 PLCOpenParser = GenerateParserFromXSD(paths.AbsNeighbourFile(__file__, "tc6_xml_v201.xsd"))
   157 PLCOpen_XPath = lambda xpath: etree.XPath(xpath, namespaces=PLCOpenParser.NSMAP)
   157 
       
   158 
       
   159 def PLCOpen_XPath(xpath):
       
   160     return etree.XPath(xpath, namespaces=PLCOpenParser.NSMAP)
       
   161 
   158 
   162 
   159 LOAD_POU_PROJECT_TEMPLATE = """
   163 LOAD_POU_PROJECT_TEMPLATE = """
   160 <project xmlns:ns1="http://www.plcopen.org/xml/tc6_0201"
   164 <project xmlns:ns1="http://www.plcopen.org/xml/tc6_0201"
   161          xmlns:xhtml="http://www.w3.org/1999/xhtml"
   165          xmlns:xhtml="http://www.w3.org/1999/xhtml"
   162          xmlns:xsd="http://www.w3.org/2001/XMLSchema"
   166          xmlns:xsd="http://www.w3.org/2001/XMLSchema"