You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The namespace definition may be used to define a namespace that may be used for protecting or versioning other definitions and XML data processing.
3
+
The namespace definition may be primarily used to define a namespace that may be used for protecting or versioning other definitions and XML data processing.
4
4
5
5
```
6
6
namespace ns1
7
-
namespace ns2 = "http://example.com/secret"
7
+
namespace ns2 = "http://example.com/secret/2015"
8
+
```
9
+
10
+
In addition, the namespace definition may also be used to define aliases to a package wildcard import, as in:
11
+
12
+
```
13
+
// com.inexistentninja.kunai.*
14
+
namespace kunai = "com.inexistentninja.kunai";
15
+
16
+
// an alias to the top-level package.
17
+
// users can just use `global` if it doesn't conflict
A URI namespace contains at least a colon; namespaces assigned a string literal without a colon will result into an alias to a package wildcard import.
0 commit comments