package xtmpl
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=398055f25eeac6972b0094dbfb3a6d8d
sha512=d0ab7fe67f2534a5c91d9c7e55efbcbcb4fa9269cfa2016e5793efbfe76abe33d3dac28eb44cfb940f121d167b88b14a0d3ba042bbd53a5d4dd379c27fae2328
doc/xtmpl/Xtmpl/Xml/index.html
Module Xtmpl.XmlSource
Regular XML trees
Locations
A position in a source (file, string, ...).
loc loc_start loc_stop creates a loc structure with the given positions.
Errors
Names
name_of_string str cuts a name according to first ':' character. If no such character is found, return ("",str).
XML trees
Constructors
Input/output
Default: no self-closing tags, unescape XML entities (amp, apos,quot, lt, gt). ignore_unclosed: false.
mapping from XML entities to utf-8 code points
mapping from HTML entities to utf-8 code points
Unescape character references and entity references from parse_param.entities.
Replace the following characters: < by <, > by >, & by &. Also replace simple and double quotes by ' and " if quotes = true (which is false by default).
Attributes
Same as Rewrite.atts_of_list but for generic attributes.
Same as Rewrite.atts_one but for generic attributes.
Same as Rewrite.atts_remove but for generic attributes.
Same as Rewrite.atts_replace but for generic attributes.
Same as Rewrite.get_att but for generic attributes.
Same as Rewrite.opt_att but for str_attributes.
Return a string representation of the given str_attributes.