Liking cljdoc? Tell your friends :D

clojure.data.xml.name


*gen-prefix-counter*clj/s

Thread local counter for a single document

Thread local counter for a single document
raw docstring

alias-uriclj

(alias-uri & {:as alias-nss})

Define a Clojure namespace aliases for xmlns uris.

This sets up the current namespace for reading qnames denoted with Clojure's ::alias/keywords reader feature.

Example

(alias-uri :D "DAV:") ; similar in effect to ;; (require '[xmlns.DAV%3A :as D]) ; but required namespace is auto-created ; henceforth, shorthand keywords can be used {:tag ::D/propfind} ; ::D/propfind will be expanded to :xmlns.DAV%3A/propfind ; in the current namespace by the reader

Clojurescript support

Currently, namespaces can't be auto-created in Clojurescript. Dummy files for aliased uris have to exist. Have a look at uri-file and print-uri-file-command! to create those.

Define a Clojure namespace aliases for xmlns uris.

This sets up the current namespace for reading qnames denoted with
Clojure's ::alias/keywords reader feature.


## Example
(alias-uri :D "DAV:")
                         ; similar in effect to
;; (require '[xmlns.DAV%3A :as D])
                         ; but required namespace is auto-created
                         ; henceforth, shorthand keywords can be used
{:tag ::D/propfind}
                         ; ::D/propfind will be expanded to :xmlns.DAV%3A/propfind
                         ; in the current namespace by the reader

## Clojurescript support
Currently, namespaces can't be auto-created in Clojurescript.
Dummy files for aliased uris have to exist. Have a look at `uri-file` and `print-uri-file-command!` to create those.
raw docstring

as-qnameclj/s

(as-qname n)

decode-uriclj/s≠

clj
(decode-uri ns)
cljs

encode-uriclj/s≠

clj
(encode-uri uri)
cljs

gen-prefixclj/s

(gen-prefix)
(gen-prefix n)

Generates an xml prefix. Zero-arity can only be called, when gen-prefix-counter is bound and will increment it.

Generates an xml prefix.
Zero-arity can only be called, when *gen-prefix-counter* is bound and will increment it.
raw docstring

(legal-xmlns-binding! prefix uri)

namespaced?clj/s

(namespaced? qn)

parse-qnameclj/s


(print-uri-file-command! uri)

Shell command to create a dummy file for xmlns. Execute from a source root.

Shell command to create a dummy file for xmlns. Execute from a source root.
raw docstring

qnameclj/s

(qname local)
(qname uri local)
(qname uri local prefix)

qname-localclj/s

(qname-local v)

Get the name for this qname

Get the name for this qname
raw docstring

qname-uriclj/s

(qname-uri v)

Get the namespace uri for this qname

Get the namespace uri for this qname
raw docstring

separate-xmlnsclj/s

(separate-xmlns attrs cont)

Call cont with two args: attributes and xmlns attributes

Call cont with two args: attributes and xmlns attributes
raw docstring

symbol-uriclj/s

(symbol-uri ss)

uri-fileclj/s

(uri-file uri)

Dummy file name for :require'ing xmlns uri

Dummy file name for :require'ing xmlns uri
raw docstring

uri-symbolclj/s

(uri-symbol uri)

xml-uriclj/s


xmlns-attr-prefixclj/s

(xmlns-attr-prefix qn)

xmlns-attr?clj/s

(xmlns-attr? qn)

Is this qname an xmlns declaration?

Is this qname an xmlns declaration?
raw docstring

xmlns-uriclj/s

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

× close