示例#1
0
 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)
示例#2
0
文件: libxslt.py 项目: fxia22/ASM_xf
 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)
示例#3
0
文件: libxslt.py 项目: fxia22/ASM_xf
 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)
示例#4
0
 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)
示例#5
0
 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)
示例#6
0
文件: libxslt.py 项目: flosnaphq/MAMP
 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)
示例#7
0
 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)
示例#8
0
 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)