Liking cljdoc? Tell your friends :D

clojure.data.xml.pu-map

Provides a bidirectional mapping for keeping track of prefix->uri mappings in xml namespaces.

This has the semantics of a basic key -> multiple values map + two special features, both of which are dictated by the xml standard:

  • instead of a special dissoc, there is assoc to empty string or nil
  • there are two fixed, unique mappings:
    • "xml" <-> ["http://www.w3.org/2000/xmlns/"]
    • "xmlns" <-> ["http://www.w3.org/XML/1998/namespace"]
Provides a bidirectional mapping for keeping track of prefix->uri mappings in xml namespaces.

This has the semantics of a basic key -> multiple values map + two special features, both of which are dictated by the xml standard:

- instead of a special dissoc, there is assoc to empty string or nil
- there are two fixed, unique mappings:
  - "xml" <-> ["http://www.w3.org/2000/xmlns/"]
  - "xmlns" <-> ["http://www.w3.org/XML/1998/namespace"]
raw docstring

assocclj/s

(assoc put & {:as kvs})

assoc!clj/s

(assoc! {:as put :keys [p->u u->ps]} prefix uri)

EMPTYclj/s


getclj/s

(get {:keys [p->u]} prefix)

get-prefixclj/s


get-prefixesclj/s

(get-prefixes {:keys [u->ps]} uri)

mergeclj/s

(merge pu {:keys [:p->u]})

Merge two pu-maps, left to right

Merge two pu-maps, left to right
raw docstring

merge-prefix-mapclj/s

(merge-prefix-map pu pm)

Merge a prefix map into pu-map

Merge a prefix map into pu-map
raw docstring

persistent!clj/s

(persistent! put)

prefix-mapclj/s


reduce-diffclj/s

(reduce-diff f s {ppu :p->u} {pu :p->u})

A high-performance diffing operation, that reduces f over changed and removed prefixes

A high-performance diffing operation, that reduces f over changed and removed prefixes
raw docstring

transientclj/s

(transient pu)

uri-mapclj/s

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close