Esempio n. 1
0
 def plainNamespace(self, cur, ns, out):
     """Obsolete. *Not* called by any Libxslt/Libexslt function.
        Exaclty the same as xsltGetNamespace()."""
     if cur == None: cur__o = None
     else: cur__o = cur._o
     if ns == None: ns__o = None
     else: ns__o = ns._o
     if out == None: out__o = None
     else: out__o = out._o
     ret = libxsltmod.xsltGetPlainNamespace(self._o, cur__o, ns__o, out__o)
     if ret == None: return None
     return libxml2.xmlNs(_obj=ret)
Esempio n. 2
0
 def plainNamespace(self, cur, ns, out):
     """Obsolete. *Not* called by any Libxslt/Libexslt function.
        Exaclty the same as xsltGetNamespace()."""
     if cur == None: cur__o = None
     else: cur__o = cur._o
     if ns == None: ns__o = None
     else: ns__o = ns._o
     if out == None: out__o = None
     else: out__o = out._o
     ret = libxsltmod.xsltGetPlainNamespace(self._o, cur__o, ns__o, out__o)
     if ret == None: return None
     return libxml2.xmlNs(_obj=ret)
Esempio n. 3
0
 def plainNamespace(self, cur, ns, out):
     """Find the right namespace value for this prefix, if needed
        create and add a new namespace decalaration on the node
        Handle namespace aliases and make sure the prefix is not
        None, this is needed for attributes."""
     if cur == None: cur__o = None
     else: cur__o = cur._o
     if ns == None: ns__o = None
     else: ns__o = ns._o
     if out == None: out__o = None
     else: out__o = out._o
     ret = libxsltmod.xsltGetPlainNamespace(self._o, cur__o, ns__o, out__o)
     if ret == None: return None
     return libxml2.xmlNs(_obj=ret)
Esempio n. 4
0
 def plainNamespace(self, cur, ns, out):
     """Find the right namespace value for this prefix, if needed
        create and add a new namespace decalaration on the node
        Handle namespace aliases and make sure the prefix is not
        None, this is needed for attributes."""
     if cur == None: cur__o = None
     else: cur__o = cur._o
     if ns == None: ns__o = None
     else: ns__o = ns._o
     if out == None: out__o = None
     else: out__o = out._o
     ret = libxsltmod.xsltGetPlainNamespace(self._o, cur__o, ns__o, out__o)
     if ret == None: return None
     return libxml2.xmlNs(_obj=ret)