Imp
[using it]
Interface Manipulation Package v4.0 (2008-06-25) a-projector ©copyright Author
Textual representation of logical-structures with well-formed XML construct.
In this context, the logical-structure textual representation is a well-formed XML logical-structure other XML constructs being depreciated.
Fields sets: representing a set of parameters or properties.
An field set is a construct of the form:
<name field_1 = value_1 field_2 = value_2 . . />
(where the characters <, >, / and = stand for themselves). It represents a named list of properties.
The construct name and the field names field_i are standard names.
The fields order is meaningless. If a field appears twice only the latter value is taken into account.
The field value is a structured string representing an atomic values. This value is enclosed between single or double quotes and may contain escaped-characters: &amp; for &, &lt; for <, &quot; for "
E.g.: an elementary data-structure <identity first-name="John" last-name="Smith" />
Logical structure elements: recursive representation of logical structure.
An element is a recursive construct of the form:
<name field_1 = value_1 field_2 = value_2 . . > elements </name>
(where the characters <, >, / and = stand for themselves) and where elements is a sequence (eventually empty) of a string, field-set or other element.
This is a textual representation of a logical structure.
E.g.: a spreadsheet:
<identities>
<identity first-name="Mickey" family-name="Mouse" />
<identity first-name="Bob" family-name="Marley" />
</identities>
E.g.: a functional expression f(u, g(v)):
<f> <u/> <g> <v/> </g> </f>
Conventions for non-standard element name or field name or value.
About escaping characters. The following escaped characters are used in values:
character to escape:
"
<
&
any other char (only if not available in the encoding)
entity to be used:
&quot;
&lt;
&amp;
&decimal-char-code; &#hexadecimal-char-code;
Other entities are deprecated.
In the present implementation, if the characters & and < are followed by a space, they stand for themselves and escaping them is not mandatory. Similarly, the character " is used only in quoted strings.
Not used list: XML depreciated features. Using XML in this context, a minimal sub-set of XML constructs is considered.
By contract, any well-formed XML document, likely valid, is ``readable'' as a communication utilitary language document. Furthermore communication utilitary language tools always write well-formed XML document. More precisely: