(((meta (@ (content . "Encoding of Sz Reference Values") (name . "title"))) (meta (@ (content . "manual") (name . "role"))) (meta (@ (content . "#api #manual #reference #zettelstore") (name . "tags"))) (meta (@ (content . "zmk") (name . "syntax"))) (meta (@ (content . "00001012931400") (name . "back"))) (meta (@ (content . "00001012931400 00001012931600") (name . "backward"))) (meta (@ (content . "1") (name . "box-number"))) (meta (@ (content . "(c) 2020-present by Detlef Stern ") (name . "copyright"))) (meta (@ (content . "20230405123046") (name . "created"))) (meta (@ (content . "00001012931600") (name . "forward"))) (meta (@ (content . "en") (name . "lang"))) (meta (@ (content . "EUPL-1.2-or-later") (name . "license"))) (meta (@ (content . "20240122094720") (name . "modified"))) (meta (@ (content . "20240122094720") (name . "published"))) (meta (@ (content . "public") (name . "visibility")))) (p "A reference is encoded as the actual reference value, and a symbol describing the state of that actual reference value.") (div (@ (class . "syntax")) (p (em "Reference") " " (strong "=") " " (kbd "(") " " (em "ReferenceState") " String " (kbd ")") ".")) (p "The string contains the actual reference value.") (div (@ (class . "syntax")) (p (em "ReferenceState") " " (strong "=") " " (kbd "INVALID") " " (strong "|") " " (kbd "ZETTEL") " " (strong "|") " " (kbd "SELF") " " (strong "|") " " (kbd "FOUND") " " (strong "|") " " (kbd "BROKEN") " " (strong "|") " " (kbd "HOSTED") " " (strong "|") " " (kbd "BASED") " " (strong "|") " " (kbd "QUERY") " " (strong "|") " " (kbd "EXTERNAL") ".")) (p "The meaning of the state symbols corresponds to that of the symbols used for the description of " (a (@ (href . "00001012931600#link")) "link references") ".") (dl (dt (kbd "INVALID")) (dd (p "The reference value is invalid.")) (dt (kbd "ZETTEL")) (dd (p "The reference value is a reference to a zettel." " " "This value is only possible before evaluating the zettel.")) (dt (kbd "SELF")) (dd (p "The reference value is a reference to the same zettel, to a specific mark.")) (dt (kbd "FOUND")) (dd (p "The reference value is a valid reference to an existing zettel." " " "This value is only possible after evaluating the zettel.")) (dt (kbd "BROKEN")) (dd (p "The reference value is a valid reference to an missing zettel." " " "This value is only possible after evaluating the zettel.")) (dt (kbd "HOSTED")) (dd (p "The reference value starts with one slash character, denoting an absolute local reference.")) (dt (kbd "BASED")) (dd (p "The reference value starts with two slash characters, denoting a local reference interpreted relative to the Zettelstore base URL.")) (dt (kbd "QUERY")) (dd (p "The reference value contains a query expression.")) (dt (kbd "EXTERNAL")) (dd (p "The reference value contains a full URL, referencing a resource outside of the Zettelstore server."))))