Modules index


XML::XHTML

This module is intended as a simple way to build up XHTML documents. It does this by providing a simplified front-end for the creation of XDM nodes. Each XHTML element has a helper function which returns an XML element of the appropriate type. Optionally it can be given a list of children (strings or XML elements), and a dictionary of attributes (mapping strings to strings). A simple example is as follows:
h1 := XHTML::h1(["A title"], Dict{"align" : "right"})

Helper functions

func escape_str(s): Escapes illegal characters in s, replacing them with the appropriate XHTML entities. Note that since XHTML defines many more entities by default than base XML, this function may escape strings in a different way than XDM::escape_str.

XHTML elements

func a(children := [], attrs := Dict{}): Creates an a XHTML element.

func abbr(children := [], attrs := Dict{}): Creates an abbr XHTML element.

func access(children := [], attrs := Dict{}): Creates an access XHTML element.

func action(children := [], attrs := Dict{}): Creates an action XHTML element.

func address(children := [], attrs := Dict{}): Creates an address XHTML element.

func blockcode(children := [], attrs := Dict{}): Creates a blockcode XHTML element.

func blockquote(children := [], attrs := Dict{}): Creates a blockquote XHTML element.

func body(children := [], attrs := Dict{}): Creates a body XHTML element.

func br(children := [], attrs := Dict{}): Creates a br XHTML element.

func caption(children := [], attrs := Dict{}): Creates a caption XHTML element.

func cite(children := [], attrs := Dict{}): Creates a cite XHTML element.

func code(children := [], attrs := Dict{}): Creates a code XHTML element.

func col(children := [], attrs := Dict{}): Creates a col XHTML element.

func colgroup(children := [], attrs := Dict{}): Creates a colgroup XHTML element.

func dd(children := [], attrs := Dict{}): Creates a dd XHTML element.

func delete(children := [], attrs := Dict{}): Creates a delete XHTML element.

func dfn(children := [], attrs := Dict{}): Creates a dfn XHTML element.

func di(children := [], attrs := Dict{}): Creates a di XHTML element.

func dispatch(children := [], attrs := Dict{}): Creates a dispatch XHTML element.

func div(children := [], attrs := Dict{}): Creates a div XHTML element.

func dl(children := [], attrs := Dict{}): Creates a dl XHTML element.

func dt(children := [], attrs := Dict{}): Creates a dt XHTML element.

func em(children := [], attrs := Dict{}): Creates an em XHTML element.

func group(children := [], attrs := Dict{}): Creates a group XHTML element.

func h1(children := [], attrs := Dict{}): Creates a h1 XHTML element.

func h2(children := [], attrs := Dict{}): Creates a h2 XHTML element.

func h3(children := [], attrs := Dict{}): Creates a h3 XHTML element.

func h4(children := [], attrs := Dict{}): Creates a h4 XHTML element.

func h5(children := [], attrs := Dict{}): Creates a h5 XHTML element.

func h6(children := [], attrs := Dict{}): Creates a h6 XHTML element.

func handler(children := [], attrs := Dict{}): Creates a handler XHTML element.

func head(children := [], attrs := Dict{}): Creates a head XHTML element.

func heading(children := [], attrs := Dict{}): Creates a heading XHTML element.

func html(children := [], attrs := Dict{}): Creates a html XHTML element.

func img(children := [], attrs := Dict{}): Creates an img XHTML element.

func input(children := [], attrs := Dict{}): Creates an input XHTML element.

func insert(children := [], attrs := Dict{}): Creates an insert XHTML element.

func kbd(children := [], attrs := Dict{}): Creates a kbd XHTML element.

func l(children := [], attrs := Dict{}): Creates a l XHTML element.

func label(children := [], attrs := Dict{}): Creates a label XHTML element.

func li(children := [], attrs := Dict{}): Creates a li XHTML element.

func link(children := [], attrs := Dict{}): Creates a link XHTML element.

func load(children := [], attrs := Dict{}): Creates a load XHTML element.

func message(children := [], attrs := Dict{}): Creates a message XHTML element.

func meta(children := [], attrs := Dict{}): Creates a meta XHTML element.

func model(children := [], attrs := Dict{}): Creates a model XHTML element.

func nl(children := [], attrs := Dict{}): Creates a nl XHTML element.

func object(children := [], attrs := Dict{}): Creates a object XHTML element.

func ol(children := [], attrs := Dict{}): Creates an ol XHTML element.

func output(children := [], attrs := Dict{}): Creates an output XHTML element.

func p(children := [], attrs := Dict{}): Creates a p XHTML element.

func param(children := [], attrs := Dict{}): Creates a param XHTML element.

func pre(children := [], attrs := Dict{}): Creates a pre XHTML element.

func quote(children := [], attrs := Dict{}): Creates a quote XHTML element.

func range(children := [], attrs := Dict{}): Creates a range XHTML element.

func rebuild(children := [], attrs := Dict{}): Creates a rebuild XHTML element.

func recalculate(children := [], attrs := Dict{}): Creates a recalculate XHTML element.

func refresh(children := [], attrs := Dict{}): Creates a refresh XHTML element.

func repeat(children := [], attrs := Dict{}): Creates a repeat XHTML element.

func reset(children := [], attrs := Dict{}): Creates a reset XHTML element.

func revalidate(children := [], attrs := Dict{}): Creates a revalidate XHTML element.

func samp(children := [], attrs := Dict{}): Creates a samp XHTML element.

func secret(children := [], attrs := Dict{}): Creates a secret XHTML element.

func section(children := [], attrs := Dict{}): Creates a section XHTML element.

func select1(children := [], attrs := Dict{}): Creates a select1 XHTML element.

func select(children := [], attrs := Dict{}): Creates a select XHTML element.

func send(children := [], attrs := Dict{}): Creates a send XHTML element.

func separator(children := [], attrs := Dict{}): Creates a separator XHTML element.

func setfocus(children := [], attrs := Dict{}): Creates a setfocus XHTML element.

func setindex(children := [], attrs := Dict{}): Creates a setindex XHTML element.

func setvalue(children := [], attrs := Dict{}): Creates a setvalue XHTML element.

func span(children := [], attrs := Dict{}): Creates a span XHTML element.

func standby(children := [], attrs := Dict{}): Creates a standby XHTML element.

func strong(children := [], attrs := Dict{}): Creates a strong XHTML element.

func style(children := [], attrs := Dict{}): Creates a style XHTML element.

func sub(children := [], attrs := Dict{}): Creates a sub XHTML element.

func submit(children := [], attrs := Dict{}): Creates a submit XHTML element.

func summary(children := [], attrs := Dict{}): Creates a summary XHTML element.

func sup(children := [], attrs := Dict{}): Creates a sup XHTML element.

func switch(children := [], attrs := Dict{}): Creates a switch XHTML element.

func table(children := [], attrs := Dict{}): Creates a table XHTML element.

func tbody(children := [], attrs := Dict{}): Creates a tbody XHTML element.

func td(children := [], attrs := Dict{}): Creates a td XHTML element.

func textarea(children := [], attrs := Dict{}): Creates a textarea XHTML element.

func tfoot(children := [], attrs := Dict{}): Creates a tfoot XHTML element.

func th(children := [], attrs := Dict{}): Creates a th XHTML element.

func thead(children := [], attrs := Dict{}): Creates a thead XHTML element.

func title(children := [], attrs := Dict{}): Creates a title XHTML element.

func tr(children := [], attrs := Dict{}): Creates a tr XHTML element.

func trigger(children := [], attrs := Dict{}): Creates a trigger XHTML element.

func ul(children := [], attrs := Dict{}): Creates an ul XHTML element.

func upload(children := [], attrs := Dict{}): Creates an upload XHTML element.

func var(children := [], attrs := Dict{}): Creates a var XHTML element.


cvd_to_html ©2006-2007 Laurence Tratt