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 the lang and xml:lang attributes to the converters configured language.

convert(converter)[source]

implementation of the conversion method. When you define your own element classes you have to overwrite this method and implement the desired conversion.

This method must return an instance of Node. It may not change self.

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 and border default to 0.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.Attrs

class cellpadding(*content)[source]

Bases: ll.xist.ns.html.cellpadding

class cellspacing(*content)[source]

Bases: ll.xist.ns.html.cellspacing

class border(*content)[source]

Bases: ll.xist.ns.html.border

convert(converter)[source]

implementation of the conversion method. When you define your own element classes you have to overwrite this method and implement the desired conversion.

This method must return an instance of Node. It may not change self.

class ll.xist.ns.htmlspecials.plainbody(*content, **attrs)[source]

Bases: ll.xist.ns.html.body

a HTML body where the attributes leftmargin, topmargin, marginheight and marginwidth default to 0.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.Attrs

class leftmargin(*content)[source]

Bases: ll.xist.ns.html.leftmargin

class topmargin(*content)[source]

Bases: ll.xist.ns.html.topmargin

class marginheight(*content)[source]

Bases: ll.xist.ns.html.marginheight

class marginwidth(*content)[source]

Bases: ll.xist.ns.html.marginwidth

convert(converter)[source]

implementation of the conversion method. When you define your own element classes you have to overwrite this method and implement the desired conversion.

This method must return an instance of Node. It may not change self.

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 Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.htmlspecials.Attrs

class width(*content)[source]

Bases: ll.xist.ns.html.width

class height(*content)[source]

Bases: ll.xist.ns.html.height

convert(converter)[source]

implementation of the conversion method. When you define your own element classes you have to overwrite this method and implement the desired conversion.

This method must return an instance of Node. It may not change self.

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.

convert(converter)[source]

implementation of the conversion method. When you define your own element classes you have to overwrite this method and implement the desired conversion.

This method must return an instance of Node. It may not change self.

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 the src attribute.

convert(converter)[source]

implementation of the conversion method. When you define your own element classes you have to overwrite this method and implement the desired conversion.

This method must return an instance of Node. It may not change self.

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 has type=="image".

convert(converter)[source]

implementation of the conversion method. When you define your own element classes you have to overwrite this method and implement the desired conversion.

This method must return an instance of Node. It may not change self.

class ll.xist.ns.htmlspecials.redirectpage(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.xsc.Attrs

class href(*content)[source]

Bases: ll.xist.xsc.URLAttr

convert(converter)[source]

implementation of the conversion method. When you define your own element classes you have to overwrite this method and implement the desired conversion.

This method must return an instance of Node. It may not change self.

class ll.xist.ns.htmlspecials.javascript(*content, **attrs)[source]

Bases: ll.xist.ns.html.script

Can be used for javascript.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.Attrs

convert(converter)[source]

implementation of the conversion method. When you define your own element classes you have to overwrite this method and implement the desired conversion.

This method must return an instance of Node. It may not change self.

class ll.xist.ns.htmlspecials.flash(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.xsc.Attrs

class src(*content)[source]

Bases: ll.xist.xsc.URLAttr

class width(*content)[source]

Bases: ll.xist.xsc.IntAttr

class height(*content)[source]

Bases: ll.xist.xsc.IntAttr

class quality(*content)[source]

Bases: ll.xist.xsc.TextAttr

class bgcolor(*content)[source]

Bases: ll.xist.xsc.ColorAttr

convert(converter)[source]

implementation of the conversion method. When you define your own element classes you have to overwrite this method and implement the desired conversion.

This method must return an instance of Node. It may not change self.

class ll.xist.ns.htmlspecials.quicktime(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.xsc.Attrs

class src(*content)[source]

Bases: ll.xist.xsc.URLAttr

class href(*content)[source]

Bases: ll.xist.xsc.URLAttr

class target(*content)[source]

Bases: ll.xist.xsc.TextAttr

class width(*content)[source]

Bases: ll.xist.xsc.IntAttr

class height(*content)[source]

Bases: ll.xist.xsc.IntAttr

class bgcolor(*content)[source]

Bases: ll.xist.xsc.ColorAttr

class controller(*content)[source]

Bases: ll.xist.xsc.ColorAttr

class autoplay(*content)[source]

Bases: ll.xist.xsc.ColorAttr

class border(*content)[source]

Bases: ll.xist.xsc.IntAttr

convert(converter)[source]

implementation of the conversion method. When you define your own element classes you have to overwrite this method and implement the desired conversion.

This method must return an instance of Node. It may not change self.

class ll.xist.ns.htmlspecials.ImgAttrDecorator(*content, **attrs)[source]

Bases: ll.xist.ns.specials.AttrDecorator

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.Attrs

class ll.xist.ns.htmlspecials.InputAttrDecorator(*content, **attrs)[source]

Bases: ll.xist.ns.specials.AttrDecorator

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.Attrs

class ll.xist.ns.htmlspecials.FormAttrDecorator(*content, **attrs)[source]

Bases: ll.xist.ns.specials.AttrDecorator

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.Attrs

class ll.xist.ns.htmlspecials.TextAreaAttrDecorator(*content, **attrs)[source]

Bases: ll.xist.ns.specials.AttrDecorator

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.Attrs