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 attrListTemplateProcess(self, target, cur): """Do a copy of an attribute list with attribute template processing""" if target == None: target__o = None else: target__o = target._o if cur == None: cur__o = None else: cur__o = cur._o ret = libxsltmod.xsltAttrListTemplateProcess(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)
def attrListTemplateProcess(self, target, attrs): """Processes all attributes of a Literal Result Element. Attribute references are applied via xsl:use-attribute-set attributes. Copies all non XSLT-attributes over to the @target element and evaluates Attribute Value Templates. Called by xsltApplySequenceConstructor() (transform.c).""" if target == None: target__o = None else: target__o = target._o if attrs == None: attrs__o = None else: attrs__o = attrs._o ret = libxsltmod.xsltAttrListTemplateProcess(self._o, target__o, attrs__o) if ret == None: return None return libxml2.xmlAttr(_obj=ret)