Ejemplo n.º 1
0
 def copyNamespace(self, elem, ns):
     """Copies a namespace node (declaration). If @elem is not
        None, then the new namespace will be declared on @elem."""
     if elem == None: elem__o = None
     else: elem__o = elem._o
     if ns == None: ns__o = None
     else: ns__o = ns._o
     ret = libxsltmod.xsltCopyNamespace(self._o, elem__o, ns__o)
     if ret == None: return None
     return libxml2.xmlNs(_obj=ret)
Ejemplo n.º 2
0
 def copyNamespace(self, elem, ns):
     """Copies a namespace node (declaration). If @elem is not
        None, then the new namespace will be declared on @elem."""
     if elem == None: elem__o = None
     else: elem__o = elem._o
     if ns == None: ns__o = None
     else: ns__o = ns._o
     ret = libxsltmod.xsltCopyNamespace(self._o, elem__o, ns__o)
     if ret == None: return None
     return libxml2.xmlNs(_obj=ret)
Ejemplo n.º 3
0
 def copyNamespace(self, node, cur):
     """Do a copy of an namespace node. If @node is non-None the
        new namespaces are added automatically. This handles
        namespaces aliases"""
     if node == None: node__o = None
     else: node__o = node._o
     if cur == None: cur__o = None
     else: cur__o = cur._o
     ret = libxsltmod.xsltCopyNamespace(self._o, node__o, cur__o)
     if ret == None: return None
     return libxml2.xmlNs(_obj=ret)
Ejemplo n.º 4
0
 def copyNamespace(self, node, cur):
     """Do a copy of an namespace node. If @node is non-None the
        new namespaces are added automatically. This handles
        namespaces aliases"""
     if node == None: node__o = None
     else: node__o = node._o
     if cur == None: cur__o = None
     else: cur__o = cur._o
     ret = libxsltmod.xsltCopyNamespace(self._o, node__o, cur__o)
     if ret == None: return None
     return libxml2.xmlNs(_obj=ret)