def attrTemplateProcess(self, target, cur): """Process the given attribute and return the new processed copy.""" if target == None: target__o = None else: target__o = target._o if cur == None: cur__o = None else: cur__o = cur._o ret = libxsltmod.xsltAttrTemplateProcess(self._o, target__o, cur__o) if ret == None: return None return libxml2.xmlAttr(_obj=ret)
def attrTemplateProcess(self, target, attr): """Process one attribute of a Literal Result Element (in the stylesheet). Evaluates Attribute Value Templates and copies the attribute over to the result element. This does *not* process attribute sets (xsl:use-attribute-set).""" if target == None: target__o = None else: target__o = target._o if attr == None: attr__o = None else: attr__o = attr._o ret = libxsltmod.xsltAttrTemplateProcess(self._o, target__o, attr__o) if ret == None: return None return libxml2.xmlAttr(_obj=ret)