Deletions:
Additions:
The default namespace can be unset by using the empty string for the uri
Deletions:
Additions:
The default namespace can be unset by using '' for the uri
$ declare namespace ''
$ declare namespace ''
Deletions:
$ declare namespace ""
No Differences
Additions:
====default namespace====
The default namespace can be declared by omiting the "prefix=". The default namespace passed to all xml oriented commands and is added to generated xml elements with no namespace.
$ declare namespace http://test.xmlsh.org/namespace
$ echo <[ <foo/> ]>
<foo xmlns="http://test.xmlsh.org/namespace"/>
The default namespace can be unset by using "" for the uri
$ declare namespace ""
The default namespace can be declared by omiting the "prefix=". The default namespace passed to all xml oriented commands and is added to generated xml elements with no namespace.
$ declare namespace http://test.xmlsh.org/namespace
$ echo <[ <foo/> ]>
<foo xmlns="http://test.xmlsh.org/namespace"/>
The default namespace can be unset by using "" for the uri
$ declare namespace ""
Additions:
Has the identical effect of
(
declare namespace c=http://www.test.org/test some_command
some_command
)
[[CommandDeclare]]
(
declare namespace c=http://www.test.org/test some_command
some_command
)
[[CommandDeclare]]
Deletions:
Future may include serialization
q
Additions:
====xmlns variables====
As a syntactic convenience namespaces may also be declared similarly to XML attributes by assigning a variable named "xmlns:<prefix>".
This assignement may be used as the prefix to a simple command to temporarily override namespaces for a single command invocation.
xmlns:c=http://www.test.org/test some_command
As a syntactic convenience namespaces may also be declared similarly to XML attributes by assigning a variable named "xmlns:<prefix>".
This assignement may be used as the prefix to a simple command to temporarily override namespaces for a single command invocation.
xmlns:c=http://www.test.org/test some_command
Additions:
declare namespace prefix=
Deletions:
Additions:
To undefine a global namespace in the current context use the syntax
$ declare namespace prefix=
$ declare namespace prefix=
Additions:
Declared namespaces interact with the builtin <[ ]> syntax as well as the [[CommandXpath xpath]] and [[CommandXquery xquery]] commands. The [[CommandXslt xslt]] command does not support global namespace declarations because the xslt specs do not provide for external namespace declarations, rather all namespaces must be part of the xslt document.
Deletions:
Additions:
Declared namespaces interact with the builtin <[ ]> syntax as well as the [[CommandXpath xpath]] and [[CommandXquery xquery]] commands. The [[CommandsXslt xslt]] command does not support global namespace declarations because the xslt specs do not provide for external namespace declarations, rather all namespaces must be part of the xslt document.
Deletions:
Additions:
Declared namespaces interact with the builtin <[ ]> syntax as well as the [[CiommandsXpath xpath]] and [[CommandsXquery xquery]] commands. The [[CommandsXslt xslt]] command does not support global namespace declarations because the xslt specs do not provide for external namespace declarations, rather all namespaces must be part of the xslt document.
Deletions:
Deletions:
=====declare namespace =====