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.Node.publish
.
Usage is simple: meta.contenttype()
.
class Attrs
(ll.xist.ns.html.meta.Attrs
):
class mimetype
(ll.xist.xsc.TextAttr
):
def convert
(self
, converter
):
def publish
(self
, publisher
):
class 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
):
class 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
):
class 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
):
class 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
):
class 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
):
class 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.Attrs
):
class lang
(ll.xist.xsc.TextAttr
):
class name
(ll.xist.xsc.TextAttr
):
class email
(ll.xist.xsc.TextAttr
):
def convert
(self
, converter
):
class refresh
(ll.xist.xsc.Element
):
A refresh header.