package tyxml
A library for building correct HTML and SVG documents
Install
Dune Dependency
Authors
Maintainers
Sources
tyxml-4.6.0.tbz
sha256=bfeb673c6b4e120a4eca4c48448add47dc3f8d02c2b40f63ffdccc4e91c902dd
sha512=69750eeaf467014282087bf9628f3278f3e5f00f4c7400358750d208664cfc3f79a5cba16767d2935e53477d1a6862fe08c5b801b69052ec12e09d1a93a5e9b4
doc/tyxml.functor/Xml_iter/Make/index.html
Module Xml_iter.Make
Source
Parameters
module Xml : Xml_sigs.Iterable
Signature
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.
Source
val rm_attrib_from_list :
(Xml.aname -> bool) ->
(string -> bool) ->
Xml.attrib list ->
Xml.attrib list
Source
val map_int_attrib :
(Xml.aname -> bool) ->
(int -> int) ->
Xml.attrib list ->
Xml.attrib list
Source
val map_float_attrib :
(Xml.aname -> bool) ->
(float -> float) ->
Xml.attrib list ->
Xml.attrib list
Source
val map_string_attrib :
(Xml.aname -> bool) ->
(string -> string) ->
Xml.attrib list ->
Xml.attrib list
Source
val map_string_attrib_in_list :
(Xml.aname -> bool) ->
(string -> string) ->
Xml.attrib list ->
Xml.attrib list
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.
Source
val fold :
(unit -> 'a) ->
(string -> 'a) ->
(string -> 'a) ->
(string -> 'a) ->
(string -> 'a) ->
(Xml.ename -> Xml.attrib list -> 'a) ->
(Xml.ename -> Xml.attrib list -> 'a list -> 'a) ->
Xml.elt ->
'a
Source
val translate :
(Xml.ename -> Xml.attrib list -> Xml.elt) ->
(Xml.ename -> Xml.attrib list -> Xml.elt list -> Xml.elt) ->
('state -> Xml.ename -> Xml.attrib list -> Xml.elt list) ->
('state -> Xml.ename -> Xml.attrib list -> Xml.elt list -> Xml.elt list) ->
(Xml.ename -> Xml.attrib list -> 'state -> 'state) ->
'state ->
Xml.elt ->
Xml.elt
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page