Thread local counter for a single document
Thread local counter for a single document
(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.
(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
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.
(as-qname n)
(decode-uri ns)
(encode-uri uri)
(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.
(legal-xmlns-binding! prefix uri)
(namespaced? qn)
(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.
(qname local)
(qname uri local)
(qname uri local prefix)
(qname-local v)
Get the name for this qname
Get the name for this qname
(qname-uri v)
Get the namespace uri for this qname
Get the namespace uri for this qname
(separate-xmlns attrs cont)
Call cont with two args: attributes and xmlns attributes
Call cont with two args: attributes and xmlns attributes
(symbol-uri ss)
(uri-file uri)
Dummy file name for :require'ing xmlns uri
Dummy file name for :require'ing xmlns uri
(uri-symbol uri)
(xmlns-attr-prefix qn)
(xmlns-attr? qn)
Is this qname an xmlns declaration?
Is this qname an xmlns declaration?
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close