module documentation

Limited XInclude support for the ElementTree package.

While lxml.etree has full support for XInclude (see etree.ElementTree.xinclude()), this module provides a simpler, pure Python, ElementTree compatible implementation that supports a simple form of custom URL resolvers.

Class ​Fatal​Include​Error Undocumented
Class ​Limited​Recursive​Include​Error Undocumented
Function default​_loader Undocumented
Function include Undocumented
Constant DEFAULT​_MAX​_INCLUSION​_DEPTH Undocumented
Constant XINCLUDE Undocumented
Constant XINCLUDE​_FALLBACK Undocumented
Constant XINCLUDE​_INCLUDE Undocumented
Constant XINCLUDE​_ITER​_TAG Undocumented
Function ​_include Undocumented
Function ​_lxml​_default​_loader Undocumented
Function ​_wrap​_et​_loader Undocumented
def default_loader(href, parse, encoding=None):

Undocumented

def include(elem, loader=None, base_url=None, max_depth=DEFAULT_MAX_INCLUSION_DEPTH):

Undocumented

DEFAULT_MAX_INCLUSION_DEPTH: int =

Undocumented

Value
6
XINCLUDE: str =

Undocumented

Value
'{http://www.w3.org/2001/XInclude}'
XINCLUDE_FALLBACK =

Undocumented

Value
XINCLUDE+'fallback'
XINCLUDE_INCLUDE =

Undocumented

Value
XINCLUDE+'include'
XINCLUDE_ITER_TAG =

Undocumented

Value
XINCLUDE+'*'
def _include(elem, loader=None, base_url=None, max_depth=DEFAULT_MAX_INCLUSION_DEPTH, _parent_hrefs=None):

Undocumented

def _lxml_default_loader(href, parse, encoding=None, parser=None):

Undocumented

def _wrap_et_loader(loader):

Undocumented