Mirror of the Rel4tion website/wiki source, view at <http://rel4tion.org>

[[ 🗃 ^yEzqv rel4tion-wiki ]] :: [📥 Inbox] [📤 Outbox] [🐤 Followers] [🤝 Collaborators] [🛠 Commits]

Clone

HTTPS: git clone https://vervis.peers.community/repos/yEzqv

SSH: git clone USERNAME@vervis.peers.community:yEzqv

Branches

Tags

master :: projects / idan / manual / 06-directives /

03-default.mdwn

[[!meta title=“6.3 | Default Directive”]]

Default Directive

The default directive allows setting a default namespace prefix. After being set (i.e. lower in the document), PLrefs using it can omit it. For example, if myns is the default namespace, myns:Thing can be written as :Thing.

There can be only one default namespace at a time. Each declaration overrides the previous one, and has effect until the next one, or until the end of the file if it’s the last one.

If the prefix is declared with the use directive before default, that declaration will be used. Otherwise, after inserting the prefix where it was omitted, it will be resolved externally. In other words, the meaning of the document with omissions is the same as without omissions.

The syntax is:

%default% PREFIX

PREFIX can also be a PLref. Examples:

The fallback symbol for default is $$. Therefore the examples above are equivalent to the following:

[See repo JSON]