htmlspecials
– Elements for HTML generation¶
An XIST module that contains a collection of useful elements for generating HTML.
-
class
ll.xist.ns.htmlspecials.
html
(*content, **attrs)[source]¶ Bases:
ll.xist.ns.html.html
Creates an
ll.xist.ns.html.html
element and automatically sets thelang
andxml:lang
attributes to theconverter
s configured language.
-
class
ll.xist.ns.htmlspecials.
plaintable
(*content, **attrs)[source]¶ Bases:
ll.xist.ns.html.table
a HTML table where the values of the attributes
cellpadding
,cellspacing
andborder
default to0
.
-
class
ll.xist.ns.htmlspecials.
plainbody
(*content, **attrs)[source]¶ Bases:
ll.xist.ns.html.body
a HTML body where the attributes
leftmargin
,topmargin
,marginheight
andmarginwidth
default to0
.
-
class
ll.xist.ns.htmlspecials.
pixel
(*content, **attrs)[source]¶ Bases:
ll.xist.ns.htmlspecials._pixelbase
Element for single transparent pixel image.
You can specify the pixel color via the
color
attribute (which will set the background-color in the style attribute).In addition to that you can specify width and height attributes (and every other allowed attribute for the
img
element) as usual.
-
class
ll.xist.ns.htmlspecials.
autoimg
(*content, **attrs)[source]¶ Bases:
ll.xist.ns.html.img
An image were width and height attributes are automatically generated.
If the attributes are already there, they won’t be modified.
-
class
ll.xist.ns.htmlspecials.
autopixel
(*content, **attrs)[source]¶ Bases:
ll.xist.ns.htmlspecials._pixelbase
A pixel image were width and height attributes are automatically generated.
This works like
pixel
but the size is “inherited” from the image specified via thesrc
attribute.
-
class
ll.xist.ns.htmlspecials.
autoinput
(*content, **attrs)[source]¶ Bases:
ll.xist.ns.html.input
Extends
ll.xist.ns.html.input
with the ability to automatically set the size, if this element hastype=="image"
.
-
class
ll.xist.ns.htmlspecials.
javascript
(*content, **attrs)[source]¶ Bases:
ll.xist.ns.html.script
Can be used for javascript.