X-Git-Url: https://dreyeck.freedombox.rocks/gitweb/topic-maps.git/blobdiff_plain/5e716c078b885e97ebe858230ce7d8578e65ae4b..bc4fcf0f126bab6567b37a21fc8c8eab2944c152:/src/ctm/iri.lisp diff --git a/src/ctm/iri.lisp b/src/ctm/iri.lisp index 1b0f1a8..ed13af2 100644 --- a/src/ctm/iri.lisp +++ b/src/ctm/iri.lisp @@ -73,9 +73,10 @@ "Document IRI must be absolute and fragment-free (RFC 3987 absolute-IRI)."))) iri) -(defun resolve-iri (reference document position) - "CTM 3.3.3, RFC 3986 5.2. No fetching or case normalization." - (let* ((reference (validate-iri-characters (unescape-iri reference position) position)) +(defun resolve-iri (reference document position &key (unescape t)) + "CTM 3.3.3 / RFC 3986 5.2. No fetching or case normalization. +UNESCAPE is NIL for existing locator strings in Include aliasing (3.16.2)." + (let* ((reference (validate-iri-characters (if unescape (unescape-iri reference position) reference) position)) (r (split-iri reference)) (b (split-iri document)) (target (make-iri-parts :fragment (iri-parts-fragment r)))) (cond