HomePython softwarell.xistnshtmlspecials

XIST.ns.htmlspecials

Common useful elements for HTML generation

An XIST module that contains a collection of useful elements for generating HTML.

class html​(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.

def convert​(self, converter):

class plaintable​(ll.xist.ns.html.table):

a HTML table where the values of the attributes cellpadding, cellspacing and border default to 0.

def convert​(self, converter):

class plainbody​(ll.xist.ns.html.body):

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

def convert​(self, converter):

class _pixelbase​(ll.xist.ns.html.img):

class Attrs​(ll.xist.ns.html.img.Attrs):

class color​(ll.xist.xsc.TextAttr):

The pixel color as a CSS value. Leave it blank to get a transparent pixel.

class Context​(ll.xist.xsc.Context):

def __init__​(self):

class pixel​(_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.

def convert​(self, converter):

class autoimg​(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.

def convert​(self, converter):

class autopixel​(_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.

def convert​(self, converter):

class autoinput​(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".

def convert​(self, converter):

class redirectpage​(ll.xist.xsc.Element):

class Attrs​(ll.xist.xsc.Attrs):

class href​(ll.xist.xsc.URLAttr):

def convert​(self, converter):

class javascript​(ll.xist.ns.html.script):

Can be used for javascript.

def convert​(self, converter):

class flash​(ll.xist.xsc.Element):

class Attrs​(ll.xist.xsc.Attrs):

class width​(ll.xist.xsc.IntAttr):

class height​(ll.xist.xsc.IntAttr):

class src​(ll.xist.xsc.URLAttr):

class quality​(ll.xist.xsc.TextAttr):

class bgcolor​(ll.xist.xsc.ColorAttr):

def convert​(self, converter):

class quicktime​(ll.xist.xsc.Element):

class Attrs​(ll.xist.xsc.Attrs):

class border​(ll.xist.xsc.IntAttr):

class width​(ll.xist.xsc.IntAttr):

class height​(ll.xist.xsc.IntAttr):

class href​(ll.xist.xsc.URLAttr):

class src​(ll.xist.xsc.URLAttr):

class bgcolor​(ll.xist.xsc.ColorAttr):

class target​(ll.xist.xsc.TextAttr):

class controller​(ll.xist.xsc.ColorAttr):

class autoplay​(ll.xist.xsc.ColorAttr):

def convert​(self, converter):

class ImgAttrDecorator​(ll.xist.ns.specials.AttrDecorator):

class Attrs​(ll.xist.ns.html.img.Attrs):

class InputAttrDecorator​(ll.xist.ns.specials.AttrDecorator):

class FormAttrDecorator​(ll.xist.ns.specials.AttrDecorator):

class TextAreaAttrDecorator​(ll.xist.ns.specials.AttrDecorator):

Alternate versions   Text   XIST   Python