kid
– Kid templates¶
This module is an XIST namespace for Kid files.
-
class
ll.xist.ns.kid.
Attrs
(*args, **kwargs)[source]¶ Bases:
ll.xist.xsc.Attrs
Global attributes.
-
class
for_
(*content)[source]¶ Bases:
ll.xist.xsc.TextAttr
The
for_
attribute may appear on any element to signify that the element should be processed multiple times, once for each value in the sequence specified.
-
class
if_
(*content)[source]¶ Bases:
ll.xist.xsc.TextAttr
The
if_
attribute may appear on any element to signify that the element and its descendant items should be output only if the boolean expression specified evaluates to true in Python.
-
class
content
(*content)[source]¶ Bases:
ll.xist.xsc.TextAttr
This attribute may appear on any element to signify that the descendant items of the element are to be replaced with the result of evaluating the attribute content as a Python expression.
-
class
replace
(*content)[source]¶ Bases:
ll.xist.xsc.TextAttr
replace
is shorthand for specifying acontent
and astrip="True"
on the same element.
-
class
strip
(*content)[source]¶ Bases:
ll.xist.xsc.TextAttr
The
strip
attribute may apppear on any element to signify that the containing element should not be output.
-
class
attrs
(*content)[source]¶ Bases:
ll.xist.xsc.TextAttr
The
attrs
attribute may appear on any element to specify a set of attributes that should be set on the element when it is processed.
-
class
def_
(*content)[source]¶ Bases:
ll.xist.xsc.TextAttr
The
def_
attribute may appear on any element to create a “Named Template Function”.
-
class
match
(*content)[source]¶ Bases:
ll.xist.xsc.TextAttr
The
match
attribute may appear on any element to create a “Match Template”.
-
class
extends
(*content)[source]¶ Bases:
ll.xist.xsc.TextAttr
The
extends
attribute may appear on the root element to specify that the template should inherit the Named Template Functions and Match Templates defined in another template (or set of templates).
-
class
-
class
ll.xist.ns.kid.
python
(*content)[source]¶ Bases:
ll.xist.xsc.ProcInst
The
python
processing instruction contains Python code.