Revision [753]

Last edited on 2009-09-16 07:52:39 by DavidLee
Deletions:
[[CommandsBuiltin]]


Revision [396]

Edited on 2009-01-08 17:31:14 by DavidLee
Additions:
The default namespace can be unset by using the empty string for the uri
Deletions:
The default namespace can be unset by using '' for the uri


Revision [395]

Edited on 2009-01-08 17:30:41 by DavidLee
Additions:
The default namespace can be unset by using '' for the uri
$ declare namespace ''
Deletions:
The default namespace can be unset by using "" for the uri
$ declare namespace ""


Revision [394]

Edited on 2009-01-08 17:29:51 by DavidLee

No Differences

Revision [393]

Edited on 2009-01-08 17:28:45 by DavidLee
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 ""


Revision [319]

Edited on 2008-12-10 04:15:47 by DavidLee
Additions:
Has the identical effect of
(
declare namespace c=http://www.test.org/test some_command
some_command
)
[[CommandDeclare]]
Deletions:
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
q


Revision [318]

Edited on 2008-12-10 04:14:04 by DavidLee
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


Revision [300]

Edited on 2008-11-21 09:45:53 by DavidLee
Additions:
declare namespace prefix=
Deletions:
$ declare namespace prefix=


Revision [299]

Edited on 2008-11-21 09:45:16 by DavidLee
Additions:
To undefine a global namespace in the current context use the syntax
$ declare namespace prefix=


Revision [298]

Edited on 2008-11-21 09:44:46 by DavidLee
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:
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.


Revision [297]

Edited on 2008-11-21 09:44:35 by DavidLee
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:
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.


Revision [296]

Edited on 2008-11-21 09:44:20 by DavidLee
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:
Declared namespaces interact with the builtin <[ ]> syntax as well as the xpath and xquery commands. The 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.


Revision [295]

Edited on 2008-11-21 09:43:49 by DavidLee
Deletions:
=====declare namespace [prefix=uri] =====
=====declare namespace =====


Revision [294]

The oldest known version of this page was created on 2008-11-21 09:43:32 by DavidLee
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki