<b>Tag:</b> namespace <span class="tagdoc" id="ivysettings.namespaces.namespace">Defines a new namespace. A namespace is identified by a name, which can be referenced by one of the [[settings/resolvers]].</span> An overview of Namespaces is given in the [[settings/namespaces]] documentation. A namespace mainly consists of a list of rules, each rule defining a translation between a system namespace and the defined namespace, and vice versa. There are two main possibilities for using these rules. By default, a namespace iterates through the rules, and when it finds one that translates the given name, it returns the translated name. But the namespace can be configured to use the list as a translator chain: in this case, all rules are applied in order, the result of the first rule translation being passed to the second, and so on. <h1>Attributes</h1> <table class="ivy-attributes"> <thead> <tr><th class="ivy-att">Attribute</th><th class="ivy-att-desc">Description</th><th class="ivy-att-req">Required</th></tr> </thead> <tbody> <tr><td>name</td><td>the namespace name</td> <td>Yes</td></tr> <tr><td>chainrules</td><td>true to indicate that namespaces rules should be chained, false otherwise</td> <td>No, defaults to false</td></tr> </tbody> </table> <h1>Child elements</h1> <table class="ivy-children"> <thead> <tr><th class="ivy-chld">Element</th><th class="ivy-chld-desc">Description</th><th class="ivy-chld-card">Cardinality</th></tr> </thead> <tbody> <tr><td>[[settings/namespace/rule]]</td><td>defines a new namespace rule</td> <td>0..n</td></tr> </tbody> </table> <h1>Example</h1> <code type="xml"> <namespace name="test"> <rule> <fromsystem> <src org="systemorg"/> <dest org="A"/> </fromsystem> <tosystem> <src org="A"/> <dest org="systemorg"/> </tosystem> </rule> </namespace> </code> <code type="xml"> <namespace name="test"> <rule> <fromsystem> <src org="systemorg2" module="system\-(.+)"/> <dest org="B" module="$m1"/> </fromsystem> <tosystem> <src org="B" module=".+"/> <dest org="systemorg2" module="system-$m0"/> </tosystem> </rule> </namespace> </code> <code type="xml"> <namespace name="test" chainrules="true"> <rule> <fromsystem> <src org="systemorg"/> <dest org="A"/> </fromsystem> <tosystem> <src org="A"/> <dest org="systemorg"/> </tosystem> </rule> <rule> <fromsystem> <src module="systemmod"/> <dest module="A"/> </fromsystem> <tosystem> <src module="A"/> <dest module="systemmod"/> </tosystem> </rule> <rule> <fromsystem> <src module="systemmod2"/> <dest module="B"/> </fromsystem> <tosystem> <src module="B"/> <dest module="systemmod2"/> </tosystem> </rule> </namespace> </code>