Esempio n. 1
0
 def get_filter(self, compiler, principal_type):
     prefix, local_name = self.name_key
     try:
         namespace = compiler.namespaces[prefix]
     except KeyError:
         raise XPathError(XPathError.UNDEFINED_PREFIX, prefix=prefix)
     return _nodetests.nodefilter(principal_type, namespace, local_name)
Esempio n. 2
0
 def get_filter(self, compiler, principal_type):
     prefix, local_name = self.name_key
     try:
         namespace = compiler.namespaces[prefix]
     except KeyError:
         raise XPathError(XPathError.UNDEFINED_PREFIX, prefix=prefix)
     return _nodetests.nodefilter(principal_type, namespace, local_name)
Esempio n. 3
0
 def get_filter(self, compiler, principal_type):
     return _nodetests.nodefilter(self.node_type, self._target)
Esempio n. 4
0
 def get_filter(self, compiler, principal_type):
     try:
         namespace = compiler.namespaces[self._prefix]
     except KeyError:
         raise XPathError(XPathError.UNDEFINED_PREFIX, prefix=self._prefix)
     return _nodetests.nodefilter(principal_type, namespace, None)
Esempio n. 5
0
 def get_filter(self, compiler, principal_type):
     return _nodetests.nodefilter(principal_type, None, self._name)
Esempio n. 6
0
 def get_filter(self, compiler, principal_type):
     return _nodetests.nodefilter(self.node_type, self._target)
Esempio n. 7
0
 def get_filter(self, compiler, principal_type):
     try:
         namespace = compiler.namespaces[self._prefix]
     except KeyError:
         raise XPathError(XPathError.UNDEFINED_PREFIX, prefix=self._prefix)
     return _nodetests.nodefilter(principal_type, namespace, None)
Esempio n. 8
0
 def get_filter(self, compiler, principal_type):
     return _nodetests.nodefilter(principal_type, None, self._name)