Wiki source for CommandDeclare


Show raw source

======Command declare======

====Name====
**declare** Declares or describes namespaces, variables and functions

====Synopsis====
**declare**
**declare -p varname**
**declare** namespace [prefix=[uri]]


The declare command is used to add global declarations to the shell. Currently the [[Namespaces declare namespaces]] is the only declaration.
Future may include serialization

If uri is omitted then the namespace is undeclared

If the -p option is specified then the argument is used as a variable name and its type information is printed as in the [[CommandSet set]] command.



====Examples====
Example
%%
declare namespace xmlsh=http://www.xmlsh.org/namespaces/xmlsh
declare namespace
%%
Result
%%
xmlsh=http://www.xmlsh.org/namespaces/xmlsh
%%
----
[[Commands]]
[[CategoryCommands]]

Valid XHTML :: Valid CSS: :: Powered by WikkaWiki