set_global_max_depth(max_depth)
The maximum traversal depth that the stylesheet engine will allow.
This does not only count the template recursion depth but also takes
the number of variables/parameters into account. The required setting
for a run depends on both the stylesheet and the input data.
strparam(strval)
Mark an XSLT string parameter that requires quote escaping
before passing it into the transformation. Use it like this:
Execute the XSL transformation on a tree or Element.
Pass the profile_run option to get profile information
about the XSLT. The result of the XSLT will have a property
xslt_profile that holds an XML tree with profiling data.
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides:
object.__init__
__new__(T,
S,
...)
Returns: a new object with type S, a subtype of T
Overrides:
object.__new__
apply(self,
_input,
profile_run=False,
**kw)
Deprecated:
call the object, not this method.
set_global_max_depth(max_depth) Static Method
The maximum traversal depth that the stylesheet engine will allow.
This does not only count the template recursion depth but also takes
the number of variables/parameters into account. The required setting
for a run depends on both the stylesheet and the input data.
Example:
XSLT.set_global_max_depth(5000)
Note that this is currently a global, module-wide setting because
libxslt does not support it at a per-stylesheet level.
strparam(strval) Static Method
Mark an XSLT string parameter that requires quote escaping
before passing it into the transformation. Use it like this:
result = transform(doc, some_strval = XSLT.strparam(
'''it's "Monty Python's" ...'''))
Escaped string parameters can be reused without restriction.
tostring(self,
result_tree)
Save result doc to string based on stylesheet output method.