tyxml
TyXML is a library for building statically correct HTML5 and SVG documents
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
back to documentation root
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Library tyxml
include Xml_sigs.Iterable
with type uri = string
and type event_handler = string
and type mouse_event_handler = string
and type keyboard_event_handler = string
include Xml_sigs.NoWrap
with type uri = string
with type event_handler = string
with type mouse_event_handler = string
with type keyboard_event_handler = string
module W = Xml_wrap.NoWrap
type 'a wrap = 'a W.t
type 'a list_wrap = 'a W.tlist
val event_handler_attrib : aname -> event_handler -> attrib
val mouse_event_handler_attrib : aname -> mouse_event_handler -> attrib
val keyboard_event_handler_attrib : aname -> keyboard_event_handler -> attrib
val empty : unit -> elt
val comment : string -> elt
val entity : string -> elt
val cdata : string -> elt
val cdata_script : string -> elt
val cdata_style : string -> elt
type acontent = private
| AFloat of float |
| AInt of int |
| AStr of string |
| AStrL of separator * string list |
val pp :
?encode:( string -> string ) ->
unit ->
Format.formatter ->
elt ->
unit
Iterators
Recursively edit attributes for the element and all its children.
Edit attributes only for one element.
The following can safely be exported by higher level libraries, because removing an attribute from a element is always legal.
Exporting the following by higher level libraries would drive a hole through a type system, because they allow to add any attribute to any element.
val all_entities : elt -> string list
Deprecated printers
val print_list :
output:( string -> unit ) ->
?encode:( string -> string ) ->
elt list ->
unit
val print : Format.formatter -> elt -> unit