An XIST module that contains elements that simplify handling meta data. All
elements in this module will generate a ll.xist.ns.html.meta element
when converted.
class contenttype(ll.xist.ns.html.meta):
Can be used for a <meta http-equiv="Content-Type" content="text/html"/>,
where the character set will be automatically inserted on a call to
ll.xist.xsc.None.publish.
Usage is simple: meta.contenttype().
class Attrs(ll.xist.ns.html.meta.Attrs):
class mimetype(ll.xist.xsc.TextAttr):
def convert(self, converter):
selfdef publish(self, publisher):
selfclass contentscripttype(ll.xist.ns.html.meta):
Can be used for a <meta http-equiv="Content-Script-Type" content="..."/>.
Usage is simple: <markup>meta.contentscripttype(type="text/javascript").
class Attrs(ll.xist.ns.html.meta.Attrs):
class type(ll.xist.xsc.TextAttr):
def convert(self, converter):
selfclass keywords(ll.xist.ns.html.meta):
Can be used for a <meta name="keywords" content="..."/>.
Usage is simple: meta.keywords("foo, bar").
class Attrs(ll.xist.ns.html.meta.Attrs):
def convert(self, converter):
selfclass description(ll.xist.ns.html.meta):
Can be used for a <meta name="description" content="..."/>.
Usage is simple: meta.description("This page describes the ...").
class Attrs(ll.xist.ns.html.meta.Attrs):
def convert(self, converter):
selfclass stylesheet(ll.xist.ns.html.link):
Can be used for a <link rel="stylesheet" type="text/css" href="..."/>.
Usage is simple: meta.stylesheet(href="root:stylesheets/main.css").
class Attrs(ll.xist.ns.html.link.Attrs):
def convert(self, converter):
selfclass made(ll.xist.ns.html.link):
Can be used for a <link rel="made" href="mailto:..."/>.
Usage is simple: meta.made(href="foobert@bar.org").
class Attrs(ll.xist.ns.html.link.Attrs):
def convert(self, converter):
selfclass author(ll.xist.xsc.Element):
Can be used to embed author information in the header. It will generate
<link rel="made"/> and <meta name="author"/> elements.
class Attrs(ll.xist.xsc.Element.Attrs):
class lang(ll.xist.xsc.TextAttr):
class name(ll.xist.xsc.TextAttr):
class email(ll.xist.xsc.TextAttr):
def convert(self, converter):
selfclass refresh(ll.xist.xsc.Element):
A refresh header.
class Attrs(ll.xist.xsc.Element.Attrs):
class secs(ll.xist.xsc.IntAttr):
class href(ll.xist.xsc.URLAttr):
def convert(self, converter):
self