Package lxml :: Module etree :: Class XSLTExtension |
[hide private]
[frames] | no frames]

# Class XSLTExtension

    object --+
             |
            XSLTExtension

Base class of an XSLT extension element.

Instance Methods | [hide private]
a new object with type S, a subtype of T |
__new__(T, S, ...) |
apply_templates(self, context, node) Call this method to retrieve the result of applying templates to an element. |
execute(self, context, self_node, input_node, output_parent) Execute this extension element. |
Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__init__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

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

Method Details | [hide private]

### __new__(T, S, ...) |
Returns: a new object with type S, a subtype of T Overrides: object.__new__

### apply_templates(self, context, node) |
Call this method to retrieve the result of applying templates to an element. The return value is a list of elements or text strings that were generated by the XSLT processor.

### execute(self, context, self_node, input_node, output_parent) |
Execute this extension element. Subclasses must override this method. They may append elements to the `output_parent` element here, or set its text content. To this end, the `input_node` provides read-only access to the current node in the input document, and the `self_node` points to the extension element in the stylesheet.