Revision [1773]

Last edited on 2011-07-11 15:05:04 by DavidLee
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).
Deletions:
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.


Revision [1665]

Edited on 2010-12-29 04:07:08 by DavidLee
Additions:
set -xpipe
set -xpipe
Deletions:
set +xpipe
set +xpipe


Revision [1062]

Edited on 2009-11-27 05:31:55 by DavidLee
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


Revision [889]

Edited on 2009-11-24 15:58:36 by DavidLee
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.
Deletions:
======Serialization and Parsing options======
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.


Revision [887]

Edited on 2009-11-24 15:55:37 by DavidLee
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.
Deletions:
- 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.
- 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


Revision [800]

Edited on 2009-09-23 05:43:55 by DavidLee
Deletions:
- xinclude - Specifies that xinclude processing should be done whenever text xml is parsed


Revision [799]

Edited on 2009-09-23 05:43:09 by DavidLee
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.
Deletions:
But this command will NOT serialize to text, but rather construct an XML variable which was never serialized


Revision [725]

Edited on 2009-09-09 10:29:26 by DavidLee
Additions:
The following global serialization options may be set by the [[CommandSet set]] command. These may be overwritten by specific commands.
Deletions:
The following global serialization options may be set by the [[CommandSet set] command. These may be overwritten by specific commands.


Revision [724]

Edited on 2009-09-09 10:29:09 by DavidLee
Additions:
The following global parsing options may be set by the [[CommandSet set]] command.
Deletions:
The following global parsing options may be set by the [[CommandSet set] command.


Revision [676]

Edited on 2009-08-25 07:16:03 by DavidLee
Additions:
=====Examples=====
Deletions:
======Examples=====


Revision [675]

Edited on 2009-08-25 07:15:57 by DavidLee
Additions:
======Examples=====
Deletions:
======Examples====


Revision [674]

Edited on 2009-08-25 07:15:49 by DavidLee
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.
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. 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.


Revision [673]

Edited on 2009-08-25 07:15:21 by DavidLee
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
Deletions:
- 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


Revision [672]

Edited on 2009-08-25 07:12:49 by DavidLee
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=====
Deletions:
Similary the following may not ever produce or parse a text format depending on


Revision [671]

The oldest known version of this page was created on 2009-08-25 07:09:56 by DavidLee
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki