Revision [753]
Last edited on 2009-09-16 07:52:39 by DavidLeeDeletions:
Revision [396]
Edited on 2009-01-08 17:31:14 by DavidLeeAdditions:
The default namespace can be unset by using the empty string for the uri
Deletions:
Revision [395]
Edited on 2009-01-08 17:30:41 by DavidLeeAdditions:
The default namespace can be unset by using '' for the uri
$ declare namespace ''
$ declare namespace ''
Deletions:
$ declare namespace ""
Revision [394]
Edited on 2009-01-08 17:29:51 by DavidLeeNo differences.
Revision [393]
Edited on 2009-01-08 17:28:45 by DavidLeeAdditions:
====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 <[ ]>
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 <[
The default namespace can be unset by using "" for the uri
$ declare namespace ""
Revision [319]
Edited on 2008-12-10 04:15:47 by DavidLeeAdditions:
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
Revision [318]
Edited on 2008-12-10 04:14:04 by DavidLeeAdditions:
====xmlns variables====
As a syntactic convenience namespaces may also be declared similarly to XML attributes by assigning a variable named "xmlns:".
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:
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 DavidLeeAdditions:
declare namespace prefix=
Deletions:
Revision [299]
Edited on 2008-11-21 09:45:16 by DavidLeeAdditions:
To undefine a global namespace in the current context use the syntax
$ declare namespace prefix=
$ declare namespace prefix=
Revision [298]
Edited on 2008-11-21 09:44:46 by DavidLeeAdditions:
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:
Revision [297]
Edited on 2008-11-21 09:44:35 by DavidLeeAdditions:
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:
Revision [296]
Edited on 2008-11-21 09:44:20 by DavidLeeAdditions:
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:
Revision [295]
Edited on 2008-11-21 09:43:49 by DavidLeeDeletions:
=====declare namespace =====