def evalTemplateString(self, contextNode, inst): """Processes the sequence constructor of the given instruction on @contextNode and converts the resulting tree to a string. This is needed by e.g. xsl:comment and xsl:processing-instruction.""" if contextNode == None: contextNode__o = None else: contextNode__o = contextNode._o if inst == None: inst__o = None else: inst__o = inst._o ret = libxsltmod.xsltEvalTemplateString(self._o, contextNode__o, inst__o) return ret
def evalTemplateString(self, node, parent): """Evaluate a template string value, i.e. the parent list is interpreter as template content and the resulting tree string value is returned This is needed for example by xsl:comment and xsl:processing-instruction""" if node == None: node__o = None else: node__o = node._o if parent == None: parent__o = None else: parent__o = parent._o ret = libxsltmod.xsltEvalTemplateString(self._o, node__o, parent__o) return ret