Package lxml :: Module cssselect :: Class LxmlTranslator |
[hide private]
[frames] | no frames]

# Class LxmlTranslator

source code

                           object --+
                                    |
    cssselect.xpath.GenericTranslator --+
                                        |
                                       LxmlTranslator

Known Subclasses:
  - LxmlHTMLTranslator

A custom CSS selector to XPath translator with lxml-specific extensions.

Nested Classes | [hide private]
Inherited from `cssselect.xpath.GenericTranslator`: `xpathexpr_cls`

Instance Methods | [hide private]
xpath_contains_function(self, xpath, function) | source code
Inherited from `cssselect.xpath.GenericTranslator`: `css_to_xpath`, `pseudo_never_matches`, `selector_to_xpath`, `xpath`, `xpath_active_pseudo`, `xpath_attrib`, `xpath_attrib_dashmatch`, `xpath_attrib_different`, `xpath_attrib_equals`, `xpath_attrib_exists`, `xpath_attrib_includes`, `xpath_attrib_prefixmatch`, `xpath_attrib_substringmatch`, `xpath_attrib_suffixmatch`, `xpath_checked_pseudo`, `xpath_child_combinator`, `xpath_class`, `xpath_combinedselector`, `xpath_descendant_combinator`, `xpath_direct_adjacent_combinator`, `xpath_disabled_pseudo`, `xpath_element`, `xpath_empty_pseudo`, `xpath_enabled_pseudo`, `xpath_first_child_pseudo`, `xpath_first_of_type_pseudo`, `xpath_focus_pseudo`, `xpath_function`, `xpath_hash`, `xpath_hover_pseudo`, `xpath_indirect_adjacent_combinator`, `xpath_lang_function`, `xpath_last_child_pseudo`, `xpath_last_of_type_pseudo`, `xpath_link_pseudo`, `xpath_negation`, `xpath_nth_child_function`, `xpath_nth_last_child_function`, `xpath_nth_last_of_type_function`, `xpath_nth_of_type_function`, `xpath_only_child_pseudo`, `xpath_only_of_type_pseudo`, `xpath_pseudo`, `xpath_pseudo_element`, `xpath_root_pseudo`, `xpath_target_pseudo`, `xpath_visited_pseudo` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__init__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Static Methods | [hide private]
Inherited from `cssselect.xpath.GenericTranslator`: `xpath_literal`

Class Variables | [hide private]
Inherited from `cssselect.xpath.GenericTranslator`: `attribute_operator_mapping`, `combinator_mapping`, `id_attribute`, `lang_attribute`, `lower_case_attribute_names`, `lower_case_attribute_values`, `lower_case_element_names`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### xpath_contains_function(self, xpath, function) | source code
Overrides: cssselect.xpath.GenericTranslator.xpath_contains_function