Additions:
Bare attribute values cannot be serialized without loosing information. They can be placed into a variable and used as arguments to commands,
but they when serialized they are converted to the string value of the attribute (losing the attribute the name).
but they when serialized they are converted to the string value of the attribute (losing the attribute the name).
Deletions:
but they cannot be serialized or output through an output port (even using the >{var} notation.
Additions:
set -xpipe
set -xpipe
set -xpipe
Deletions:
set +xpipe
Additions:
====Bare Attributes====
Bare attribute values cannot be serialized. They can be placed into a variable and used as arguments to commands,
but they cannot be serialized or output through an output port (even using the >{var} notation.
To create a bare attribute you can use <[ ]> syntax and use any xquery expression which produces an attribute node.
This value value can be assigned to a variable or passed as an argument to a command that accepts attributes (such as [[CommandXed xed]]
When any attempt is made to serialize an attribute it is converted to a string (the value part of the attribute).
Example
a=<[ <foo a="b" /> ]>
echo <[ $a/@a ]>
Result
b
Bare attribute values cannot be serialized. They can be placed into a variable and used as arguments to commands,
but they cannot be serialized or output through an output port (even using the >{var} notation.
To create a bare attribute you can use <[ ]> syntax and use any xquery expression which produces an attribute node.
This value value can be assigned to a variable or passed as an argument to a command that accepts attributes (such as [[CommandXed xed]]
When any attempt is made to serialize an attribute it is converted to a string (the value part of the attribute).
Example
a=<[ <foo a="b" /> ]>
echo <[ $a/@a ]>
Result
b
Additions:
======Serialization======
Commands that produce XML and output to text format require Serialization. Serialization is controlled via [[SerializationOptions Serialization Options]]
These options are global to the shell, and can also be specified on a per-command basis for most commands.
Commands that produce XML and output to text format require Serialization. Serialization is controlled via [[SerializationOptions Serialization Options]]
These options are global to the shell, and can also be specified on a per-command basis for most commands.
Deletions:
There are several global (shell scope) options that control serialization and parsing. These control default parameters used whenever plain text is parsed into XML , and when XML is serialized to text.
Most commands (where noted) can also accept these options which override the shell options for just that command.
=====Parsing Options=====
The following global parsing options may be set by the [[CommandSet set]] command.
- -text-encoding encoding - The default encoding any time that text is encountered and otherwise the encoding is not known. Defaults to the java file.encoding property.
- -encoding encoding - sets both the text-encoding and xml-encoding option
- -supports-dtd - indicates if the parser should support DTD validation
=====Serializing Options=====
The following global serialization options may be set by the [[CommandSet set]] command. These may be overwritten by specific commands.
- -omit-xml-declaration - Omit the leading xml declaration.
- -indent - Indent text serialized xml for more human friendly output
- -xml-encoding - Default encoding used for serialized xml
- -content-type type - specifies the content type
- -method output-method - specifies the output method, must be one of (text,html,xml,xhtml)
Options without arguments can be preceded by a + instead of a - to inverse the setting.
Additions:
Most commands (where noted) can also accept these options which override the shell options for just that command.
- -text-encoding encoding - The default encoding any time that text is encountered and otherwise the encoding is not known. Defaults to the java file.encoding property.
- -encoding encoding - sets both the text-encoding and xml-encoding option
- -supports-dtd - indicates if the parser should support DTD validation
- -omit-xml-declaration - Omit the leading xml declaration.
- -indent - Indent text serialized xml for more human friendly output
- -xml-encoding - Default encoding used for serialized xml
- -content-type type - specifies the content type
- -method output-method - specifies the output method, must be one of (text,html,xml,xhtml)
Options without arguments can be preceded by a + instead of a - to inverse the setting.
- -text-encoding encoding - The default encoding any time that text is encountered and otherwise the encoding is not known. Defaults to the java file.encoding property.
- -encoding encoding - sets both the text-encoding and xml-encoding option
- -supports-dtd - indicates if the parser should support DTD validation
- -omit-xml-declaration - Omit the leading xml declaration.
- -indent - Indent text serialized xml for more human friendly output
- -xml-encoding - Default encoding used for serialized xml
- -content-type type - specifies the content type
- -method output-method - specifies the output method, must be one of (text,html,xml,xhtml)
Options without arguments can be preceded by a + instead of a - to inverse the setting.
Deletions:
- omit-xml-declaration - Omit the leading xml declaration.
- indent - Indent text serialized xml for more human friendly output
- xml-encoding - Default encoding used for serialized xml
Deletions:
Additions:
But this command will NOT serialize to text, but rather construct an XML variable which was never serialized.
It is the TinyTree representation which saxon produces directly from the xslt without a copy or serialization.
It is the TinyTree representation which saxon produces directly from the xslt without a copy or serialization.
Deletions:
Additions:
The following global serialization options may be set by the [[CommandSet set]] command. These may be overwritten by specific commands.
Deletions:
Additions:
The following global parsing options may be set by the [[CommandSet set]] command.
Deletions:
Additions:
=====Examples=====
Deletions:
Additions:
======Examples=====
Deletions:
Additions:
There are several global (shell scope) options that control serialization and parsing. These control default parameters used whenever plain text is parsed into XML , and when XML is serialized to text.
======Examples====
It is not always obvious when parsing or serialization occurs, for example depending on the participants in a pipeline and the xpipe setting, there may or may not be serialization and parsing in a pipeline.
======Examples====
It is not always obvious when parsing or serialization occurs, for example depending on the participants in a pipeline and the xpipe setting, there may or may not be serialization and parsing in a pipeline.
Deletions:
Additions:
- text-encoding - The default encoding any time that text is encountered and otherwise the encoding is not known. Defaults to the java file.encoding property.
- xinclude - Specifies that xinclude processing should be done whenever text xml is parsed
The following global serialization options may be set by the [[CommandSet set] command. These may be overwritten by specific commands.
- omit-xml-declaration - Omit the leading xml declaration.
- indent - Indent text serialized xml for more human friendly output
- xml-encoding - Default encoding used for serialized xml
- xinclude - Specifies that xinclude processing should be done whenever text xml is parsed
The following global serialization options may be set by the [[CommandSet set] command. These may be overwritten by specific commands.
- omit-xml-declaration - Omit the leading xml declaration.
- indent - Indent text serialized xml for more human friendly output
- xml-encoding - Default encoding used for serialized xml
Deletions:
- xinclude - specifies that xinclude processing should be done whenever text xml is parsed
Additions:
Similary the following may not ever produce or parse a text format depending on the implementation of "command".
=====Parsing Options=====
The following global parsing options may be set by the [[CommandSet set] command.
- text-encoding - specifies the default encoding any time that text is encountered and otherwise the encoding is not known.
- xinclude - specifies that xinclude processing should be done whenever text xml is parsed
=====Serializing Options=====
=====Parsing Options=====
The following global parsing options may be set by the [[CommandSet set] command.
- text-encoding - specifies the default encoding any time that text is encountered and otherwise the encoding is not known.
- xinclude - specifies that xinclude processing should be done whenever text xml is parsed
=====Serializing Options=====