Named fixes for feeds whose tree bends the standards: the namespace URIs that feeds misspell, and the normalizations of the elements, applied after the parse and always reported.
Every fix has an id, each use of one goes into a report, and the option :except leaves out those that it names. The repairs of a feed that doesn't parse are in dk.simongray.podcast.feed.repair.
Named fixes for feeds whose tree bends the standards: the namespace URIs that feeds misspell, and the normalizations of the elements, applied after the parse and always reported. Every fix has an id, each use of one goes into a report, and the option :except leaves out those that it names. The repairs of a feed that doesn't parse are in dk.simongray.podcast.feed.repair.
(namespace-variants tree)The diagnostics of every namespace declaration in the raw Hiccup tree
whose URI isn't the canonical one of its alias. One walk finds them,
looking at the xmlns attributes alone.
The diagnostics of every namespace declaration in the raw Hiccup `tree` whose URI isn't the canonical one of its alias. One walk finds them, looking at the xmlns attributes alone.
(normalize tree)(normalize
tree
{:keys [registry except] :or {registry spec/default except #{}} :as opts})Rewrite the canonical Hiccup tree by the normalizations, and by those
that the :registry of opts implies, spec/default by default.
The normalizations whose ids the :except of opts names are left out.
The tree keeps its metadata, with the diagnostics added under
:quirks/report.
Rewrite the canonical Hiccup `tree` by the normalizations, and by those that the :registry of `opts` implies, spec/default by default. The normalizations whose ids the :except of `opts` names are left out. The tree keeps its metadata, with the diagnostics added under :quirks/report.
(report tree)The diagnostics that the normalizations recorded on tree, each with
its message from the catalogue of diagnostics.
The diagnostics that the normalizations recorded on `tree`, each with its message from the catalogue of diagnostics.
(strip-default-namespace tree)(strip-default-namespace tree {:keys [except] :or {except #{}} :as opts})The raw Hiccup tree without the default namespace that its rss element
declares, with the opts below, as a map of the :raw tree and the
:report. The :except of opts leaves this out when it names
:quirk/rss-default-namespace.
The raw Hiccup `tree` without the default namespace that its rss element declares, with the `opts` below, as a map of the :raw tree and the :report. The :except of `opts` leaves this out when it names :quirk/rss-default-namespace.
A function that gives the namespace alias of a URI, leniently: of a canonical URI, its spellings, and the known variants.
A function that gives the namespace alias of a URI, leniently: of a canonical URI, its spellings, and the known variants.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |